# Trouble Integrating Philips HUE with node-red-contrib-huemagic on Updated Node-RED & Node.js

**URL:** <https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882>\
**Category:** General\
**Created:** [31 March 2024 14:00 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882 "2024-03-31T14:00:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)\
**Post date:** [31 March 2024 14:00 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/1 "2024-03-31T14:00:19Z")

</div>

Hey,

I've installed Node-RED alongside openHab on a Raspberry Pi. For Philips HUE, I was using "node-red-contrib-huemagic 4.2.2".

At some point, I noticed that the HUE Bridge / HUE Lamps stopped working. I'm not sure if this was after some reinstallations or updates - the HUE Bridge just couldn't be addressed anymore. Now, I've reinstalled everything:

- Stopped Node-RED, then removed it with "sudo npm remove -g node-red".

- Uninstalled Node.js via "apt", cleaned everything up, deleted old directories, rebooted, and reinstalled node.js + Node-RED on the Raspberry Pi:

In the "new" Node-RED, I've only integrated "node-red-contrib-huemagic 4.2.2", no other external nodes or flows!

The IP address of the HUE Bridge was recognized, the API key transmitted. However, I still get the error message "something went wrong, please try again", and I can't select any lights from the HUE Bridge!

With all other systems like openHAB, HUE App, GoogleHome, Home Assistant... the HUE Bridge can be addressed!

Is it because HueMagic was written for Node.js 14+ and Node-RED v2.1+? What can be the solution?

Thanks

 ![node_red01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/825a44fa1241977e7f5f00531aef60d5f2fa7c1f.png)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [31 March 2024 17:37 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/2 "2024-03-31T17:37:08Z")

</div>

Not sure how open hab plays into this, I run hue on node red 3.1.2 with js 20 and have no problems so it is possible.

---

<div class="post-metadata">

**Author:** ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)\
**Post date:** [31 March 2024 21:34 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/3 "2024-03-31T21:34:20Z")

</div>

Good evening,

and you use too "node-red-contrib-huemagic 4.2.2" ?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [31 March 2024 22:23 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/4 "2024-03-31T22:23:32Z")

</div>

Yep, that's the one

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 April 2024 05:55 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/5 "2024-04-01T05:55:00Z")

</div>

Have you read through the [issues](https://github.com/Foddy/node-red-contrib-huemagic/issues) for that node? This one looks familiar: [Internal Server Error when searching for scenes · Issue #386 · Foddy/node-red-contrib-huemagic · GitHub](https://github.com/Foddy/node-red-contrib-huemagic/issues/386)

---

<div class="post-metadata">

**Author:** ![Steinspiel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steinspiel/32/30095_2.png) [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)\
**Post date:** [1 April 2024 17:14 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/6 "2024-04-01T17:14:13Z")

</div>

Hey,

Thank you for your response.

I've successfully integrated "node-red-contrib-philipshue-events" and was able to configure my HUE Bridge within the node. 🙂 However, I'm not sure _how_ to add a HUE light. ☹

I also tried the "HUE-CLIP-API.Node-RED-Flows," but it seems very complex to configure everything via an API. I don't know if it was a coincidence, but Node-RED failed to start multiple times, so I had to restore the Raspberry Pi from a backup to get Node-RED running again.

Thanks,

 ![phil_even_02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/8/78d5ff4a827216daab6432d11587ed941938f624.jpeg)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [1 April 2024 18:49 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/7 "2024-04-01T18:49:56Z")

</div>

It's stretching my memory but as I remember there was a lot of command line stuff on my windows lap top to identify lights, plugs then using using that info in the nodes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 June 2024 18:50 UTC](https://discourse.nodered.org/t/trouble-integrating-philips-hue-with-node-red-contrib-huemagic-on-updated-node-red-node-js/86882/8 "2024-06-30T18:50:19Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
