Hi everyone. Im new to Home Assistant and im trying to write a YAML file to control my exterior lights. I want them turning on at sunset and running until 1:00 am and then I want my ring doorbell motion sensor to trun them on if any motion is detected.
Im part of the way there but im stuck with a Message malformed: extra keys not allowed @ data[‘action’][1][‘at’].
I was hoping that someone would be able to give me some pointers in my YAML below. Thankls
alias: Control Exterior Lights
description: ''
mode: single
trigger:
- platform: sun
event: sunset
condition: []
action:
- type: turn_on
device_id: 6185f72e84c34c64db08137baxxxxxxxx
entity_id: switch.0003804224a160xxxxxxxx
domain: switch
- condition: time
after: '01:00'
- type: turn_off
device_id: 6185f72e84c34c64db08137baxxxxxxxx
entity_id: switch.0003804224a160xxxxxxxx
domain: switch
trigger:
- type: motion
platform: device
device_id: 87dcb00edf5fd7ce0632cf1f1xxxxxxxx
entity_id: binary_sensor.ring_doorbell_front_door_motion
domain: binary_sensor
action:
- type: turn_on
device_id: 6185f72e84c34c64db08137baxxxxxxxx
entity_id: switch.0003804224a160xxxxxxxx
domain: switch
- delay: '00:05:00'
- type: turn_off
device_id: 6185f72e84c34c64db08137baxxxxxxxx
entity_id: switch.0003804224a160xxxxxxxx
domain: switch
trigger:
platform: sun
event: sunrise
offset: "-00:20:00"
action:
- type: turn_off
device_id: 6185f72e84c34c64db08137baxxxxxxxx
entity_id: switch.0003804224a160xxxxxxxx
domain: switch
mode: single
3 posts - 2 participants