[PLUGIN] Philips hue control

Hey folks,
I wrote a plugin to control Philips Hue sockets or light bulbs depending on the playback status of Volumio.

github.com/a-i-ks/volumio-plugi … ue_control

I’ve been using the plugin for some time now and it works fine. Nevertheless I would be pleased about a feedback, because this was my first JavaScript project.

Unfortunately I did not manage to publish the plugin via the official way. I have to say at this point that I don’t like the workflow for plugin development very much. I find it somewhat unusual that all plugins are managed in a single repository and I have to check out all other plugins as well to develop my own.

Anyway, I would be very happy if someone who has a bit more understanding of the plugin and repository structure (after reviewing it) would add my plugin to the official Plugin Manager.

Many greetings, André

Hi André,

Thank you a lot for developing this.

I do not own a Philips Hue Light right now but already ordered now.
Philips has to thank you :wink:
Volumio’s plugin feature is a absolutely highlight for me - so i’m, very happy with every single plugin - also hoping i will, learning on the given code - some day - be able to develop my own ideas…

For me it is also very hard to follow the github rules…
If you want people like me testing this it would be even more convenient to offer a zip file within the github plugin folder to downloading directly.

Silly me - but i do have to download now your whole github content as a zip - extract the plugin and recompress the wanted folder to be able to test … as soon as my “huelight bulb” arrived. Not difficult but not very convenient.
Also a read.me file on how to use would be very nice.

Anyway thank you very much - i will report as soon as the HueLight has arrived :smiley:

Best Regards

Hello Josef,
I can send you the plugin as a single directory (see attchments).

I use the plugin to control an Osram Smart Plug that my Hi-Fi system is connected to. When I press Play in Volumio (which runs on a constantly running Raspberry Pi), the power for the Hi-Fi system is turned on. If the playback stops, the smart socket goes out again after an adjustable time.
Of course you can also control a lamp or light bulb with it. But at the moment it can only be switched on or off. But you can program something based on my plugin with a color gradient to match the music. I am curious about your ideas.
Greetings André
hue_control.zip (18.7 KB)

Thank you.
This plugin works perfect.
And enables me to start a 12v trigger to start and stop my active speakers.
So, thank you thank you thank you…

1 Like

I am very happy that you are using my plugin. I have also been using it for months without any problems. Too bad I didn’t get it into the official plugin store. The process is still not entirely clear to me.
How do you use a 12V switch via Philips hue? Do you have a switch connected to the hue bridge via Zigbee? I have only known 220V smart plugs so far.

I have a Hue 220V smart plug, and in thath connected a 12v av trigger box (Emotiva ET-3 trigger) . So when the smart plug turns on the 12v gets power and starts the speakers. And when it turns off the 12v trigger turns of and the speakers turns down.
Works really, really god.

1 Like

Hi André, I’ve installed the plug-in and connected to the Hue bridge. My idea is to switch on a powered sub using the Philips power plug module when Volumio starts playing a track. I am a bit puzzled now about the next step, as I cannot identify the Volumio unit as a accessory in the Hue app. How do you define the required action and in which app should this be done? Thanks!

@eurostar123 Hi Andre, first time that I have noticed this plugin. Would you mind adding a single post in the Volumio Plugins Collection topic for the benefit of people looking for plugins (and to advertise your work too :wink: ). Please make sure you read the first post so you know what information you will need to include. Thanks. :+1:

1 Like

Hey Martin, that’s exactly how I do it with my plugin. When Volumio changes the playback state to play, I turn on my stereo receiver via a hue power plug and turn it off again after a timeout when I stop or pause.

You can’t and don’t have to set anything there via the hue app. The plugin will also not be visible to the hue app. The whole thing works like this:
You go to the settings page of the plugin on the Volumio web interface. (Gear top right → Plugins → Installed Plugins → Philips hue Control) There you pair with your hue bridge. To do this, enter the IP address of the hue bridge in your home network. You can find the IP address in your router configuration, where you should find a list of devices in your home network. Alternatively, you can also find it in the hue app.

Enter this IP address in the field for Hue Bridge Address. When you press Connect, you have to press the pairing button of your bridge within 30 seconds.

Then reload the hue plugin website in the Volumio web interface. Now you should be able to select a device in the lower part of the settings page that should be controlled on playback change.

Then click on Save. And that’s it.

Hi, thanks for getting back. I did link to the hub, but apparently it took some time for the drop down list with devices to become visible. It works now like a breeze, very happy with this solution! :pray:t2: