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

Problem with Switch Entity #38

Closed GrimmJok3r closed 3 years ago

GrimmJok3r commented 4 years ago

Hi

First of all thank you for you work and nice add-on

HA version Home Assistant: 0.114.4 Node_Red version: 7.1.0 Node Red Intregration version: 0.4.4

Describe the bug

The output points in Node red of the switch won't show any data when i add a Debug node to it. When flipping the switch in HA the event-all and state change does show the switch being flipped.

If you look at the switch image attached it looks like some stuff is missing.

so i have a working situation especially handy concerning Lovelace :)

Screenshot 2020-09-01 at 23 08 25

Thank you for your work

fordarn commented 4 years ago

Hi GrimmJok3r I have encountered the same issue which is causing the switch entity not to output on the output nodes and then is obviously not working did you find a work around?

zachowj commented 4 years ago

The switch entity currently doesn't do any output unless you use the nodered.trigger service in HA. Inside NR it functions the same as an NR switch node, it just redirects an input based on the switch state.

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

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.