Automation issue with 0.72.1

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.

I’m not sure how it worked before, but I believe it should be:

      - condition: state
        entity_id: climate.living_room_ac
        state: cool
1 Like

Thanks for the response! I’ll have another look but I think you’re right. :slight_smile:

That was it, thanks for the response!

1 Like