zachowj / hass-node-red

Companion Component for node-red-contrib-home-assistant-websocket to help integrate Node-RED with Home Assistant Core
MIT License
442 stars 181 forks source link

Stop work nodered.trigger after update #224

Closed krasevych closed 8 months ago

krasevych commented 8 months ago

Version of the custom_component

latest, today updated

Configuration

  - type: image
    entity: light.cabinet_lights_left
    tap_action:
      action: call-service
      service: nodered.trigger
      service_data:
        entity_id: switch.gledopto_toggle
        payload:
          id: light.cabinet_lights_left
          brightness_on: 250

Describe the bug

After update I see the error: Call-service error. extra keys not allowed @ data['payload']

Debug log


Call-service error. extra keys not allowed @ data['payload']
zachowj commented 8 months ago

https://github.com/zachowj/hass-node-red/releases/tag/v3.0.0

It was a breaking change in v3

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/custom_integration/exposed-nodes.html

  - type: image
    entity: light.cabinet_lights_left
    tap_action:
      action: call-service
      service: nodered.trigger
      service_data:
        entity_id: switch.gledopto_toggle
        message:
          payload:
            id: light.cabinet_lights_left
            brightness_on: 250
krasevych commented 8 months ago

THANKS!