Hi, I’m fairly new with Home Assistant, and I have a problem with multiple “or” conditions. Event if I copy/paste examples from the doc, I always get an error. My only workaround for now is to split my automation
Here is my code :
- id: ExterieurOnMotion
alias: ExterieurOnMotion
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_outside
to: 'on'
condition: or
conditions:
- condition: sun
after: sunset
after_offset: "-02:00:00"
- condition: sun
before: sunrise
before_offset: "01:00:00"
action:
- data:
entity_id: light.lumiere_exterieure
service: light.turn_on
Error message in the logs :
2018-10-15 11:52:44 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: expected a dictionary @ data['condition'][0]. Got None
extra keys not allowed @ data['conditions']. Got None. (See /config/configuration.yaml, line 346). Please check the docs at https://home-assistant.io/components/automation/
Does anyone know what I’m doing wrong ? Thanks !