I’ve been tinkering with a SmartApp to display the weather forecast using colored lights. The idea is that I can know what to wear or remember an umbrella with an ambient light in a convenient place such as a dresser, coat rack, or closet. Below is a gist that seems to get the job done. I’ve only tested with some custom Arduino code, though, and would love if somebody with access to a Philips Hue or other color light could test it for me and let me know how it does. gist.github.com
https://gist.github.com/danroot/8837291
ColorTheWeather.groovy
/* Color the weather Daniel Root www.danielroot.info Should work (but not yet tested with) Phillips Hue devices and any SmartThings device that supports “capability.colorControl”. See https://codebender.cc/sketch:28062 for Arduino code that works with the Arduino SmartShield. */ preferences { section(“Check the weather in”) { This file has been truncated. show original
SmartThingsShieldDeviceType.groovy
metadata { // Simulator metadata simulator { status “on”: “catchall: 0104 0000 01 01 0040 00 0A21 00 00 0000 0A 00 0A6F6E” status “off”: “catchall: 0104 0000 01 01 0040 00 0A21 00 00 0000 0A 00 0A6F6666” // reply messages reply “raw 0x0 { 00 00 0a 0a 6f 6e }”: “catchall: 0104 0000 01 01 0040 00 0A21 00 00 0000 0A 00 0A6F6E” reply “raw 0x0 { 00 00 0a 0a 6f 66 66 }”: “catchall: 0104 0000 01 01 0040 00 0A21 00 00 0000 0A 00 0A6F6666” } This file has been truncated. show original