@ultrazero I don’t mind, I’ll link it in a second, but because I’m lazy and this is a 1-off thing let me explain the hacky thing I did.
- I added the accompanying code as a “my device type” (i cloned the dimmer switch and added the 2 functions that @chrisdrackett originally posted)
- (here’s the hacky party) I modified the two methods for changing the light status.
2a) I made “indicatorNever” also call "listCurrentParams()"
2b) I made "indicatorWhenOff() also call “updateRamp()” - I saved /published the device type
- I went to a dimmer in “my devices”, clicked “Edit” and switched the Device Type to the device type I created
- I pulled up the Logs interface on the web UI
- on my phone, I brought up the device, I toggled through the indicator light modes and watched the log interface for updates. I saw the initial default values, then when I cycled through again, i saw the updated values from updateRamp()
That’s pretty much it. The code listing in its entirety: