Simulating a dimmer

I'm teaching myself how to use a Wink Relay. I have it ready to setup a dashboard for it and program it's two physical buttons (which are seen by Hubitat). This is the behavior I want but I can't figure out how to code it.

topButton tap: turn on smart bulb to last setting
topButton hold: turn on smart bulb to last setting (if off) and increase brightness until topButton is released
bottomButton tap: turn off smart bulb
bottomButton hold: decrease smart bulb brightness until bottomButton is released (or 01% is reached)

It is simpler to use "Start raising/lowering dimmer" and "Stop changing dimmer" (and the fade looks better) but it fades too quickly. This is what I came up with instead. It may need some fine tuning, but I'm already happy with it.


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.