Hello,
I’m having issue making an automation works.
I’d like to have an hallway light turn on after the motion sensor is triggered, but only if the sun has set.
Here’s what I have so far :
#AUTOMATION HALLWAY LIGHT MULTISENSOR TRIGGERED AFTER SUNSET
alias: Turn on hallway after sunset sensor
hide_entity: True
trigger:
platform: state
entity_id: sensor.aeotec_zw100_multisensor_6_burglar_12_10
from: '0'
to: '8'
condition:
platform: sun
before: sunrise
action:
service: homeassistant.turn_on
entity_id: script.sensor_hallway_light
Home Assistant doesn’t get the automation althrough it passes YAML testers. I don’t really know what’s wrong with it but it seems to be the condition :
16-12-06 11:27:40 homeassistant.util.yaml: mapping values are not allowed here
in "/home/hass/.homeassistant/extraconfig/automation/sensor_hallway.yaml", line 10, column 10
Any advices ?
Thanks !