Message malformed: extra keys not allowed @ data['state']

But what is wrong?

lias: Garage lamp uitschakelen
trigger:
  - platform: state
    entity_id:
      - binary_sensor.lumi_lumi_sensor_motion_aq2_beweging
    to: 'off'
    from: 'on'
    for:
      minutes: 1
  - platform: state
    entity_id:
      - binary_sensor.garage_buitendeur_openen
      - binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
    state: 'off'
condition:
  - condition: state
    entity_id:
      - binary_sensor.garage_buitendeur_openen
      - binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
      - binary_sensor.lumi_lumi_sensor_motion_aq2_beweging
    state: 'off'
action:
  - type: turn_off
    device_id: fecf5c51ebf9bbd4a107312bc090035b
    entity_id: 385b7481b806d1dfd05e45d95cb31b1c
    domain: switch
mode: single

state: 'off' in the trigger should be to: 'off'?

1 Like