zachowj / node-red-contrib-home-assistant-websocket

Node-RED integration with Home Assistant
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/
MIT License
498 stars 93 forks source link

Device node not working #1661

Closed ep1cman closed 2 hours ago

ep1cman commented 2 hours ago

Describe the bug

Today I did a fresh home assistant install using HAOS. I installed the node-red add-on and have made sure I am running the latest version of the add-on and this plugin via the pallet manager.

When I create an automation directly in HA using a device trigger, it works as expected. If I try the same thing with node-red it doesnt work.

Does anyone have any suggestions on what might be the issue here? I notice there is a warning message about versions, but as far as I can tell I meet the requirement listed.

To Reproduce

Add a device node Configure it to be a trigger from a button

Expected behavior

I expected to see output from the node

Screenshots

image image

Example Flow

[{"id":"868c733e4886ad62","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"e9c4416c9f8ca7d5","type":"debug","z":"868c733e4886ad62","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":300,"y":200,"wires":[]},{"id":"db6f3195032e8158","type":"ha-device","z":"868c733e4886ad62","name":"","server":"f61bf0f66c40cfa9","version":1,"exposeAsEntityConfig":"","inputs":0,"deviceType":"trigger","device":"10e98be14011c7f27a3d29154eaa5fff","event":{"platform":"device","domain":"mqtt","device_id":"10e98be14011c7f27a3d29154eaa5fff","type":"action","subtype":"single","metadata":{}},"capabilities":[],"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":200,"wires":[["e9c4416c9f8ca7d5"]]},{"id":"f61bf0f66c40cfa9","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":false}]

Environment Information

Version: 0.74.1

Home Assistant version: 2024.10.3 Companion version: 0.0.0

Node-RED version: 4.0.3 Docker: yes Add-on: 18.1.1

Node.js version: v18.20.4 x64 linux OS: Linux 6.6.54-haos x64

Additional context

No response

ep1cman commented 2 hours ago

Ah! I needed to install the "node-red companion" from HACS!