Disable auto off

hi i have a virtual dimmer that i want to be able to run at 0 percent brightness how would i do that? to clarify i still want to be able to turn it on and off normally just dont want level and on/off to be connected in any way

Unfortunately that is determined by the driver. Setting a level above 0 also will turn most devices on. There's something called pre staging in some device drivers that gets around that but its not commonplace AFAIK

Edit: Just saw that you're referring to a Virtual device - not sure on that one but I assume the operation is the same.

well you got any clue how to do it for context its for maker api and a pi pico w with relays and servo so i dont want the relays to activate the motor when im just chaning settings and i dont want the motor to die if i set it to idle

No I'm not sure, maybe someone else will chime in with an idea. Perhaps you'll need to use a virtual device(s) combined with rule machine to achieve what you're looking for. That way you can set it up to explicitly not turn off when the level is set to 0.

You will need your own custom virtual dimmer driver. You can look at the SmartThings groovy code as an example but know it has more than you need and things that don’t work with HE:

You will see starting on line 150 it evaluates the set level and turns on or off the switch. This is where you will need to edit to your liking.

1 Like

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