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

Error Message "Message malformed: extra keys not allowed @ data['0']" When Implementing Provided Example Automations #358

Open
1 task done
xNoVoSx opened this issue May 3, 2024 · 1 comment

Comments

@xNoVoSx
Copy link

xNoVoSx commented May 3, 2024

What happened?

config_entry-smart_irrigation-f8cb1dfbb1ddaa9c2cc0aac6aa5458ba.json

Hello,

I'm receiving the error message "Message malformed: extra keys not allowed @ data['0']" when attempting to implement the provided example automations. I apologize for the inconvenience, but I'm new to Home Assistant and need assistance in resolving this issue.

- alias: Smart Irrigation
  description: 'Start Smart Irrigation at 06:00 and run it only if the adjusted_run_time is >0 and run it for precisely that many seconds'
  trigger:
  - at: 06:00
    platform: time
  condition:
  - above: '0'
    condition: numeric_state
    entity_id: sensor.smart_irrigation_garten_vorne
  action:
  - data: {}
    entity_id: switch.irrigation_tap1
    service: switch.turn_on
  - delay:
      seconds: '{{states("sensor.smart_irrigation_garten_vorne")}}'
  - data: {}
    entity_id: switch.irrigation_tap1
    service: switch.turn_off
  - data: {}
    service: smart_irrigation.reset_bucket
    target:
      entity_id: sensor.smart_irrigation_garten_vorne

How to reproduce

  1. Navigate to the Automations section in Home Assistant.
  2. Create a new automation using the provided example automation.
  3. Attempt to save or activate the automation.
  4. Observe the error message "Message malformed: extra keys not allowed @ data['0']" being displayed.
- alias: Smart Irrigation
  description: 'Start Smart Irrigation at 06:00 and run it only if the adjusted_run_time is >0 and run it for precisely that many seconds'
  trigger:
  - at: 06:00
    platform: time
  condition:
  - above: '0'
    condition: numeric_state
    entity_id: sensor.smart_irrigation_garten_vorne
  action:
  - data: {}
    entity_id: switch.irrigation_tap1
    service: switch.turn_on
  - delay:
      seconds: '{{states("sensor.smart_irrigation_garten_vorne")}}'
  - data: {}
    entity_id: switch.irrigation_tap1
    service: switch.turn_off
  - data: {}
    service: smart_irrigation.reset_bucket
    target:
      entity_id: sensor.smart_irrigation_garten_vorne

Relevant log output

No response

Which version are you running?

v2024.3

Diagnostics file

  • I have attached a diagnostics file

Additional information

No response

@xNoVoSx xNoVoSx added the bug Something isn't working label May 3, 2024
@jeroenterheerdt
Copy link
Owner

Remove the data:{} lines. Those are not needed unless you actually need to pass in data....

@jeroenterheerdt jeroenterheerdt added awaiting user verification and removed bug Something isn't working labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants