Hat schon jemand Erfahrung in der Steuerung von Shellys über http Requests?
Für Android gibt es tolle Apps um solche Requests zu nutzen.
Ein- und Ausschalten ist erst mal kein Problem… aber um z.B den Status anzuzeigen sind ein paar Zeilen Javascript notwendig.
- Shelly 1l
- Android App: HTTP Shortcuts
- HTTP Request: http://[IP-Adresse]/relay/0?turn=toggle&status
- Javascript (im Erfolgsfall):
var antwort=JSON.parse(response.body);
var wert=(antwort.ison);
if(wert){
alert(„Lampe ist An“)
changeIcon("", „circle_yellow“);
} else {
alert(„Lampe ist Aus“);
changeIcon("", „circle_black“);
}
Viel Spaß beim Ausprobieren !