I want to create a script that turns off all of my lights and turns off some motion sensor automations. The automations turn off after executing the script but the lights stay on. Can anyone help me with this issue?
Thanks!
This is my cofig in scripts.YAML:
'1566292949598':
alias: Morning
sequence:
service: automation.turn_on
data:
entity_id:
- group.all_automations
'1566293130015':
alias: Night
sequence:
- service: automation.turn_off
entity_id: group.all_automations
- service: light.turn_off
entity_id: group.all_lights