zachowj / hass-node-red

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

Webhook Node not loading #202

Closed montaque22 closed 11 months ago

montaque22 commented 11 months ago

Version of the custom_component

Configuration

This issue can be easily seen when using a webhook node by itself within node red. No configuration is really needed. But here is an example of my webhook node

[{"id":"8eba25a3552a100b","type":"ha-webhook","z":"6161d870e25ec591","name":"","server":"228d3d53.df8e02","version":2,"outputs":1,"webhookId":"0AEr9YAoDe0tYRYsAnkI0eKmeSDeaf6A","method_get":false,"method_head":false,"method_post":true,"method_put":true,"outputProperties":[{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"},{"property":"payload","propertyType":"msg","value":"","valueType":"data"}],"payloadLocation":false,"payloadLocationType":false,"headersLocation":false,"headersLocationType":false,"x":100,"y":680,"wires":[["940f290432704f7b"]]},{"id":"228d3d53.df8e02","type":"server","name":"Home Assistant","addon":true}]

Describe the bug

Webhook nodes no longer load or respond to requests within Home assistant node-red. Interestingly, the webhooks trigger within Home Assistant still works. When node red Builds or is restarted a none helpful error message displays (See the debug logs)

Debug log


[error] [ha-webhook:8eba25a3552a100b] Error registering entity. Error Message: [object Object]
zachowj commented 11 months ago

I had this issue, but then couldn't reproduce it. If you edit the node, change the name, and then deploy. Does it register the webhook?

montaque22 commented 11 months ago

Yup tried change the name, the id and the allowed methods but i still got the same error

zachowj commented 11 months ago

Are you running the latest version of the custom component?

montaque22 commented 11 months ago

When you say "custom component" are you refering to the webhook node? How would i find the version of that node? (short answer - i want to say yes? i've updated everything i saw that could be updated in regards to Node-Red)

Based on the docs i know there is a dependency on the Node Red Companion integration and a dependency on node-red-contrib-home-assistant-websocket (which is at vers. 0.55.1)

zachowj commented 11 months ago

The node red companion is also present

Node-RED companion is the custom component

montaque22 commented 11 months ago

Then yes. As far as i am aware it is up to date. What is the best way to double check?

montaque22 commented 11 months ago

Damn...... No. It wasn't updated. I went to HACS and can see the version numbers. I'll update it and get back to you

montaque22 commented 11 months ago

Well that's embarrassing 🫣 but im glad its working. Thank you for pointing that out. I appreciate your help!