Custom Philips Hue Driver

As I don't have access to cloud, I created my own Hue driver which has a few interesting features.

The most important is that it manages Zones. Basically, you are deciding which lamps should be on depending of a slider. If the slider is at the middle, all lamps of the room will be on. If you put the slider on one side or another, it will switch on the lights only on one side. I use it to light my living room or my dining room.

https://youtu.be/kPnrAconvFo

Here you can see an example with 4 lights, but I use it with 9 in my living.

The other feature is that you can control the colors (with a list of predefined colors) and the intensity.

Reply
25replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • JeanArnaud Hi,

    can i use your hue driver and where can i downloaded

    thanks

    Like
  • Ok, I will work on it this week-end to put on github and refactor a bit to be more usable for others.

    Like
  • JeanArnaud Hi,

    this is very cool, big big thanks!

    Like
  • Hello, I just published the Hue driver as requested, I tried to be very descriptive on the how to setup but please let me now as it is my first intent.

    https://github.com/jac459/NeeoHueDriver

    Let me know your issues and I can try to help and improve the setup process.

    Rgrds,

    Like 1
  • Driver works very well and is very easy to install.  Recommended

    Thanks Jean

    Like
  • JeanArnaud Hi,

    Can i install your Driver on Intel Pc stick with Windows 10 ?

    Like
  • Hello Tolga, yes absolutely. You just need to install node.js, the platform used by the neeo brain and drivers. Rgrds, 

    Like 1
  • @Jeanarnaud,

    Thanks a lot for the great driver. I tried to install it on my linux 18 server. I could control the lamps color and brightness but could you advise how I can turn on or off the lamp/room?

    The power on/off shortcut don't adding on Neeo app don't seem to respond.

    Best regards

    Like
      • Gary H
      • Techie
      • ozsmarthome
      • 3 wk ago
      • 1
      • Reported - view

      Pana800 I had this issue also.

      Fix: Add the shortcuts from the default hue driver.

      Edit the launch and power off of your recipe to use the default hue driver on/off of the room

      Like 1
      • Pana800
      • Pana800
      • 3 wk ago
      • Reported - view

      Gary H Thanks for your advice. My other issue is I could not use the default Hue in my Neeo. Could not find the bridge :(.

      Thanks and stay safe. 

      Like
      • Gary H
      • Techie
      • ozsmarthome
      • 3 wk ago
      • Reported - view

      Pana800 I only updated the bridge last night.  Now I see the issue.  This is annoying.  Definitely a change on Philips side. It's effecting existing devices on native driver. 

      Like
  • NEEO Hue Custom Driver with Colour Choice and Zoning 

    JeanArnaud has updated his driver.

    https://github.com/jac459/NeeoHueDriver

    Recommend trying it now.  Process and steps are very easy and automated.

    Recommend installing PM2 also to manage the Node.js app running the driver.

    https://pm2.keymetrics.io

    Command: "pm2 start Hue.js --watch" from the directory you npm install the Hue Custom Driver.

    Like 1
      • Pana800
      • Pana800
      • 2 wk ago
      • Reported - view

      Gary H I would not recommend PM2 as it will consume alot cpu. Try to run the app as a service.

      Like
    • Pana800 hello, I didn't know there was more cpu usage for pm2, can you explain why? I find the tool extremely handy. 

      Like 1
      • Pana800
      • Pana800
      • 13 days ago
      • Reported - view

      JeanarnaudNew I also don't know much about pm2 until I followed your tutorial to try it. And later I found some comments on pm2 (in another forum) about the cpu. Check the resources via 'top' command I always saw node process eat about 50% cpu. Please also check at your end if it is the same. I then killed and removed pm2 and created a service file for hue driver app. It then normally use less than 5% cpu. I can also easily stop/restart and check status of the app using service commands. The status command gives the real-time log of the app as well. 

      Like
    • Pana800 thanks for the tip, I will try. 

      Like 1
  • JeanArnaud First off, thanks for you effort in making this driver, like some other people here my official hue driver just suddenly stopped working. I am having an issue running your driver, I am getting below error:

     

    root@raspberrypi:/opt/NeeoHueDriver# node Hue.js
    /opt/NeeoHueDriver/node_modules/node-hue-api/lib/model/timePatterns/HueTime.js:15
    const TIME_REGEX = new RegExp(dateTimeUtil.getTimePattern());
                       ^
    
    SyntaxError: Invalid regular expression: /(?<hours>[0-9]{2}):(?<minutes>[0-9]{2}):(?<seconds>[0-9]{2})/: Invalid group
        at new RegExp (<anonymous>)
        at Object.<anonymous> (/opt/NeeoHueDriver/node_modules/node-hue-api/lib/model/timePatterns/HueTime.js:15:20)
        at Module._compile (module.js:635:30)
        at Object.Module._extensions..js (module.js:646:10)
        at Module.load (module.js:554:32)
        at tryModuleLoad (module.js:497:12)
        at Function.Module._load (module.js:489:3)
        at Module.require (module.js:579:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (/opt/NeeoHueDriver/node_modules/node-hue-api/lib/model/timePatterns/AbsoluteTime.js:4:15)
        at Module._compile (module.js:635:30)
        at Object.Module._extensions..js (module.js:646:10)
        at Module.load (module.js:554:32)
        at tryModuleLoad (module.js:497:12)
        at Function.Module._load (module.js:489:3)
        at Module.require (module.js:579:17)
    root@raspberrypi:/opt/NeeoHueDriver#
    

    I have tried to follow every step in the readme. Could you have an idea what it is I am doing wrong? it seems to be working for most people.

     

    Thanks

    Like
  • Hello, I had to change my name as it seems my previous account was blocked by Neeo. 

    The problem you have seems to be in the library I use to interface with Hue. 

    Actually I wonder if I hadn't the same issue before. Let me check and get back to you. 

    Are you sure you correctly installed the Philips hue library? 

    Like
  • https://github.com/peter-murray/node-hue-api/issues/164

     

    Here you go. This is the bug I had. I suppose same for you. 

    A reboot should fix everything. 

    Rgrds, 

    Like 1
      • Derrick
      • Derrick
      • 13 days ago
      • Reported - view

      JeanarnaudNew Thanks!, I will try to reboot later to see if it fixes the issue. Just curious though are you on node version 10+ ? (I am on verision 8.9) I may probably need to upgrade node to make it work.

      Thanks again.

      Like
  • Yes indeed, could be a problem on the node version. 

    Like 1
  • JeanarnaudNew said:
    Hello, I had to change my name as it seems my previous account was blocked by Neeo.

    Hi JeanarnaudNew , What‘s the problem, why are you blocked by Neeo?

    Like
    • Tolga Aydogan hello, I actually got my account back. It was stuck "being reviewed by moderator" for more than a week. Not sure why. 

      Like
    • JeanarnaudNew actually, my mistake, I still don't have access, my previous account is blocked... Not sure why. 

      Like
Like1 Follow