I have a group helper, created through the config.yaml to contain various input boolean helpers. I want an automation to toggle this group without having to individually toggle each of the input booleans contained within it, such that I can add more to it in the future without needing to adjust the automation. How can I do this? Nothing I try seems to work — I just don't get the group as an entity option.
#How do I change the state of a group helper with an automation?
1 messages · Page 1 of 1 (latest)
Share what you added and review your logs after checking your config and restarting HA
group:
example:
name: Example
entities:
- input_boolean.example_1
- input_boolean.example_2
all: true
There's nothing significant in the logs. To be clear, this group works exactly as expected. My issue is purely that I can't seem to find a way to make an automation change its state.
I don't know how to reconcile those statements. What are you doing that's working and what are you doing that isn't working?
I mean that the group can be manually toggled on and off, and it toggles the input boolean helpers respectively, and if all boolean helpers are turned on, the group turns on, and if any are turned off, it turns off.
What's not working is that I can't find a way to put the group into an automation such that the automation toggles its state rather than me doing so manually.
Ok. Are you just asking what service call to use?
Maybe?
homeassistant.turn_on, homeassistant.turn_off, homeassistant.toggle
That works! Thank you.