Smart Lights (a SmartApp for more intelligently controlling the combination of smart switches and smart bulbs)

I was tired of controlling ON/OFF from one device and ON/OFF, dimming and color control from one or more another devices. So I started working on a better way to control the combination of devices. This app (and associated device type handlers) lets you treat the combination of a smart switch and the smart bulbs connected to it as single device. I still have some work to do on it, but so far it supports multiple switches with dimmer and full color control styles. If the physical switch is turned off, when you turn it back on it will restore the previous state of the smart bulbs. I am trying to support a color temperature control style, but I need to work out the conversions. Thought I’d put it out there in case its of use to anyone else.

the github repo