I’ve been experiencing an issue with updating a group dynamically using the group.set service in an automation. The goal is to update the group selected_kueche based on the states of input_boolean entities. The automation seems to be triggered correctly, but the group remains empty. I’m looking for some guidance on what might be going wrong.
Here’s the setup:
Entities:
Two input_boolean entities: input_boolean.selected_light_kueche and input_boolean.selected_light_essen.
Goal:
Dynamically update the group selected_kueche with light.kueche when input_boolean.selected_light_kueche is on, and similar for input_boolean.selected_light_essen.
I’ve confirmed that the entity light.kueche is available and working correctly outside of this automation.
The group selected_kueche was initially empty and created through the Home Assistant UI.
Could anyone provide insights into why the group is not being updated or suggest what I might be missing here? Any help or suggestions would be greatly appreciated!
Please still go back and edit your request but I think your issue is that your light group is a “new” style group which takes on the domain of it’s entities and becomes light.new_group for example, not group.new_group.
The service group.set only works with “old” style group. I think.
Thanks good advice,will try that next time.
I just filtered the entity manual and actually it works but is not visible in the ui of helpers (exactly, second version without light. )
Hmm, ok than my solution is not working somewhere else yet ;o)
If what you are trying to do is control specific lights when specific input_booleans are turned on you can accomplish this with a choose or if/then structure in your automation rather than creating groups.
Sorry but i was away HA since long time…
what i’m trying to do is creating a group at the HA startup via automation, that includes all webcam entities.
before the last HA core updating, this service creates a group from scratch…
Now you tell me that in order to use this service i have to create it from the yaml file?