Does anyone know how have preferences and settings ask for dimmer value when a selected switch happens to have that capability?
I know this is possible because the routines always ask for the desired dimmer values when there’s at least one dimming capable device in a list of selected switches.
here is how it looks like in my desperate attempts…
I’m fairly new to this myself, but here’s some pointers:
(1) that input needs to be part of a dynamicPage() so that the if statement
gets executed when you go to that preferences page
(2) to figure out whether the switch supports setLevel, you probably should use capabilities: Something like if (controlEDswitch.capabilities.contains(capability.switchLevel) ... (haven’t tried this, though)
(3) You probably want the SetLevel option to appear right away after you select a dimmer as the controlEDSwitch, you should be able to achieve this using “submitOnChange: true” on the switch input line
And... if I may... :) Would you happen to also know how to get an app to check if the location is in one of multiple modes set as conditions in the settings?
In other words, can you save my a... again? :) Thanks!