[OBSOLETE] OSRAM Lightify Dimmer Switch Device Type - use as Switch, not buttons

I had tried doing a continuous dim when I first created this and was not successful. So I stuck with the multi-press dim.
I’m pretty much hacking my way through this code, and currently don’t have time to play with this so I don’t think I’ll be making any changes on this.
Anyone else who want to improve upon this device handle is more than welcome to go for it.

There is another device handler for this that does dim via press and hold, but it treats the device as buttons and you attached the controlled devices (up to 5) in the device handler. It’s a different approach that may or may not work for your application. (i.e. Buttons don’t work with Amazon Alexia) This device type is here: