J'ai suivi ce tuto et j'ai installé deux rubans chez moi. ça marche de façon impeccable. J'aimerai dans certains cas en faire clignoter un. Je me suis dit que ça me prendrait 5min....Faire clignoter une lampe, faudrait être con pour pas y arriver!!! Et pourtant...
J'ai utilisé ce script php que je déclenche pour mes tests par l'action ON d'un switch:
Code : Tout sélectionner
$idx=168;
for ($k = 1 ; $k <= 5; $k++){
file_get_contents('http://192.168.0.11:8080/json.htm?type=command¶m=switchlight&idx='.$idx.'&switchcmd=On');
sleep(5);
file_get_contents('http://192.168.0.11:8080/json.htm?type=command¶m=switchlight&idx='.$idx.'&switchcmd=Off');
sleep(5);
Les logs paraissent normaux:
Code : Tout sélectionner
2016-11-03 19:00:22.040 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:22.643 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:28.249 User: Admin initiated a switch command (168/Mezzanine RED/Off)
2016-11-03 19:00:29.044 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:29.645 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:32.799 Hardware Monitor: Fetching data (System sensors)
2016-11-03 19:00:35.257 User: Admin initiated a switch command (168/Mezzanine RED/On)
2016-11-03 19:00:36.056 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:36.672 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:42.283 User: Admin initiated a switch command (168/Mezzanine RED/Off)
2016-11-03 19:00:43.066 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:43.661 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:00:49.270 User: Admin initiated a switch command (168/Mezzanine RED/On)
2016-11-03 19:00:56.689 User: Admin initiated a switch command (168/Mezzanine RED/Off)
2016-11-03 19:00:57.092 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:01:02.703 User: Admin initiated a switch command (168/Mezzanine RED/On)
2016-11-03 19:01:02.992 Hardware Monitor: Fetching data (System sensors)
2016-11-03 19:01:10.128 User: Admin initiated a switch command (168/Mezzanine RED/Off)
2016-11-03 19:01:11.132 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:01:16.748 User: Admin initiated a switch command (168/Mezzanine RED/On)
2016-11-03 19:01:18.090 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:01:18.693 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:01:24.303 User: Admin initiated a switch command (168/Mezzanine RED/Off)
2016-11-03 19:01:26.102 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)
2016-11-03 19:01:26.702 (mysensors gateway ethernet) Lighting 2 (Mezzanine RED)