Is is possible to add an automation to a group in the same way you may add a switch or script, because I cannot get this to work?
I tried creating id’s for the automations but not sure i have correct formatting.
yes, this works fine. please show us your groups.yaml and it should be easy to identify the problem.
Thanks for the fast reply.
Extracts of the groups and automation files are below:
groups.yaml:
Bedroom:
- switch.Electric_Blanket
- input_number.electricblanketmasterbedroom_run_time
- script.electricblanketmasterbedroom_timer
automations.yaml:
- alias: "Electric Blanket (Master Bedroom): Automatically turn off"
trigger:
- platform: state
entity_id: switch.Electric_Blanket
to: 'on'
action:
- service: script.turn_on
entity_id: script.electricblanketmasterbedroom_timer
Can you show me how to alter the code so that the the automation displays in the front end in the bedroom group, and not just in a group called automation. I hope that makes sense. Also, the automation has no id and works fine but I assume you may need to give it an id to display it in another group.
The entity_id for your automation will be called something like :
automation.Electric_Blanket_(Master_Bedroom):_Automatically_turn off
You can get the exact name from the states panel in automation tools
When you have the exact entity_id you can add it as another entity in groups.yaml
Thank you. So the group id reference was the alias of the automation.