tvbshelly ich hatte das mit <> versucht wie ich es von anderen Foren kenne, da hab ich wohl daneben gegriffen...Ist korrigiert
Beiträge von carloss
VPN/Proxy erkannt
Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.
-
-
Da ich nicht programmieren kann habe ich das ChatGPT überlassen. Nach ein paar Korrekturen funktioniert es .
IP / Port / Datenpunkte sind natürlich anzupassenCode
Alles anzeigenlet counterUrl = "http://192.168.178.97:8087/set/0_userdata.0.Shelly.Gaszaehler?value="; let voltageUrl = "http://192.168.178.97:8087/set/0_userdata.0.Shelly.Spannung_Gaszaehler?value="; let interval = 20 * 1000; // Abfrageintervall (20 Sekunden) function getValues() { Shelly.call("Shelly.GetStatus", {}, function (result, error_code, error_message) { if (error_code === 0) { // Spannung auslesen if (result["voltmeter:100"] && result["voltmeter:100"].voltage !== undefined) { let voltage = result["voltmeter:100"].voltage; sendToIoBroker(voltageUrl, voltage); print("Spannung gesendet: " + voltage + " V"); } else { print("Spannung nicht gefunden (voltmeter:100.voltage)"); } // Gaszähler auslesen und mit 0,01 multiplizieren if (result["input:2"] && result["input:2"].counts && result["input:2"].counts.total !== undefined) { let gasCounter = result["input:2"].counts.total; let modifiedGasCounter = gasCounter * 0.01; // Multiplikation mit 0,01 sendToIoBroker(counterUrl, modifiedGasCounter); print("Gaszähler gesendet: " + modifiedGasCounter); } else { print("Zählerwert nicht gefunden (input:2.counts.total)"); } } else { print("Fehler bei Shelly.GetStatus: " + error_message); } }); } function sendToIoBroker(url, value) { Shelly.call("HTTP.GET", { url: url + value }, function (result, error_code, error_message) { if (error_code !== 0) { print("Fehler beim Senden an ioBroker: " + error_message); } }); } // Regelmäßige Abfrage starten Timer.set(interval, true, function () { getValues(); }); // Erster Abruf sofort getValues();
-
Danke @ENC07, das hat mich gerettet.
Ich musste nur XVoltage durch Voltage ersetzen XVoltage gibts wohl bei meinem Shelly Uni Plus FW 1.5.1 nichtKönnte man in der Art auch den Zähler irgendwie auslesen?
-
thgoebel txs for the hint. I indeed missed to mention... I always doublecheck if the Shelly did connect to WiFi or not - no matter what the screen is telling me - it did not connect.
For checking I try a simple ping first, then Quickscan App on Android which usually is good enough. If devices can't be reached/seen they are not connected.
For tough cases I check my Network Monitor NTOPNG and wireshark. But this Shelly Plug simply doesn't work. -
Hi,
meanwhile I am operating quite a bunch of shelly products. So far I have been happy with cost, ease of use and performance of the products, except the Plug S.
When five months old, one of the Plug S suddenly did't work anymore, simply went off, no more LEDs - over and out. No reset possible.
Fortunately the dealership replayed it w/o any discussion.
Today after nineteen months the second Plug S stopped working. I.e. suddenly no longer reachable, dropped off the WIFI network. Device was neither stressed not in a harsh environment.
Max load ever 600W, inside building, 15ft distance to router.
Firmware ist the latest 20230913-113421/v1.14.0-gcb84623So at first I did a factory reset which worked partially, some of my settings were still there, some were factory reset - strange.
After Reset device provided WiFi AP
I logged in 192.168.33.1 and tried switching on/off as a simple connection test. Worked right away.
Then I tried to include teh Plug S into my local WiFi (I don't use cloud at all) so I entered the credentials of my WiFi network.
When I hit the save button it took a while until I got an error message "Could not change settings: device could not be reached".
From this point onwards the device is neither accessible in the WiFi network, nor does it provide its own AP to log on.I then can do this reset and trying to save WiFi credentials again and agan, doesn't help. (...and - YES the credentials are the correct ones)
Anything else I can do ?
No longer really pleased with the quality of Plug S :o(. Two out of three failed.