Code : Tout sélectionner
airsend:
devices:
Volet Salle à manger 2:
id: 42678
type: 4099
apiKey: XXXXX
channel:
id: 26848
source: 127350016Code : Tout sélectionner
airsend:
devices:
Volet Salle à manger 2:
id: 42678
type: 4099
apiKey: XXXXX
channel:
id: 26848
source: 127350016Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
Sending notes method=1, type=9, value=28 to channel Id=26848, source=127350016 (standard)Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":1,\"type\":9,\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":1,\"type\":9,\"value\":\"28\"}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Ca ne marche pas, j'ai également essaye de changer le method et type comme sur ta deuxième commande mais en gardant la source qui marche et ça marche. Je ne sais pas si ça peut t'aider.Flying Domotic a écrit : 24 janv. 2024, 21:17Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"
Ce type de commande est générée par le plugin pour informer le service Web qu'on est intéressé par un type de protocole particulier. Ça ne correspond pas aux commandes demandées ...skarab22 a écrit : 24 janv. 2024, 21:37Flying Domotic a écrit : 24 janv. 2024, 21:17Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"
Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":\"28\"}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"Code : Tout sélectionner
{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}Code : Tout sélectionner
{\"method\":1,\"type\":9,\"value\":28}Code : Tout sélectionner
curl -X POST "http://127.0.0.1:33863/airsend/transfer" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"wait\": true, \"channel\": {\"id\":\"26848\",\"source\":\"127350016\"}, \"thingnotes\":{\"notes\":[{\"method\":\"PUT\",\"type\":\"LEVEL\",\"value\":28}]}}" -H "Authorization: Bearer sp://xxxxxxxxx@[ip]?gw=0"