Homey Community Forum

Dim Level in Virtual Device via MQTT

Hi everyone,

I would like to query a dimming level via MQTT in a virtual device and of course also set it.

Can someone help me, who has ever done that this way? Maybe anyone can share his flows here. On/off via MQTT is pretty simple and works fine, but I don’t know how I should do this for the dim level. I think I need a logic to do this right?

How much flow do I need per Dim Level and how do I best build it?

As an example, let’s just take the topics:
State: living room light / dim
Set: living room light / dim / set