Gladys 4 Beta is available! 🚀

You can open your JS console on the Philips Hue page of Gladys, « Network Â» tab, refresh the page and copy and paste here (or in PM) the JSON response of the API GET call /api/v1/service/philips-hue/light!

Even better, you can create a GitHub issue with the JSON you get, a bit like this issue:

Ok I have my console open in my Chrome browser but then I don’t know how to find

Yes thank you it works well.

As you can see I even created a new issue and the merge request that goes with it, I hope I didn’t mess up too much :smiley:

You go to the network/réseau tab, you have a list of web requests made, you look for a GET request on /api/v1/service/philips-hue/light, you click on it, on the right your request will appear and you look for the responses tab.

It’s good, I succeeded, but I had to use Firefox because on Chrome I didn’t find how to do it.
Thanks @damalgos.
@pierre-gilles can you confirm that what I sent you is correct?

I found this site that references Philips Hue bulb models. Could this help to integrate the different models into Gladys?

https://homeautotechs.com/philips-hue-light-models-full-list/

Even better! :slight_smile: Thanks, I’ll check it out!

It’s perfect!

I prefer to handle it case by case with each user’s feedback, or even propose a « send unknown bulbs Â» button.

@pierre-gilles could you explain to me how you determine the method that the bulb should use (getPhilipsHueColorTemperatureLight, getPhilipsHueColorLight, getPhilipsHueWhiteLight
)?

That way I could try to make a merge request for @Tlse-vins’ issue :wink:

Well, it’s simple, if you look there are 5 types of models managed for now, in the « models Â» folder of the service:

color → when it’s a bulb/lamp that manages color, but not temperature (you can see this in the JSON if there is temperature management)

colorWithTemperature → when it’s a bulb/lamp that manages color + temperature (there is an attribute "ct":153 for example in the first lamp of @Tlse-vins, it’s therefore a bulb that manages temperature)

plugOnOff → it’s an on/off plug.

white → it’s a bulb without temperature and without color

whiteWithTemperature → it’s a bulb without color but with temperature. The attribute « ct Â» is usually present in the json!

I don’t have an exact methodology, it’s mostly with a quick look at the JSON that I see what features the lamp has, and therefore what type of model it belongs to :slight_smile:

If it manages another type of features, you need to create a new model of course

ok thanks for the info.

I made the merge request that works:

As soon as the update is in place, I’ll let you know if it’s functional.
I’m waiting for GU10 White ones, I guess we’ll have to add them too.

I just received my GU10 White, I will try to install them this weekend.
@Hotfix31 If you merged what I sent you, is it operational in Gladys? Because for the moment, they are not recognized.

I just created an issue with the GU10 - LWG004.

I’ve made the merge request but @pierre-gilles still needs to do the validation.
You can follow the progress here:

OK, it works. I’ll wait for his return and let you know if everything is fine.

That’s more or less it! That’s what Philips Hue returns.

Thanks for the PR! :slight_smile: It’s merged!

New PR for the latest model proposed by @Tlse-vins.

Nice, you’ve got the hang of it it seems :wink: Thanks, more new material handled!

Hi @pierre-gilles, I just checked in Gladys, I still can’t manage its bulbs. Is this normal or do I have to wait for the update?

I haven’t merged the PR yet :slight_smile: I’m quite busy at the moment. I worked full-time on Gladys in October/November, but since I didn’t do any freelancing for 2 months, to make it financially viable for me, I compensated by taking on a demanding freelance mission in December, hence my very reduced presence this month ^^ My mission ends at the end of the week, I’ll look into all that at Christmas!