Scene of a virtual lamp that controls the brightness of 4 lamps

I created a virtual MQTT light:

This works well to control switching it on with this scene:

(there is another equivalent scene for switching off)

I tried to do the same for brightness with this scene:


But this doesn’t work… (the trigger doesn’t fire when I change the brightness value of the virtual lamp on the dashboard)

remove « retrieve the last state »

If I remove « retrieve the last state » I can’t get any variable, right?

Anyway I put « send a message » in the first action and it isn’t sent so the trigger isn’t even activated… (unless I click « Start » at the top of the scene)

In the first one, at the trigger level you selected state change on/off — it uses the threshold directly

Excuse me, but could you give an example, I don’t see how to retrieve the brightness threshold to reassign it to a variable…

Ah, but I want to change the brightness for the action and not turn the light on. :confused:

This isn’t your first screenshot! What exactly do you want to do?

I want to retrieve the brightness of the virtual lamp and pass it to the 4 real lamps.

That’s exactly what I did, but it doesn’t work… The scene doesn’t even get triggered when I change the brightness of the virtual one…

If you click on « Start Scene », does it at least work?

How do you change the brightness value of the virtual device that you use as a trigger?
If I understand correctly, you want that when the brightness value changes on your virtual device, it propagates to the real lamps, is that right?

I change the value on the Dashboard :


Cela fonctionne pour le On/Off mais pas pour la luminosité (ni la température).

If I understand correctly, you want that when the brightness value changes on your virtual device, it propagates to the real lamps, is that right?

Yes, that’s exactly it!

When I click on ‹ Start › the first action of retrieving the state is done correctly (verified by sending a message) and on the second action the variable reinjected into a message is empty…

So, the variable is being retrieved correctly but reinjected incorrectly?
You’re in the ‹ Calculated › tab. If you add a +1? Or if you put it in ‹ Simple ›?
What type of value is it? A simple numeric?
Can you control your lamps independently via the dashboard?

It works with Gladys version 4.36! Thanks :wink:

1 Like