Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
201 stars 67 forks source link

Hue magic crashes Node red #398

Open TerryMcgurk opened 1 year ago

TerryMcgurk commented 1 year ago

Describe the bug After downloading and installing hue magic into node red, was unable to get it working. I currently run two hue hubs both (later ones) and these are both discovered when attempting to set up a hue bridge node. the IP address's auto populate as my hubs and the the API keys are populated after pressing the button on the front of the hub, however unable to search for lights of any other devices and the bridge node stays in a "Connecting" state. after a short period of having the node deployed within a flow node red returns 502 bad gateway error and becomes unavailable. Node run is running in home assistant, however I have also attempted to set up a standalone Node red and Node JS via docker but this also returns the same issue and crashes the node red instance. any help or guidance would be greatly appreciated and this would be very useful for my current setup. thanks.

Expected behaviour Hue magic to detect hubs connect via API key and enable control of all hue devices.

Please complete the following information:

Additional context Add any other context about the problem here.

beatagerger commented 1 year ago

hello, same problem here... and i thought i did something wrong...

I tried with 2 different systems, HA OS and also HASS in Docker (on other Pi), both the same...

I have tried:

  1. Uninstall nodered

+

  1. Delete the "NodeRed" file

+

  1. Reinstallation

= but the problem persists...

In Home Assistant (both HASS and also HA-OS) asked to "pair" again to Hue Magic (button duck)

I had to print several times in HA itself (after which there were some integrations with red dots and exclamation marks, which only want to disappear with "delete") After uninstalling NodeRed and deleting the file, HA no longer asked for Hue integration. ...

However, in NodeRed I have nodes, with the Hue also integrated, and the data (temperature and light) are passed on to others via MQTT, which no longer works, so the automation is destroyed.

I understand that HA is an open system, but an update should normally add something to a system rather than destroy it...

I would also be interested to know if HA can be taken as reliable, and this problem was just a misstep, because if it only works halfway, I wouldn't want to renew my annual subscription and would rather invest in another system that runs more reliably (Arduino, Alexa , Google-Home, Smartthings, Ewelink.... I have no problem with cloud projects, they are maintained) or IO-Brocker...

Please, for solution (thanks)