condition: state
entity_id: group.all_lights
state: 'off'
Becomes what?
I use that one in combination with a time condition to work out when everyone who is home has gone to bed. I’ve had to resort to listing all the lights for now but it’s a bit messy.
the problem is that with group.all_devices when one of the device_tracker entities has the value “home”, the status of the group also changes to “home”, the condition does not work, the trigger has not yet been able to test it.
thanks
Maybe is a silly question, but if I create a group with all device_tracker I have, wouldn’t it work just like the old group.all_devices?
EDIT: thats working,i think is the best fix for me
I though I understood how piping worked in Home Assistant but the use of the piping here really confuses me. Anybody cares to explain to me what’s going on?
The way I see it, states[domain] returns a list of states the entities of type domains are and piping that to count will result in the number of devices returned. So what piping that number to an equality test with the list again do?
How can I now easily check if all door are locked. Now i need to maintain the group myself. A pitty they did not foresee an option to make the groups available again.
I have a Node-red flow to turn off ALL lights except a few (using a function node), guess I know have to iterate over all the entities …
I get that, but previously I iterated over the entities in the group. Using all only works when trying to turn off the lights, not for getting the list of entities.
Luckily I’ve put all that code in a subflow, so it’s a change on 1 place, but still. This change kinda sucks.