Buongiorno,
ho la necessità di attivare uno shelly 1 non dalla rete locale ma dall'esterno tramite browser .
Ho letto che si dovrebbe utilizzare shelly-XX-eu.shelly.cloud/device dopo aver recuperato numero del server e auth_key dal proprio account .
Ho fatto delle prove e per ora riesco a fare funzionare solo il comando "status"
esempio :
https://shelly-23-eu.shelly.cloud/device/status/?id=e0YY06aYYeYY&channel=0&auth_key=MmQ1ZxxxxxxxxYYY
Tutto ok, mi risponde come segue :
{"isok":true,"data":{"online":true,"device_status":{"unixtime":1693892280,"cloud":{"enabled" .. etc.. etc ...
Speravo fosse tutto ok anche con relay ON e OFF con la seguente stringa
https://shelly-13-eu.shelly.cloud/device/relay/?id=e09806a99ef3&channel=0&turn=on&auth_key=MmQ1Zxxxxxxxx52A0YYYY
ma mi risponde come se fosse tutto ok
{"isok":true}
ma il dispositivo non si commuta , non si attiva con ON e non si spegne con OFF .
Avete qualche suggerimento a riguardo ?
Intanto la frase è corretta ?
https://shelly-13-eu.shelly.cloud/device/relay/?id <disp>&channel=0&turn=on&auth_key=< auth_key >
Grazie in anticipo
shelly cloud device : risposta ok ma non si attiva
-
- Messaggi: 12
- Iscritto il: venerdì 24 febbraio 2023, 13:01
Prova a mandare la stringhe da terminale windows così:
curl https://shelly-51-eu.shelly.cloud/device/relay/control -d "channel=0&turn=on&id=XXXXXX&auth_key=YYYYYY
curl https://shelly-51-eu.shelly.cloud/device/relay/control -d "channel=0&turn=off&id=XXXXXX&auth_key=YYYYYY
Se vuoi abilitarlo tramite icona puoi fare così:
curl https://shelly-51-eu.shelly.cloud/device/relay/control -d "channel=0&turn=on&id=XXXXXX&auth_key=YYYYYY
curl https://shelly-51-eu.shelly.cloud/device/relay/control -d "channel=0&turn=off&id=XXXXXX&auth_key=YYYYYY
Se vuoi abilitarlo tramite icona puoi fare così:
- Allegati
-
- LinkCurl.jpg (54.02 KiB) Visto 1073 volte