Scene - Variable - Philips Hue

Hello,

Following the new update and the fix of a bug with variables, I’m opening a new topic.

Small problem when I give a value to my Philips Hue bulb via a variable in scenes.
I retrieve the value of the active light at the start of the scene but at the end, it doesn’t apply even though it retrieves the correct value.
The retrieved value is 16187136. Should I maybe perform a « convert » before sending the value as-is to Philips Hue?

Everything works for the on/off though.

Thanks in advance :slight_smile:

If there’s no operation, wouldn’t you be better off using the simple variable tab rather than the calculated one?

The point here is to make my lamps blink in a certain color for 5 seconds.

Let me explain with an example → As soon as the oven has finished a program, the lamp upstairs blinks blue to warn me because I don’t hear the end melody. Not knowing what state the lamp is in before blinking, I can’t use a single variable. Was the lamp off? On? Yellow? White? At 100% brightness? Etc…

I could make them blink to warn of an energy overconsumption, when a smoke detector is sounding, etc… But in all cases, my bulbs must return to their initial state. I hope this makes things clearer :slight_smile:

Normally the convert is done on the Philips Hue side :slight_smile: We currently store and communicate colors as an integer in Gladys!

If you set a value manually, does it work fine?

When I fix it manually, yes, it works. I set it to pink all along the scene to test :smiley:

Ok !

I did a test with a « virtual » MQTT device, and it works perfectly, so we can rule out a possible scene bug for this issue.

(The dashboard is properly updated with

I’ll try other tests this weekend.
Indeed, the app can either retain the previous state or reset every time it’s turned on. But I’ve never had an issue with that regarding Gladys.

I’ll keep you posted on what I manage to figure out.

1 Like

Indeed, the virtual lamp works correctly. I had forgotten to look at that one, I had my eyes fixed on the ceiling :stuck_out_tongue:

For your information, when testing in another action block, it works. But that creates other problems at the start when the actions are in the same group :smiley: I’ll try to separate everything when I have a bit of courage.
I can’t wait for the PR on simplified scene editing to be online :slight_smile:

1 Like