I’m trying to run a script that will make sure a smart switch is turned on, and then activate a scene. The scene works fine by itself, but if the switch isn’t on then the scene can’t see the lights to activate the scene so I am using a script to sequence the process.
Nighttime:
alias: Nighttime
sequence:
- service: switch.turn_on
entity_id: switch.stairway_switch
- delay:
seconds:10
- service: scene.turn_on
entity_id: scene.Nighttime
The scene works properly when run, so I know it’s somewhere in the script. The script is in a separate file from the configuration.yaml file, since the scripts show up on the dashboard and the haas --script check_config gripes if I do something wrong in the scripts.yaml file, I’m assuming it’s getting included and processes properly at least syntactically. The message log only shows the following message in response.
16-11-13 14:55:19 homeassistant.components.http: Serving /api/services/homeassistant/turn_on to 127.0.0.1 (auth: True)
Any thoughts please?