@fountain27 wrote:
I have created a few automation within the UI and after gaining confidence I have tried to write my own. And for the life of me, I cannot figure out what I am doing wrong. I read in one post the entity_id has replaced the id created by UI.
I have tried different variations changing my config file with automation: !include.yaml either active or commented out. If I commented it out I would place automation: at the top of the automations.yaml file.
Any suggestions are greatly appreciated. I have experience writing VBA, but yaml has been a bit tricky. I have used yamllint.com to proof my code before adding.
Here is one automation I wrote:
- alias: Porch_Light_On trigger: entity_id: binary_sensor.ecolink_door_window_sensor_sensor platform: device type: turned_on condition: - condition: state entity_id: sun.sun state: below_horizon action: service: switch.turn_on entity_id: switch.honeywell_unknown_type_4952_id_3036_switch type: turn_on
Posts: 2
Participants: 2