merci pour ta réponse, super je test cela de suite.
désolé d'abuser dans les ligne ou l'idx apparaît comment en mettre plusieurs, je m'explique avec cette ligne :
Code : Tout sélectionner
curl http://192.168.0.15:8080/json.htm?type=command¶m=switchlight&idx=14&switchcmd="On"&level=0
je peux donc demander a mon radiateurs qui a l'idx 14 de s'eteindre et s'allumer selon tempo, moi j'ai 3 radiateurs comment puis je renseigner la ligne ? ou bien faut il mettre mes trois radiateurs comme ceci
Code : Tout sélectionner
curl http://192.168.0.15:8080/json.htm?type=command¶m=switchlight&idx=14&switchcmd="On"&level=0
curl http://192.168.0.15:8080/json.htm?type=command¶m=switchlight&idx=15&switchcmd="On"&level=0
curl http://192.168.0.15:8080/json.htm?type=command¶m=switchlight&idx=16&switchcmd="On"&level=0
et apres tu me dis de faire un switch virtuel, ok mais j'ai pas bien saisie pourquoi ce swith