You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
salon_milieu:
name: salon milieuentities:
- switch.salon_blanche_entree_gauche
- switch.salon_tableau
- switch.salon_lampe_haute
If I switch on (through the UI for instance), say, switch.salon_tableau, and call in my script switch.toggle(entity_id="group.salon_milieu"), each entity of the group is toggled individually.
This means in the case above that I will alternate between 1 or 2 lamps switched on/off as I call switch.toggle(entity_id="group.salon_milieu").
I was expecting a toggle on a group to work similarly to
but apparently, I was wrong.
I can write a smarter toggle function, I just wanted to make sure it is not a terrible misunderstanding :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Consider the group
If I switch on (through the UI for instance), say,
switch.salon_tableau
, and call in my scriptswitch.toggle(entity_id="group.salon_milieu")
, each entity of the group is toggled individually.This means in the case above that I will alternate between 1 or 2 lamps switched on/off as I call
switch.toggle(entity_id="group.salon_milieu")
.I was expecting a toggle on a group to work similarly to
but apparently, I was wrong.
I can write a smarter toggle function, I just wanted to make sure it is not a terrible misunderstanding :)
Beta Was this translation helpful? Give feedback.
All reactions