I got the original program from the Share your projects and modified it but it won’t load. I’ve run the Screen portion and the enable and disable parts they all seem ok. In the main part I took out the logic about if some lights were already on. I’ve tried changing the number of spaces in the “condition;” all with no luck. I’ve gone thru the spelling carefully, nothing as work.
alias: First Morning Motion
trigger:
platform: state
entity_id: binary_sensor.mstrbd_sinksensor
to: ‘on’
condition:
condition: state
entity_id: input_boolean.trigger_first_morning
state: ‘on’
Thanks for the tip
Title should have read “Can’t get Automation to run”. It doesn’t ‘compile’ not sure if that’s the right description. It doesn’t show up it the entities list. Again I’ve tried with and without the dash in the condition state line and with 2 spaces and 4 spaces. Again Thanks ,
- alias: First Morning Motion
trigger:
platform: state
entity_id: binary_sensor.mstrbd_sinksensor
to: 'on'
condition:
- condition: state
entity_id: input_boolean.trigger_first_morning
state: 'on'
action:
- service: homeassistant.turn_off
entity_id: input_boolean.trigger_first_morning
- service: scene.turn_on
entity_id: scene.morning_first_motion
This was a good question I see that I have binary sensors commented out. I had forgotten that I commented them out to get it to run ealier… There was something wrong in the line, I replaced it with a cut and paste from the example section from the web and now it runs.
New entery “binary_sensor: !include_dir_merge_list binary_sensors” which to me looks just like the fist but now it works. I also changed the line " [entity_id: binary_sensor.mstrbd_sinksensor" to “entity_id:
- binary_sensor.mstrbd_sinksensor” but that didn’t help so I’ve changed it back.