Custom Component for node-red-contrib-home-assistant-websocket

My initial tests show that this is working perfectly. Now for full integration! Thank you again!

Trying to update to 0.2.0, but with: ā€œgit+https://github.com/zachowj/node-red-contrib-home-assistant-websocket#masterā€

I get this:

image

The Node-RED custom component is at version 0.2.0 but youā€™re installing the Node-RED package?

The Node-RED package canā€™t be installed via a Github link because it requires a build process to finished creating all the files. It is best to install it directly from npm. This will solve the missing files issue.

npm install node-red-contrib-home-assistant-websocket.

I was trying to update 'cause I have the (solved?) problem to have sensors duplicate (with _x appended) if use more than one node with same Home Assistant Config Name.

Is there another way to update the sensor value?

The sensor node is a one to one entity in HA. If you need to set a sensors value from two different flows use a link node.

How do you get this note to update the state of a binary sensor? When I give a second sensor node the same name and try to update it to false for instance it just creates a new binary sensor.

Sorry, Iā€™m on the mobile and I can post more details in the morning.

To clarify, Iā€™m trying to update the binary sensor state from the same flow that initially created it using a switch node to determine whether to set it true or false.

Use one sensor node and pass it the true/false as msg.payload

1 Like

Please Help Me
Iā€™ve installed the hassio with hassos on VM, the node red is ok but for the two node in topic something is wrong and i donā€™t understand. Iā€™ve installed the additional integration and every seem ok, iā€™ve put the palette for the sensor in the flow and deployed immediately the entity was registered in history by the integration



but when i try to put a value by the msg.payload iā€™ve got an error on node red below my node red say that iā€™ve to install the integration!

the node red was installed by the add on of the store, meanwhile for the two nodes (already presents in the palette) Iā€™ve created the custom component following instruction on the github of https://github.com/zachowj/hass-node-red
Is there anybody who can help me? Thank you a lot

Looks like you had a successful update after the error timestamp. My guess would be that the sensor node tried to update HA before it had responded back that it had the node-red integration installed.

thank you for your answer, yes it seems only a matter of syncro, anyway still the message remain anyway the node works corretly and in hass iā€™ve my entity with value update corretly. It seems that at the deploy as the connection with the hass serve itā€™s not very fast the node red is not able to know if the integration is working. After the deploy no error and everything goes well.

Change your deploy method on Node Red to be Flow only or Modified Nodes only. You donā€™t need to do a full redeploy every time.

HI @Kermit,

sorry to bother you but I would appreciate your help. Iā€™m positive Iā€™ve followed all the instructions and what I see looks promising

15

but I donā€™t see a thing ā€œon the other sideā€.

Seeing the word ā€œRegisteredā€ suggests the webhook was created and I donā€™t see any message in the sensor configuration pop-up either.

Could you provide some guidance? many thanks in advance! :slight_smile:

disregard my post aboveā€¦ I just went to lovelace UI and the entity seems to be available!!

42

First it need to register and second message will send msg.payload to Home Assistant

Not sure if this has been brought up yet. Would it be possible to have a msg output when the node is disabled?
Most of the cases in which I would use require a disable of stop message do disable the timer or node.

Team, for some reason today my node-red integration with home assistant seems to have gone south. All my nodes in Node-red, even the ones which are not exposed to HA (like the one snipped below) have stopped working.

image

I keep seeing this messages populate the node-red log

5 Mar 12:01:41 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:01:46 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:01:52 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:01:57 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:02 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:07 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:12 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:17 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:22 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:28 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core
5 Mar 12:02:33 - [info] [server:Home Assistant] WebSocket Connecting http://supervisor/core

any idea what may be happening? Iā€™ve tried some things already with no success. Upgrade HA, restarted the add-on, etc.

For the sensor-node, is there a way to change icon depending on state? Pretty much the only thing keeping me from converting the rest of my template sensors from HA to node-red.

I.e. in HA iā€™m using the icon_template attribute but in node red I only see a field for icon.

Yeah, could make it process jinja2 templates if the icon value from NR contains {% or {{

Sorry, you mean itā€™s already working like that or that you could make it in a future release?