Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automations 2024.4.0 - Actions: extra keys not allowed @ data['condition'] #114876

Closed
danielsza opened this issue Apr 4, 2024 · 0 comments · Fixed by #114825
Closed

automations 2024.4.0 - Actions: extra keys not allowed @ data['condition'] #114876

danielsza opened this issue Apr 4, 2024 · 0 comments · Fixed by #114825

Comments

@danielsza
Copy link

The problem

starting in 2024.4.0 a bunch of my automations that have a/b tests fail to load.
there were working in 2024.3.x

the error message is " Message malformed: extra keys not allowed @ data['condition'] "

`description: ""
mode: single
trigger:

  • platform: device
    device_id: 6beaa56500f4cd9f2902abdac5e95641
    domain: zwave_js
    type: event.value_notification.central_scene
    property: scene
    property_key: "002"
    endpoint: 0
    command_class: 91
    subtype: Endpoint 0 Scene 002
    condition: []
    action:
  • delay:
    hours: 0
    minutes: 0
    seconds: 3
    milliseconds: 0
  • choose:
    • conditions:
      • condition: device
        type: is_on
        device_id: 3c2b1503f017e766ae3a53744d205529
        entity_id: 616e4d7d808c6c45d108759b259f58a6
        domain: light
        sequence: []
    • conditions:
      • condition: device
        type: is_off
        device_id: 3c2b1503f017e766ae3a53744d205529
        entity_id: 616e4d7d808c6c45d108759b259f58a6
        domain: light
        sequence:
      • delay:
        hours: 0
        minutes: 0
        seconds: 3
        milliseconds: 0
      • condition: device
        type: is_off
        device_id: 3c2b1503f017e766ae3a53744d205529
        entity_id: 616e4d7d808c6c45d108759b259f58a6
        domain: light
      • service: media_player.play_media
        target:
        entity_id: media_player.owntone_server
        data:
        media_content_id: >-
        media-source://tts/google_translate?message=The+light+didn%27t+respond%2C+we+will+reset+and+try+again....+please+wait.+Don%27t+press+any+buttons
        media_content_type: provider
        metadata:
        title: >-
        The light didn't respond, we will reset and try again.... please
        wait. Don't press any buttons
        thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
        media_class: app
        children_media_class: null
        navigateIds:
        - {}
        - media_content_type: app
        media_content_id: media-source://tts
        - media_content_type: provider
        media_content_id: >-
        media-source://tts/google_translate?message=The+light+didn%27t+respond%2C+we+will+reset+and+try+again....+please+wait.+Don%27t+press+any+buttons
      • type: turn_off
        device_id: 6beaa56500f4cd9f2902abdac5e95641
        entity_id: 56ecee739e8b18617dea6eb503c3674d
        domain: switch
      • delay:
        hours: 0
        minutes: 0
        seconds: 5
        milliseconds: 0
      • type: turn_on
        device_id: 6beaa56500f4cd9f2902abdac5e95641
        entity_id: 56ecee739e8b18617dea6eb503c3674d
        domain: switch
      • delay:
        hours: 0
        minutes: 0
        seconds: 15
        milliseconds: 0
      • type: turn_on
        device_id: 3c2b1503f017e766ae3a53744d205529
        entity_id: 616e4d7d808c6c45d108759b259f58a6
        domain: light
        brightness_pct: 100
      • delay:
        hours: 0
        minutes: 0
        seconds: 10
        milliseconds: 0
      • condition: device
        type: is_off
        device_id: 3c2b1503f017e766ae3a53744d205529
        entity_id: 616e4d7d808c6c45d108759b259f58a6
        domain: light
      • service: media_player.play_media
        target:
        entity_id: media_player.owntone_server
        data:
        media_content_id: >-
        media-source://tts/google_translate?message=The+light+didn%27t+respond+again.+Use+the+remote+to+control+the+light.
        media_content_type: provider
        metadata:
        title: >-
        The light didn't respond again. Use the remote to control the
        light.
        thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
        media_class: app
        children_media_class: null
        navigateIds:
        - {}
        - media_content_type: app
        media_content_id: media-source://tts
        - media_content_type: provider
        media_content_id: >-
        media-source://tts/google_translate?message=The+light+didn%27t+respond+again.+Use+the+remote+to+control+the+light.
      • service: notify.ios
        metadata: {}
        data:
        title: Alicia's Fan
        message: Alicia's Fan didn't respond after reset.
        alias: test
        `

when the a/b test is removed the automation will load.

What version of Home Assistant Core has the issue?

core-2024.4.0

What was the last working version of Home Assistant Core?

core-2024.3.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

description: ""
mode: single
trigger:
  - platform: device
    device_id: 6beaa56500f4cd9f2902abdac5e95641
    domain: zwave_js
    type: event.value_notification.central_scene
    property: scene
    property_key: "002"
    endpoint: 0
    command_class: 91
    subtype: Endpoint 0 Scene 002
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 3
      milliseconds: 0
  - choose:
      - conditions:
          - condition: device
            type: is_on
            device_id: 3c2b1503f017e766ae3a53744d205529
            entity_id: 616e4d7d808c6c45d108759b259f58a6
            domain: light
        sequence: []
      - conditions:
          - condition: device
            type: is_off
            device_id: 3c2b1503f017e766ae3a53744d205529
            entity_id: 616e4d7d808c6c45d108759b259f58a6
            domain: light
        sequence:
          - delay:
              hours: 0
              minutes: 0
              seconds: 3
              milliseconds: 0
          - condition: device
            type: is_off
            device_id: 3c2b1503f017e766ae3a53744d205529
            entity_id: 616e4d7d808c6c45d108759b259f58a6
            domain: light
          - service: media_player.play_media
            target:
              entity_id: media_player.owntone_server
            data:
              media_content_id: >-
                media-source://tts/google_translate?message=The+light+didn%27t+respond%2C+we+will+reset+and+try+again....+please+wait.+Don%27t+press+any+buttons
              media_content_type: provider
            metadata:
              title: >-
                The light didn't respond, we will reset and try again.... please
                wait. Don't press any buttons
              thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
              media_class: app
              children_media_class: null
              navigateIds:
                - {}
                - media_content_type: app
                  media_content_id: media-source://tts
                - media_content_type: provider
                  media_content_id: >-
                    media-source://tts/google_translate?message=The+light+didn%27t+respond%2C+we+will+reset+and+try+again....+please+wait.+Don%27t+press+any+buttons
          - type: turn_off
            device_id: 6beaa56500f4cd9f2902abdac5e95641
            entity_id: 56ecee739e8b18617dea6eb503c3674d
            domain: switch
          - delay:
              hours: 0
              minutes: 0
              seconds: 5
              milliseconds: 0
          - type: turn_on
            device_id: 6beaa56500f4cd9f2902abdac5e95641
            entity_id: 56ecee739e8b18617dea6eb503c3674d
            domain: switch
          - delay:
              hours: 0
              minutes: 0
              seconds: 15
              milliseconds: 0
          - type: turn_on
            device_id: 3c2b1503f017e766ae3a53744d205529
            entity_id: 616e4d7d808c6c45d108759b259f58a6
            domain: light
            brightness_pct: 100
          - delay:
              hours: 0
              minutes: 0
              seconds: 10
              milliseconds: 0
          - condition: device
            type: is_off
            device_id: 3c2b1503f017e766ae3a53744d205529
            entity_id: 616e4d7d808c6c45d108759b259f58a6
            domain: light
          - service: media_player.play_media
            target:
              entity_id: media_player.owntone_server
            data:
              media_content_id: >-
                media-source://tts/google_translate?message=The+light+didn%27t+respond+again.+Use+the+remote+to+control+the+light.
              media_content_type: provider
            metadata:
              title: >-
                The light didn't respond again. Use the remote to control the
                light.
              thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
              media_class: app
              children_media_class: null
              navigateIds:
                - {}
                - media_content_type: app
                  media_content_id: media-source://tts
                - media_content_type: provider
                  media_content_id: >-
                    media-source://tts/google_translate?message=The+light+didn%27t+respond+again.+Use+the+remote+to+control+the+light.
          - service: notify.ios
            metadata: {}
            data:
              title: Alicia's Fan
              message: Alicia's Fan didn't respond after reset.
alias: test

Anything in the logs that might be useful for us?

No response

Additional information

No response

@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant