This is a work in progress more features coming
I am modifying the stock smarthings device type code to support many more features of this switch
Specifically there are multiple modes
- energy - the default where the color changes based on device draw.
- momentary where the above happens and the light shuts off so you an use it without annoyance.
- night light. where the light stays on a specific color as a night light.
I got the above working with a toggle state tile.
I also added is support for a voltage tile
also now in v2 got the color changer in night light mode (only) working, and the brightness slider
in momentary or energy modes working. They only work in these modes as this is a limitation of the device. Not sure why they did it this way as brightness would be nice in night light mode also.
I added a factory reset under a reset api./tile and it also reset overall kw hours.
Also implemented the refresh api…
Also added a configure api which configures the device to enable certain fx’s (i got the starting code from someone else and changed it where it was incorrect, it configures the device to enable the voltage readings etc.)
here is the current source code and a couple of picts.
V3 will have some neat new features … stay tuned