I just cannot get this to pass the config check.
The error relates to the conditions:
Invalid config for [automation]: [condition] is an invalid option for [automation]. Check: automation->trigger->0->condition. (See /config/configuration.yaml, line 144). Please check the docs at https://home-assistant.io/components/automation/
- alias: Motion Sensor North Security Lights On
trigger:
platform: state
entity_id: binary_sensor.north_motion
to: 'on'
condition:
condition: or
conditions:
- condition: sun
after: 'sunset'
before: 'sunrise'
- condition: state
entity_id: 'input_boolean.walk_test'
state: 'on'
action:
service: switch.turn_on
entity_id: switch.floodlights_north
Any ideas anyone?