I seem to be posting quite a bit today but hopefully someone can please help me out with this one.
I’m getting an error in the logs regarding an automation which has been fine for the last couple of days but is now producing the below error which I don’t understand.
I haven’t changed anything in the automation so I’m at a loss, so if anyone could kindly help to identify what could be causing the error?
Logger: homeassistant.components.automation
Source: components/automation/config.py:108
Integration: Automation (documentation, issues)
First occurred: 2:57:19 PM (25 occurrences)
Last logged: 4:29:07 PM
Automation with alias 'Dark Evening' could not be validated and has been disabled: extra keys not allowed @ data['action'][0]['choose'][1]['not']. Got [{'condition': 'state', 'entity_id': 'light.xmas_tree_lights', 'state': 'unavailable'}]
Automation:
- alias: Dark Evening
id: dark_evening
mode: single
trigger:
platform: numeric_state
entity_id: sensor.master_bedroom_motion_sensor_illuminance
below: 10
action:
- choose:
# If NOT Xmas
- conditions:
- condition: state
entity_id: input_boolean.holiday_mode
state: 'off'
- condition: state
entity_id: light.xmas_tree_lights
state: 'unavailable'
- condition: state
entity_id: sun.sun
attribute: rising
state: false
sequence:
- service: script.dark_evening
# ELSE If Xmas
- conditions:
- condition: state
entity_id: input_boolean.holiday_mode
state: 'off'
- condition: state
entity_id: sun.sun
attribute: rising
state: false
not:
- condition: state
entity_id: light.xmas_tree_lights
state: 'unavailable'
sequence:
- service: script.dark_evening_xmas