Description: Philips Hue light control plasmoid for KDE Plasma 5 (Stand alone version)
This plasmoid enables you to control Philips Hue (http://www.meethue.com) light bulbs. The idea of the stand alone version is that it requires no compiled backend and thus can be deployed as is, e.g. via Get Hot New Stuff.
It allows you to
* Turn lights and groups on / off * Set the brightness of lights and groups * Set the colour or white temperature * Control single lights belonging to a group * Create and use global actions, such as turning all lights on or off * Set an alternative connection, including http basic auth * Control your lights from outside your home network if you have a proxy at home * Create, update and delete lights, schedules and groups
Requirements
* Plasma 5 & Qt 5.4+ * Qt5 Graphical Effects * Extra CMake Modules (only for building)
For more information, check out the README at https://github.com/Fuchs/hoppla-sa/blob/master/README.md For old releases check out GitHub releases at https://github.com/Fuchs/hoppla-sa/releasesLast changelog:
4.0.0
Adds support for new features and design in Plasma 5.21 CAUTION: Requires at least Plasma 5.21, please use older releases for older versions of Plasma
i really like the widget but one of the actions i created causes plasma to restart for some reason. it's a simple routine of set 9 groups to "off", set one group to "on". the action completes before plasma restarts too, which makes it even stranger.
Please create an issue on GitHub and attach as much debugging information as possible, at very least the payload of the action, and preferably the messages (or a backtrace) of plasma crashing. You can start plasma from a terminal to get the messages.
Hey Fuchs, I deleted the action but I'll recreate the action and look for the issue to recur when I get back to KDE in a few days. If you'd like, feel free to ping me if you don't hear back.
99 excellent - On the basis of the developer's swift response to my review score of 6 and redirection of my specific problem with the plasmoid (erratic scheduling) to github issues, I've updated my rating to 9. For a feature where I can choose on/off times relative to an approximate (TZ) sunrise or sunset event, I'd give it a 10
hi Fuchs, i found now information on a nice site ("Running Philips Hue Lights Locally") about setting date/time via API and opened an issue in github (https://github.com/Fuchs/hoppla-sa/issues/10) with the link - it's my first time and hope i did it correctly. i see it would be also possible to set the bridge network settings in the same place too (dhcp/ip/netmask/etc). that would be a nice addition too since i had to get a smartphone just to disable dhcp and set a static IP one one bridge (and the other one is still set to dhcp and i have to start up a dhcp server on a linux box every time the bridge reboots)
Hi,
yes, that looks good on GitHub, yeah, I replied there.
tl;dr here is: I'd like to add the possibility to configure more bridge stuff, but it's going to take some time because it will need a couple of reconsiderations and also a lot of rewriting, plus some advanced things you wanted might not be possible with pure-qml limitations.
As this will take quite some time I did also mention a workaround there for you, which can be done from any web browser or, if you prefer command line or need to automate stuff, you could even do it via curl. I hope that helps in the meantime, since this is hopefully not something you need to change often.
Kind regards,
Fuchs
i can't rate it so i'm writing a comment in here: thank you very much for the great plasmoid/widget! :-)
i'm not a programmer but if i can make a feature request, now that Philips Hue Play has been released, it would be to control the colours of lights depending on the colours shown on the PC screen on the kde desktop, like Philips Ambilight does on TV's or the addon "script.kodi.hue.ambilight" does on Kodi, like this:
https://www.youtube.com/watch?v=sOO6BBXTcYM
https://github.com/mpolednik/script.kodi.hue.ambilight
maybe part of the code can be even reused?
and it would be also nice to be able to see and change the date and time set on the bridge in case you can't or don't want to connect it to the internet and it doesn't reach a NTP server
Hi,
thank you very much for the praise and suggestions.
Could you please submit suggestions through GitHub, though? Here they get a bit lost, there they can be tracked. And as all the code is open source, other people can tackle them as well.
What I can already say is that I think access to screen content might be limited in QML, and I try to keep my plasmoid pure QML. So I'm not sure whether I can create something able to change colours based on screen content. A media player (like Kodi) is the correct piece of software to handle this.
Bridge: if this is exposed via the API: I can, otherwise I can't. I'd have to figure out where to put it in the config, but I can likely do that, assuming you can set it through the API.
Hi,
I don't have any to test, but if you use them via a Hue bridge I assume it might work. If you don't: only if Ikea uses the same REST API.
However, the source code is all on GitHub, feel free to adapt it.
Is that a replacement for redshift-control? I would like to use an interface like that for redshift, with presets and tabs, it would be better than use mouse clicks on tray icon...
Hi, no, this is completely unrelated to redshift. It is meant to control philips hue lightbulbs, not your screen.
Note that it is open source (see link on top), as is the redshift one, so you should be able to create a plasmoid for redshift that has tabs :)
Oh, I though it was related with redshift because of the icon, sorry man, but I really would like this popup on redshift tray icon it is boring change temperature and brightness manually with mouse clicks...
Ratings & Comments
38 Comments
9 Thanks a lot!
10 Works great thanks!
10 10 the best
Thank you very much :)
10 signed up just to say how awesome this widget is. Easier to set up than than using HUE's own apps!
Thank you very much, glad you like it!
10 Must have to get the best value out of Hue lights!
Thank you very much ♥
i really like the widget but one of the actions i created causes plasma to restart for some reason. it's a simple routine of set 9 groups to "off", set one group to "on". the action completes before plasma restarts too, which makes it even stranger.
Please create an issue on GitHub and attach as much debugging information as possible, at very least the payload of the action, and preferably the messages (or a backtrace) of plasma crashing. You can start plasma from a terminal to get the messages.
Hey Fuchs, I deleted the action but I'll recreate the action and look for the issue to recur when I get back to KDE in a few days. If you'd like, feel free to ping me if you don't hear back.
9 9 excellent - On the basis of the developer's swift response to my review score of 6 and redirection of my specific problem with the plasmoid (erratic scheduling) to github issues, I've updated my rating to 9. For a feature where I can choose on/off times relative to an approximate (TZ) sunrise or sunset event, I'd give it a 10
10 10 the best
10 brings Phlips hue support to Linux in form of a nice plasmoid
hi Fuchs, i found now information on a nice site ("Running Philips Hue Lights Locally") about setting date/time via API and opened an issue in github (https://github.com/Fuchs/hoppla-sa/issues/10) with the link - it's my first time and hope i did it correctly. i see it would be also possible to set the bridge network settings in the same place too (dhcp/ip/netmask/etc). that would be a nice addition too since i had to get a smartphone just to disable dhcp and set a static IP one one bridge (and the other one is still set to dhcp and i have to start up a dhcp server on a linux box every time the bridge reboots)
Hi, yes, that looks good on GitHub, yeah, I replied there. tl;dr here is: I'd like to add the possibility to configure more bridge stuff, but it's going to take some time because it will need a couple of reconsiderations and also a lot of rewriting, plus some advanced things you wanted might not be possible with pure-qml limitations. As this will take quite some time I did also mention a workaround there for you, which can be done from any web browser or, if you prefer command line or need to automate stuff, you could even do it via curl. I hope that helps in the meantime, since this is hopefully not something you need to change often. Kind regards, Fuchs
9 +
i can't rate it so i'm writing a comment in here: thank you very much for the great plasmoid/widget! :-) i'm not a programmer but if i can make a feature request, now that Philips Hue Play has been released, it would be to control the colours of lights depending on the colours shown on the PC screen on the kde desktop, like Philips Ambilight does on TV's or the addon "script.kodi.hue.ambilight" does on Kodi, like this: https://www.youtube.com/watch?v=sOO6BBXTcYM https://github.com/mpolednik/script.kodi.hue.ambilight maybe part of the code can be even reused? and it would be also nice to be able to see and change the date and time set on the bridge in case you can't or don't want to connect it to the internet and it doesn't reach a NTP server
Hi, thank you very much for the praise and suggestions. Could you please submit suggestions through GitHub, though? Here they get a bit lost, there they can be tracked. And as all the code is open source, other people can tackle them as well. What I can already say is that I think access to screen content might be limited in QML, and I try to keep my plasmoid pure QML. So I'm not sure whether I can create something able to change colours based on screen content. A media player (like Kodi) is the correct piece of software to handle this. Bridge: if this is exposed via the API: I can, otherwise I can't. I'd have to figure out where to put it in the config, but I can likely do that, assuming you can set it through the API.
There is any way to use this with the IKEA Tradfri?
Hi, I don't have any to test, but if you use them via a Hue bridge I assume it might work. If you don't: only if Ikea uses the same REST API. However, the source code is all on GitHub, feel free to adapt it.
9 +
Is that a replacement for redshift-control? I would like to use an interface like that for redshift, with presets and tabs, it would be better than use mouse clicks on tray icon...
Hi, no, this is completely unrelated to redshift. It is meant to control philips hue lightbulbs, not your screen. Note that it is open source (see link on top), as is the redshift one, so you should be able to create a plasmoid for redshift that has tabs :)
Oh, I though it was related with redshift because of the icon, sorry man, but I really would like this popup on redshift tray icon it is boring change temperature and brightness manually with mouse clicks...