Fuchs / hoppla-sa

Linux / KDE Plasma desktop widget to control Philips Hue lights. Controls lights, groups and customizable actions.
https://store.kde.org/p/1168067/
GNU Lesser General Public License v2.1
64 stars 7 forks source link

Plasma 6 compatibility #28

Open FridgeRacer opened 8 months ago

FridgeRacer commented 8 months ago

Hey! Hope you don't mind me raising an issue for this, but I wanted to know if you plan on updating this for Plasma 6 at some point, because this applet has integrated itself nicely into my every-day usage on both my desktop and laptop. It's just so convenient 😆

No worries if not of course, appreciate this either way.

Fuchs commented 7 months ago

Hi, yes, absolutely planned, but I can't give an estimate yet. It depends a bit on the setup, since my distribution most likely will try to force Wayland on me with the version that ships 6, while I personally don't consider wayland ready for a productive device just yet. So I need to find a dev environment that gives me 6 without too much hassle.

Then I also so far haven't found any documentation aimed at developers on how to update their plasmoids to plasma 6. However, I shall see if I can give it a shot somehow beginning next year, unforutnately it might not be ready for Plasma 6 release, mind.

FridgeRacer commented 7 months ago

That's wonderful to hear, thank you for letting me know! And yes, please, take your time. I can imagine it sucks to be forced over to Wayland when you need to stay on X.

Did you see this page yet? Putting it here just in case. https://develop.kde.org/docs/plasma/widget/porting_kf6/

Fuchs commented 7 months ago

I did not, thank you for the pointer, this either wasn't there the last time I asked or I haven't been told. That should make developing a lot easier, so I just need to ensure that I have an environment I can test in. Worst case I'll re-setup kdesrc (which might be tricky depending on how well fedora packages qt6 on current releases) or just fire up a VM I guess. I'll let you know once I got somewhere and I'll keep this bug open for tracking. Happy holiday season!

FridgeRacer commented 7 months ago

Glad it helps. Happy holidays to you too! =) I hope you enjoy them.

xf- commented 6 months ago

Also in current beta2 you can start Plasma 6 with X11. Wayland is default, but can be changed. (Yeah beta is not for production)

https://news.itsfoss.com/kde-plasma-6-dev/

The X11 session will not be going away. So, you or the developers of distributions can still override the default and have X11 remain the default.

FridgeRacer commented 6 months ago

I think Fuchs is most likely on Fedora which is completely removing the X11 session. Could potentially be a hassle to add it back in.

Fuchs commented 5 months ago

I started working on this in a branch, so that for the release there might be something that works available. As expected though, the documentation is sparse and partially incomplete / incorrect, thus no promises. At least I already got it to see and load the plasmoid.

A first version might be feature-incomplete, especially the configuration part. Plus it won't be what I'll use daily, so it won't be tested much. I'll let you know as soon as something testable is available, thanks for the patience.

FridgeRacer commented 5 months ago

Thanks so much for the status update, I appreciate that you're taking you're time to update it so soon. Hopefully the Plasmoid portint documentation gets some TLC before/on Plasma 6's release.

I've been using Plasma 6 since December, so if there's anything I can do to help such as building and testing, just feel free to nudge me. And obviously, take your time, there's no rush of course 🙂

abompard commented 2 months ago

Hi! Happy to help test on Plasma6 as well, thanks for the time you put into this, it's really appreciated :-)

Fuchs commented 1 month ago

Hello all,

sorry for the long silence, I was rather busy IRL. Good news is that I have a local version where very basic stuff (such as turning lights on and off) does work, but as I didn't port the config yet, it relies on hardcoded values and there isn't much I can push. However, it's a work in progres and hopefully a functional version is available by the end of July, with a more modern version that might also catch up with some Hue features later this year :)

FridgeRacer commented 1 month ago

That is awesome! Thank you so much!

Fuchs commented 1 month ago

So for people super eager to get their paws on stuff:

I just pushed to the plasma6 branch a version that runs. But that's basically it, it runs. It has LOADS of missing functionality, including action items not working at all, all configuration pages except the bridge config not working at all, various layout issues, probably the "authenticate" button not working (I didn't even try yet) etc. etc.

But: you should be able to get it to connect to your bridge (potentially add an auth token manually) and it will allow you to switch your lights and rooms on/off, dim lights, choose the light temperature and colour.

There also is no packaging whatsoever so far, which means you manually have to create a ~/.local/share/plasma/plasmoids/ch.fuchsnet.plasma.hoppla-sa folder and place the contents of "package" in it. (Means: that folder should contain the folder contents and file metadata.json)

I will continue to push changes to that branch and restore functionality and make it more usable over time, and once I get the must have and should have items done, I will package it into a release.

Please do NOT report any bugs before that happened and please do not point out any quirks, including layout issues and UX issues: I am fully aware.

And: absolutely use at your own risk, I recommend having a backup of your hue bridge config at hand, just in case.

tom-github-account commented 1 month ago

It's really great to hear about this development, this is one of my favourite plasmoids. Thank you!