setting ability for lights
hooked up api for thermostat