home-assistant.io
home-assistant.io copied to clipboard
Message malformed: extra keys not allowed @ data['0']
Feedback
Always have the same error message:
Message malformed: extra keys not allowed @ data['0']
The code I use as model is the last: # Example automation using snapshot
I get the same error with the sample code itself.
# Example automation using snapshot
- alias: "Window opened"
trigger:
- platform: state
entity_id: binary_sensor.window
from: "off"
to: "on"
condition: []
action:
- service: scene.create
data:
scene_id: before
snapshot_entities:
- climate.ecobee
- light.ceiling_lights
- service: light.turn_off
target:
entity_id: light.ceiling_lights
- service: climate.set_hvac_mode
target:
entity_id: climate.ecobee
data:
hvac_mode: "off"
- alias: "Window closed"
trigger:
- platform: state
entity_id: binary_sensor.window
from: "on"
to: "off"
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.before
URL
https://www.home-assistant.io/integrations/scene/
Version
2024.4.4
Additional information
No response
Hey there @home-assistant/core, mind taking a look at this feedback as it has been labeled with an integration (scene
) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of scene
can trigger bot actions by commenting:
-
@home-assistant close
Closes the feedback. -
@home-assistant rename Awesome new title
Renames the feedback. -
@home-assistant reopen
Reopen the feedback. -
@home-assistant unassign scene
Removes the current integration label and assignees on the feedback, add the integration domain after the command. -
@home-assistant add-label needs-more-information
Add a label (needs-more-information) to the feedback. -
@home-assistant remove-label needs-more-information
Remove a label (needs-more-information) on the feedback.
Same problem as #26218, but no solution since Feb 2023.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
I have this issue too. Whenever I try to save any script (be it in Automations or in Scripts) I get the same error:
Message malformed: extra keys not allowed @ data['0']
I tried scripts (1 to 1 copy, no modifications) other users enabled succesfully.
See example attached, but again: this happens to all scripts created in YAML when I try to save.
Having same problem. Seems to be failing on...
action:
- alias: Enable Kitchen Light Motion
device_id: cf682cfa869411186c9449644db0636f
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 6
bitmask: null
subtype: 6 (Motion Sensor) on endpoint 0
value: 1