Double conditions not working!

Hi people, trying to get more than one condition in one automation is giving me a major headache! even though i am following all the guidelines, when i go to validate the config, it gives me the following error: “Invalid config for [automation]: extra keys not allowed @ data[‘condition’][0][‘conditions’][0][‘before’]. Got None not a valid value for dictionary value @ data[‘condition’][0][‘conditions’][0][‘condition’]. Got None required key not provided @ data[‘condition’][0][‘conditions’][0][‘entity_id’]. Got None. (See /config/configuration.yaml, line 66). Please check the docs at

the automation itself:

 - alias: Hallway Chandelier ON When Movement
     platform: state
     entity_id: binary_sensor.hallway
     from: 'off'
     to: 'on'
     condition: or
     - condition: time
       before: 22:00:00
     - condition: sun
       after: sunset
     service: light.turn_off
     entity_id: light.hallway_chandelier


Compare your time condition to that one in the docs.

1 Like

So annoying! Looked over this bit of code so many times and missed this!! Feel silly! Thank you SO MUCH!

1 Like

You don’t have to! That happened everyone of us.