@Qlink sagte:
Ich würds z.B. für das Farbwechsel Script der Shelly RGBWPM benötigen
Hi,
das geht auch über http (mit Copilot KI erstellt, nicht getestet):
[image: 1785475695669-3152c849-dd23-496a-b960-9d4aa9d7cc85-image.jpeg]
Dieses funktioniert bei mir:
httpGet('http://192.168.0.105/rpc/switch.getstatus?id=0', {
timeout: 2000, responseType: 'text' }, async (err, response) => {
try {
console.info("Spannung: " + getAttr(JSON.parse(response.data), 'voltage') + " V ~, " +
"Strom: " + getAttr(JSON.parse(response.data), 'current') + " A, " +
"Leistung: " + getAttr(JSON.parse(response.data), 'apower') + " Wh, " +
"Output: " + getAttr(JSON.parse(response.data), 'output') + ", ");
return }
catch (e) {
return {};
}
});
Gruß, Fuzzy