Motion Lights using Philips Hue with Z-Wave Sensors
To work around the limitations of Fibaro HCL that does not allow you to use LUA scripts, Domotics fill that gap and allows you to use more than just Z-wave devices.
The major problem with using Hue with the HCL, is that the Hue API requires action via a HTTP PUT to change the state of the lights. The HCL only allows HTTP GET using the string method for Virtual Devices.
Domoticz allows you to add Hue directly as "Hardware" and automatically adds all the bulbs and scenes as "Devices". To trigger the API to Domoticz, we use HTTP GET (yes, that is a Yay!!!).
Create a 2 button virtual device with the following string using the IP address and port of the Domoticz server
On button:
GET /json.htm?type=command¶m=switchlight&idx=
Off button:
GET /json.htm?type=command¶m=switchlight&idx=
Now for the vanity part where we can use Domotics FibaroLink to update the status of the virtual device label in Fibaro. This is best described in this link : http://www.vesternet.com/resources/application-notes/apnt-87#.WPHGlIh96Cg
.
Comments