HueMagic - Philips Hue nodes for Node-RED with Hassio

Hi there,

I was wondering if anyone can tell me how to get the HueMagic - Philips Hue nodes for Node-RED working in hassio.

Here is the url to the plugin. in mentions installing via npm. I’m not sure how :frowning:

https://flows.nodered.org/node/node-red-contrib-huemagic

Was looking for the same thing, not sure if you already found it as I am answering some months later but there is a simple way to do this under the manage palette option:

HueMagic setup is a bit confusing, but I learned how to set it up in Node Red (& likewise Home Assistant): https://www.youtube.com/watch?v=G4h1X8eq5kA

Pre-req:
Reserve your Hue Bridge IP address on your router and note the IP address.

  1. You need to obtain your Hue API Key, go here: https://developers.meethue.com/develop/get-started-2/
  2. Ignore most of it, scroll down to Step 3, and you’ll see this:
    https://<bridge ip address>/debug/clip.html
  3. Replace with your IP address and plug it into a browser
  4. You may get a “security” warning, ignore it and advance to the site
  5. You should be on a page now that says “CLIP API Debugger”
  6. Under URL, paste in: /api/newdeveloper
  7. Click “GET”
  8. Under “Command Responses” you should see something in there that says “Unauthorized User.” Don’t worry, you’re on the right track
  9. Under URL, paste in: /api
  10. In Message Body, paste in: {“devicetype”:“my_hue_app#iphone peter”}
  11. Click “POST”
  12. Under “Command Response” you should see something in there that says: “link button not pressed.”
  13. Go to your Hue Bridge and Press the Hue Bridge button
  14. Immediately click “POST” again
  15. Under “Command Response” you should see (in JSON): “username”: “STRING OF LETTERS AND NUMBERS”
  16. This “STRING OF LETTERS AND NUMBERS” is your Hue Bridge API key. SAVE THIS.
  17. Install the HueMagic Node-RED palette
  18. Drag any one of the HueMagic nodes to your work area, double-click on it
  19. In the “Bridge” section, click the edit/pencil icon
  20. “Properties” panel should appear
  21. Under IP: Put in your Hue Bridge IP Address
  22. Under API Key: Put in your API Key
  23. Click Done, then Deploy

You should be set. Above looks like a lot of steps, but it’s honestly no more difficult then the typical custom component setup in Home Assistant.

It may be a long shot, but is it possible to use another bridge instead of the Philips bridge?

Currently my Zzh stick is running all things z2m related, and quite well I must add.

In the documentation of this node, it says to use alert (float) to make the lights flash. How do you pass “alert” as a float value in node red?