Here are some perl scripts I'm using to play with my smart home devices. hue === Query and control philips hue lights. Just "hue" will print all your lights. If unconfigured it'll ask for the bridge hostname or ipaddr first. If needed it'll ask you to press the link button on the bridge. Config is stored in $HOME/.huerc Try "hue help" for a list of commands. For the "hue raw*" commands it is very helpful to be familiar with the developer api. hue partly supports multiple bridges. The HUE environment variable sets the name of the bridge configuration, if unset "default" is used. Some commands happily handle multiple bridges in case more then one is present in the config file. Most print commands and "hue light" are in this group. Most configuration commands talk only to the bridge specified via HUE environment variable though. fritz ===== query and control smart home devices hooked up to the fritzbox via dect: switches and thermostats. Check "fritz help" for more info. Config is stored in $HOME/.fritz.rc