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

Why can’t I do this?

alias: 1e badkamer ventilator aan en uit
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor.1e_badkamer_warm_water
    id: warm_water
  - device_id: 9c05bef1cd794483a2fd923ad772d2aa
    domain: deconz
    platform: device
    type: remote_button_long_press
    subtype: turn_off
    id: button_press
condition: []
action:
  - type: turn_on
    device_id: b3e8ea8642f0619b4bc2073a52b4107c
    entity_id: switch.1e_badkamer_ventilator
    domain: switch
  - choose:
      - conditions:
          - condition: state
            entity_id: binary_sensor.1e_badkamer_warm_water
            state: 'on'
        sequence:
          - service: timer.start
            data:
              duration: '00:05:00'
            target:
              entity_id: timer.badkamer_ventilator_timer
          - wait_for_trigger:
              - platform: state
                entity_id: timer.badkamer_ventilator_timer
                to: idle
          - type: turn_off
            device_id: b3e8ea8642f0619b4bc2073a52b4107c
            entity_id: switch.1e_badkamer_ventilator
            domain: switch
    default: []
mode: restart
traces:
  stored_traces: 10

Try giving your automation an id:

id: 09f854dc-941f-4039-91fc-199225289be6 # any random unique sequence
alias: 1e badkamer ventilator aan en uit
description: ''
trigger:
  - platform: state
    entity_id: binary_sensor

Which version of HA are you running?

1 Like

The latest. 2017.7.4

Didn’t work. Sorry still the same error.

Maybe it is useful to know that this automation was made within the UI.

The documentation seems wrong.
trace: is working, but not traces:

2 Likes

Yeah! Thank you!

I’ve opened a PR for the doc, assuming it’s the doc that is wrong and not a code regression of sorts (but I doubt it as I have a"trace:" form in my automations since a while)

2 Likes

Just FYI, you need to give your automation an id if you want to use the trace troubleshooting feature.

2 Likes