I’ve recently upgraded to the latest build and added new devices, upon a Check Config, I get the following:
Invalid config for [automation]: extra keys not allowed @ data['condition'][0]['conditions'][2]['operation_mode']. Got None
not a valid value for dictionary value @ data['condition'][0]['conditions'][2]['condition']. Got None. (See /config/configuration.yaml, line 76). Please check the docs at https://home-assistant.io/components/automation/
I’ve managed to narrow it down to an automation that was working fine previously:
- alias: 'AC cooling after work abort'
trigger:
platform: time
at: '15:40:00'
condition:
condition: and
conditions:
- condition: time
weekday:
- mon
- tue
- thu
- fri
- condition: state
entity_id: 'group.people'
state: 'not_home'
- condition: state
entity_id: climate.living_room_ac
operation_mode: cool
action:
- service: climate.set_operation_mode
data:
entity_id: climate.living_room_ac
operation_mode: 'off'
- service: notify.notify
data:
message: "Nobody is home. The living room cooling will now be switched off"
I get a valid config if i comment out the section:
- condition: state
entity_id: climate.living_room_ac
operation_mode: cool
Any idea why this would be causing an issue now? The automation hasn’t changed and the operation mode mentioned is valid.