A simple watch to pilot your Phillps Hue lamp.
Click to button A for on/off.
Click to button B for change lamp.
On Change the time change.
Step 1 : Get username with API Huego to https://<bridge ip address>/debug/clip.html
in URL /api/
in BODY :{"devicetype":"my_hue_app#iphone peter"}
push button on the bridge
and click to POST and recevie your "username" in Command Response.
Step 2: Change in the codeChange NumLamp is number of lamp in bridge Hue and add library time, wifiudp.
NumberLamp = N;
int NumLamp[] = {1, 12, 3, ...,N};
Lamp[] = {0, 0, 0 ..,N};
username = "xxxxxx";
ssid[] = "xxxxxx";
pass[] = "xxxxxx";
IPAddress server(NNN,NNN,NNN,NNN);
Comments