Homey.ink on a tablet/desktop

Hi, please check the code above. There is a line with “device.makeCapabilityInstance”. This registeres an event handler. When the capability in Homey devices is changed, the Dashboard will execute the code inside the { } brackets.
There you can change your div-element.

Here is another example where I change the color of the displayed temperature when the thermostate temperature is changed:

I think that is what you wanted to do. Good luck :slight_smile: