zachowj / hass-node-red

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

Documentation, please #3

Closed Bluhme1 closed 4 years ago

Bluhme1 commented 4 years ago

I think your integration fills a gap between Hassio and Node Red. Much appreciated. But I could need som documentation/ explanation how to actually use it. With a few examples

zachowj commented 4 years ago

What sort of documentation are you looking for? Everything you need to know is in the README. Once installed and added via Integrations all configuration is done from Node-RED.

Bluhme1 commented 4 years ago

I have everything installed ok. But how do I configure the Node Red part? E.g how to create an entity from a node? Perhaps with a few examples - just like the video in the read me file but with a bit more explaining. A kind of How-to approach

zachowj commented 4 years ago

HDsGU4BCWA

https://community.home-assistant.io/t/node-red-contrib-home-assistant-websocket/71032/389?u=kermit

Bluhme1 commented 4 years ago

Great. So simple. I didn’t have the sensor node until I upgrade through Node Red Palette. Now everything works fine. Thank you very much

vajonam commented 4 years ago

Question about creating a switch to enable/disable flows instead of input_booleans.

  1. what is you availability to maintain this project. I have seen custom components fall by the wayside as HA moves on a fast pace. I am considering moving to this method but have some reservations around longevity of this integration, will this be moved into HA long term? (ideal)

  2. in the event:state node, I need to always search for "switch.xyz" where 'xyz' is the name specified name field in the expose to HA panel? why aren't the names implied? i.e. it should always be the same right?

zachowj commented 4 years ago

@vajonam Actually had to go look, but I have been maintaining zachowj/node-red-contrib-home-assistant-websocket for over a year now. I don't see a reason why one would continue being maintained and the other wouldn't.

Everyone is going to have their own naming conventions in NR and HA. The option is there to allow for complete customization.

vajonam commented 4 years ago

Question, about poll state, will we see similar behavior for that node? I have a flow that check the state of an input boolean if on one branch, if not other branch, I can simulate this with event: state.. but would more complicated than it is now.

vajonam commented 4 years ago

Also another question on the state node, I do not get a "off" even when i turn of the corresponding switch.. what I am missing? it goes into the disabled state but how do I use that to affect a flow?

zachowj commented 4 years ago

@vajonam I think you're interrupting the docs incorrectly.

image

When you expose an event node the switch in HA allow you to enable/disable the node so that the event no longer triggers. It's doesn't trigger the node when you flip the switch in HA. Coming later there will be a service-call where you'll be able to trigger the event node from HA. The same way native automation work in HA.

vajonam commented 4 years ago

Yes I understand that. But I guess if I see this an real automation if would make it clear-er. I am not sure what I can do with a disabled node. I cannot stop a flow, cannot change paths to alternate path.. maybe that is what I am missing.

vajonam commented 4 years ago

image

I have gotten around by creating 5 switches using the nodes on the right and the on the event: state nodes on the left i control the traffic flow. This determines if the flow progresses.

vajonam commented 4 years ago

Lets move this discussion to https://community.home-assistant.io/t/two-new-nodes-with-custom-integration-looking-for-testers/150736/35