New update! Child app has been updated to version 1.6 (no changes to parent). GitHub link in first post, or raw code for child here: https://raw.githubusercontent.com/RMoRobert/Hubitat/master/apps/DimmerButtonController/DimmerButtonController.groovy
Changes include:
- Support for button "held" events! Now you can use an Osram/Lightify Dimmer with this app (the reason I added this feature), and it should also work with the Minimote or "regular" Pico driver, but I still think the "Fast Pico" driver works better here
- note that, as before, "released" events are supported as part of the "dim while held" functions (so you can start a level change with a press or hold and stop it when released; your button must support these events and your dimmer/bulbs these commands)
- there is no "doubleTapped" support, nor do I have a use for it, but I could add it it someone wants it (again, my first use for this was the Pico remote emulating a Hue dimmer, so you can press it twice or more to cycle through scenes/settings without needing the device itself to support multiple taps)
- "dim while held" function no longer checks if bulbs are on before starting level changes because no bulbs in my testing respond to startLevelChange if they are not already on, so this was unnecessary (let me know if anyone has bulbs or dimmers that prove me wrong)
- this also avoids effects of the "Hue bug" I mentioned above where a level change command immediately changes the switch state as reported by the driver to "off" even though the bulb itself remains on (bulbs the driver incorrectly thinks is off still correctly respond to the continuous dimming commands)
- note that the step up/step down style of dimming does still check, and all dimming functions should work as before (in the event you mix and match this dimming with the continuous/"dim while held" dimming, this may still be a problem of the "Hue bug" affects you)
Let me know if anyone notices any problems!