Support-Thread Modul 36_Shelly.pm

Begonnen von Prof. Dr. Peter Henning, 03 Februar 2021, 08:03:09

Vorheriges Thema - Nächstes Thema

gvzdus

Ich habe einen fetten Shelly-Zoo (allerdings überwiegend Gen1) und helfe gerne ebenfalls mit.

MadMax-FHEM

@Lichti6: wie im Thread Titel zu lesen ist das hier der Support-Thread für das Shelly-Modul! Nicht für eine Anbindung per mqtt!

Das hier wäre evtl. ein passender Thread:
https://forum.fhem.de/index.php/topic,129394.msg1243506.html#msg1243506

Oder selber im Forum suchen...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

Ruggy

Hallo,
das Interval vom shelly modul wird in Sekunden angegeben.

Wie verhält sich ein svg-Plot, wenn ich jetzt z. b. 30 Minuten als interval einstelle, und nach z. b. 15 Minuten für 5 Minuten eine größeren Stromverbraucher einschalte.
Wird mir dieser "Ausschlag" in der Grafik nicht angezeigt?

Vielen Dank
Viele Grüße
Ruggy

RalfRog

#333
Na du erhältst alle 30 Minuten den zu diesem Zeitpunkt aktuellen Wert.
Fragst du Leistungswerte ab siehst du die Spitze nicht.
Hast Du Energiewerte werden die "aufaddiert". Also kommt nach 30 Minuten der Energieverbrauch von den 5 Minuten zum vorherigen Wert dazu.
So verhalten sich die Energiereadings vom PlugS, 3EM und 1PM.

Zitat von: Ruggy am 19 Februar 2023, 17:30:56
...
Wird mir dieser "Ausschlag" in der Grafik nicht angezeigt?
....

Also jein. Kommt drauf an was du plottest.

Deine Frage bezieht sich vermutlich auf Leistung - also nein.
Selbst wenn Du alle 2 Minuntej abfragst siehst du einen 30 Sekunden-Peak nicht. Da geht nur selber rechnen. Delta Energie geteilt durch Zeit = durchschnittliche Leistung, ist aber vermutlich auch nicht das was man will.

Gruß Ralf
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

Reisbaua

Hallo an die Runde!
Ich habe seit gestern einen Shelly EM (nicht den 3EM) in FHEM eingebunden, aber ich bin etwas verwirrt wegen der Einheit von "total".
Beim Shelly Plug S musste man den Total Energy (Watt Minuten) Wert durch 60 und 1000 dividieren um auf kWh zu kommen.

Beim Shelly EM hatte ich laut Shelly App ca. 10,5kWh Verbrauch, erhalte aber den Wert 175 in FHEM.

Eigentlich könnte man die Werte 1:1 aus der Schnittstelle entnehmen, sie kommen bereits in Wh daher.
https://shelly-api-docs.shelly.cloud/gen1/#shelly-em-relay-0
Shelly EM: /emeter/{index}
total: Total consumed energy, Wh

Ich müsste den Wert mal 60 nehmen und dann durch 1000 dividieren? (175*60/1000=10,5kWh)
Ist das wirklich so gewollt? Welche Einheit soll energy_1 darstellen?
Würde das Reading Wminuten anzeigen, müsste ich doch 175/60/1000 machen.

Ich vermute das Shelly Modul macht intern immer die Divison durch 60 (wie bei den anderen Devices nötig), was beim Shelly EM aber nicht nötig ist. Und ich müsste sie dann mit mal 60 wieder retourrechnen...

Übrigens: Das Attribute model habe ich auf "shellyem" gesetzt, ansonsten nur die IP Adresse beim erstellen des Devices angeben.
Und das Modul habe ich soeben aktualisiert und FHEM neu gestartet. Problem bleibt bestehen.

Danke schon mal an alle!

RalfRog

#335
Die Version im SVN ist älter (05.2022) => my $version = "4.01"

Es gibt eine my $version = "4.02f" im Beitrag #251 (09.2022)  (4.02f https://forum.fhem.de/index.php/topic,118446.msg1233686.html#msg1233686)
Keine Ahnung ob das etwas ändert.

So ein Rechenfehler war auch im 36_ShellyMonitor.pm von gvzdus (https://forum.fhem.de/index.php/topic,118446.msg1255032.html#msg1255032)

=> Wenn der EM im Code wie ein 1PM oder so gehandhabt wird passiert das. Die Dinger haben ja Wattminuten. Ich glaube bis auf den 3EM werden die 1Gen gleich berechnet. Das ist dann für dem EM falsch.



FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

Starkstrombastler

#336
So, es ist soweit. Anbei eine neue (Test-)Version des Shelly-Moduls, in der sich meine ersten Modul-Entwicklungs-Gehversuche auf Basis des von PAH entwickelten Moduls (v. 4.02f, 3.9.2022) etablieren.

Berücksichtigt ist insbesondere die 2. Gen. Es sollten alle Shellies mit Relais (plus1, plus2, pro1, pro2, ...) unterstützt werden.

Alle die gerne testen möchten sollten dies jetzt ausgiebig tun, da ich selbst auch nicht alle Geräte vor Ort habe.
Getested habe ich mit folgenden Shellies: shelly1, shelly1pm, shelly2 (roller), shelly4, shellydimmer, shellyrgbw (white + color), shellyi3, shellyplug, shellyplus2m (relay + roller).

Was gibt es sonst noch:
Für die Gen. 2 Geräte besteht ein Attribut "webhooks": Hier lässt sich ein FHEM-WEB device auswählen, auf welches Webhooks ausgerichtet werden. Die Webhooks werden von fhem aus im Shelly abgelegt und ermöglichen ein nahezu verzögerungsloses Nachführen der Readings für Eingänge und Ausgänge. Ist im FHEMWEB-device ein Token definiert, wird dies im Webhook mit aufgenommen und bei Bedarf (z.B. bei fhem-Neustart) im Shelly aktualisiert.

Mit dem Attribut "showunits" werden die Einheiten, insbesondere Energie und Leistung, in den Readings mit aufgenommen. Damit soll die bisweilen bestehende Verwirrung aufgehoben werden, weil die Shellies unterschiedliche Einheiten nutzen (Watt-Minuten, Watt-Stunden, etc.). Werden diese Readings in Notify o.ä. verwendet, sollte diese von ReadingsVal auf ReadingsNum umgestellt werden.

Mit dem Attribut "showinputs" werden Readings für die Konfiguration der Eingänge (button, switch, inverted, ...) und den Status der Eingänge (buttons) angezeigt. Das ist dann sinnvoll, wenn die Eingänge via Webhook vom Shelly getriggert werden.

Die bisherige Notwendigkeit, das Model direkt im Anschluss der Definition (define) als Attribut festzulegen, entfällt. Das Model wird vom Modul ermittelt und (aus Kompatibiltäsgründen) weiterhin als Attribut abgelegt. Ebenso wird bei "Multi-mode" Shellies (also Shelly(..)2.. u.a.) der Mode vom Shelly abgefragt und als Attribut abgelegt.

Die (englische) Online-Doku habe ich für das Testen umgehangen, so dass die Infos leichter zur Verfügung stehen.

Jetzt bin ich mal auf die Testergebnisse gespannt. Aber zunächst stehen die Feiertage an, danach geht es weiter.

Frohe Ostern
Bernhard
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

RalfRog

#337
Ein Hinweis wäre eventuell noch hilfreich.
Damit der "ShellyMonitor" nicht in die Suppe spuckt sollte man ihn eventuell dekativieren, da er mit dem "alten" Modul zusammenarbeitet.


Erster Test definieren eines ShellyPlug-S
(vorher alle Shellies aus der Testinstllation gelöscht)
==> define Shelly_Plug Shelly <IP>
  • Attribut model wird nicht automatisch gesetzt
  • Reading relay fehlt
  • Reading power fehlt
  • Reading energy fehlt
  • ggfs. Reading overpower fehlt (gab es vorher)

Readings im ersten Schritt
cloud  disabled  2023-04-11 23:03:14
firmware  v1.10.1  2023-04-11 23:03:14
inttemp  23.77  2023-04-11 23:19:15
network  connected to 11.12.13.14  2023-04-11 23:02:14
state  OK  2023-04-11 23:03:14

Nach setzen des Modells shellyplug kommen drei Readings dazu
energy  39156.5  2023-04-11 23:28:16
power  0  2023-04-11 23:28:16
relay  on  2023-04-11 23:28:16

Dann läuft alle Minute
2023.04.11 23:45:18.145 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:46:18.213 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:46:18.282 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:46:18.286 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
Muss bei Gen1 nicht einfach einmal im Intervall der Status abgerufen werden? Was machen die SET's?

Logauszug
Im Verlauf verbose 4 und dann noch 5 eingestellt, kurz nach setzen des Modells endet hier der Logauszug
einmalig taucht auf: 23:02:14.442 2: [Shelly_get_model] has invalid JSON data for device Shelly_Plug
2023.04.11 23:02:14.361 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:02:14.365 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:02:14.372 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:02:14.375 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:02:14.382 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.11 23:02:14.437 2: [Shelly_get_model] Shelly_Plug: received 1778 byte of data from device
>>> 2023.04.11 23:02:14.442 2: [Shelly_get_model] has invalid JSON data for device Shelly_Plug
2023.04.11 23:02:14.456 2: [Shelly_get_model] Shelly_Plug: received 9 byte of data from device
2023.04.11 23:02:14.459 2: [Shelly_get_model] no endpoint found for URL on device Shelly_Plug
2023.04.11 23:02:14.767 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:02:14.770 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:02:24.284 3: [Shelly_shelly] Shelly_Plug is a first Gen device
2023.04.11 23:02:24.287 1: [Shelly_shelly] aborting, Shelly_Plug is not 2nd Gen
2023.04.11 23:03:14.284 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:03:14.369 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:03:14.373 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
...
...
...
2023.04.11 23:08:14.731 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:08:14.798 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:08:14.801 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
>>> verbose 4
2023.04.11 23:08:52.353 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:08:52.356 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:08:52.437 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:08:52.440 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:08:52.447 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:08:52.450 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:08:52.455 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.11 23:08:52.459 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
...
...
...
2023.04.11 23:11:05.696 4: [Shelly_Get] receiving command get Shelly_Plug config
2023.04.11 23:11:05.700 2: [Shelly_configure] Shelly_Plug: received command=settings/relay/0?default_state
2023.04.11 23:11:05.704 3: [Shelly_configure] issue a non-blocking call to http://10.20.30.90/settings/relay/0?default_state
2023.04.11 23:11:05.738 2: [Shelly_configure] Shelly_Plug: received command=settings/relay/0?default_state
2023.04.11 23:11:05.742 2: [Shelly_configure] device Shelly_Plug has returned 175 bytes of data
2023.04.11 23:11:05.745 4: [Shelly_configure] device Shelly_Plug processing "settings/relay/0?default_state"
2023.04.11 23:11:05.748 4: [Shelly_configure] device Shelly_Plug result is reg: default_state chan  [channel 0] value on
2023.04.11 23:11:05.761 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:11:05.764 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
...
...
...
2023.04.11 23:27:16.367 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:27:16.434 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:16.438 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:27:24.632 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:24.635 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:27:24.709 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:24.713 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:27:24.719 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:24.723 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.11 23:27:24.728 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.11 23:27:24.732 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.11 23:27:46.199 5: [Shelly_Attr] Shelly_Plug: called with command set for attribute model and value shellyplug
2023.04.11 23:27:46.220 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:46.224 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:27:46.306 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:46.309 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:27:46.318 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:27:46.321 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:27:46.328 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.11 23:27:46.331 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.11 23:28:05.478 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:28:05.481 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:28:05.490 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:28:05.493 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:28:05.499 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.11 23:28:05.502 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.11 23:28:16.452 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:28:16.533 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:28:16.536 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:29:16.564 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:29:16.646 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:29:16.650 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:29:41.868 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:29:41.871 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:29:41.889 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:29:41.892 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:29:41.898 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.11 23:29:41.901 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.11 23:30:16.678 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:30:16.754 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:30:16.757 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:31:16.784 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:31:16.851 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:31:16.854 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.11 23:32:16.881 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:33:16.948 3: [Shelly_status] issue a non-blocking call to http://10.20.30.90/status
2023.04.11 23:33:17.017 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.11 23:33:17.021 2: [Shelly_Set] Shelly_Plug model=shellyplug: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle


Gruß Ralf

Der 3EM folgt
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

RalfRog

#338
Zweiter Test definieren eines Shelly 3EM
==> define Shelly_3EM Shelly <IP>
  • Attribut model wird gesetzt
  • vorherige Readings scheinen da zu sein
  • einige interessante Reading  fehlen

Readings
cloud  disabled  2023-04-12 00:04:02
energy_0  239407.7  2023-04-12 00:10:03
energy_1  253059.9  2023-04-12 00:10:03
energy_2  303575.8  2023-04-12 00:10:03
firmware  v1.11.8(update needed to v1.12.1)  2023-04-12 00:04:02
network  connected to 11.12.13.14  2023-04-12 00:03:02
power_0  208.74  2023-04-12 00:10:03
power_1  26.26  2023-04-12 00:10:03
power_2  3.43  2023-04-12 00:10:03
relay  off  2023-04-12 00:04:02
state  OK  2023-04-12 00:04:02
voltage_0  228.33  2023-04-12 00:10:03
voltage_1  228.94  2023-04-12 00:10:03
voltage_2  228.91  2023-04-12 00:10:03


Der 3EM hat
  • analog zu voltage noch current
  • analog zu energy noch energyReturned (wichtig und interessant mit Solargeschichten)
  • und total_power
  • sowie den PowerFactor

Als JSON Struktur
emeters
  0
    power 212.29
    pf 0.8
    current 1.16
    voltage 228.25
    is_valid true
    total 239463.9
    total_returned 18320.5
  1
    power 25.78
    pf 0.36
    current 0.31
    voltage 228.8
    is_valid true
    total 253082.7
    total_returned 0
  2
    power 3.63
    pf 0.07
    current 0.23
    voltage 228.67
    is_valid true
    total 303595.7
    total_returned 0
total_power 241.7


Log dazu (verbose3)
2023.04.12 00:03:02.664 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:03:02.667 2: [Shelly_Set] Shelly_3EM model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.12 00:03:02.676 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:03:02.679 2: [Shelly_Set] Shelly_3EM model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.12 00:03:02.685 2: [Shelly_Get] Shelly_3EM: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.12 00:03:02.830 2: [Shelly_get_model] Shelly_3EM: received 2037 byte of data from device
2023.04.12 00:03:02.839 2: [Shelly_get_model] discovered model=shelly3em for device Shelly_3EM
>>>>   2023.04.12 00:03:02.844 1: PERL WARNING: Use of uninitialized value $mode in string eq at ./FHEM/36_Shelly.pm line 464.
2023.04.12 00:03:02.853 2: [Shelly_get_model] Shelly_3EM: received 9 byte of data from device
2023.04.12 00:03:02.856 2: [Shelly_get_model] no endpoint found for URL on device Shelly_3EM
2023.04.12 00:03:02.995 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:03:02.998 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:03:12.589 3: [Shelly_shelly] Shelly_3EM is a first Gen device
2023.04.12 00:03:12.592 1: [Shelly_shelly] aborting, Shelly_3EM is not 2nd Gen
2023.04.12 00:04:02.589 3: [Shelly_status] issue a non-blocking call to http://10.20.30.92/status
2023.04.12 00:04:02.669 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:04:02.673 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:04:22.712 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:04:22.715 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:04:22.725 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:04:22.728 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:04:22.734 2: [Shelly_Get] Shelly_3EM: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.12 00:05:02.698 3: [Shelly_status] issue a non-blocking call to http://10.20.30.92/status
2023.04.12 00:05:02.818 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:05:02.821 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:05:26.850 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:05:26.853 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:05:26.862 3: [Shelly_Set] calling for device Shelly_3EM with command ?, without value
2023.04.12 00:05:26.866 2: [Shelly_Set] Shelly_3EM model=shelly3em: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle
2023.04.12 00:05:26.872 2: [Shelly_Get] Shelly_3EM: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
Was machen die Set und Get?
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

Starkstrombastler

Hallo Ralf Rog und all die anderen, die sich das bisher angeschaut haben.

Von den vielen Logeinträgen bitte nicht irritieren lassen, das kommt aus vielen zusätzlichen Log-Befehlen, damit ich die Funktionen besser verstehe. Das wird am Ende wieder aufgeräumt.

Einige Punkte konnte ich bereits bearbeiten, es kommt eine neue Version.

Bei dem Punkt
unknown argument ? choose one of config password reboot:noArg update:noArg .....bin ich total ratlos. Die set-Befehle werden wohl von FHEMWEB gesendet und dienen dem Aufbau der set-Menus, vgl. Development Module Intro. Aber in dieser Häufigkeit?

Nebenbei: Heute wurde mein ShellyPro3EM geliefert.....

Gruß
Bernhard
IPC\Ubuntu + Fhem, 1wire, Shellies, Siemens Logo!, Z-Wave, PhilipsTV, Vu+duo2, KM200

RalfRog

Die Häufigkeit entspricht dem Intervall.
Bzw. kommt auch wenn man oben den Namen anklickt.

Gruß Ralf
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

RalfRog

Hi @Starkstrombastler

=> Autoerkennung des ShellyPlugS hat nicht funktioniert. Habe mal versucht etwas präzisere Daten zu erhalten
=> Wenn du Folgendes zur Analyse brauchen kannst...

  • global verbose 5, die paar Geräte die noch drin sind individuell auf verbose 0
  • define Shelly_Plug Shelly 11.12.13.14
  • bis zum ok im Status den Log mitgeschrieben

LOG
2023.04.14 19:47:55.152 5: Cmd: >define Shelly_Plug Shelly 11.12.13.14<
2023.04.14 19:47:55.162 5: HttpUtils url=http://11.12.13.14/settings NonBlocking via http
2023.04.14 19:47:55.164 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:47:55.172 5: HttpUtils url=http://11.12.13.14/rpc/Shelly.GetDeviceInfo NonBlocking via http
2023.04.14 19:47:55.176 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:47:55.186 5: Starting notify loop for Shelly_Plug, 2 event(s), first is initialized
2023.04.14 19:47:55.195 5: End notify loop for Shelly_Plug
2023.04.14 19:47:55.200 5: Starting notify loop for global, 1 event(s), first is DEFINED Shelly_Plug
2023.04.14 19:47:55.202 5: createNotifyHash
2023.04.14 19:47:55.218 5: Installer (fhemInstaller) - Notify: $VAR1 = [
          'DEFINED Shelly_Plug'
        ];
2023.04.14 19:47:55.227 5: End notify loop for global
2023.04.14 19:47:55.235 5: HttpUtils request header:
GET /settings HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:47:55.241 5: HttpUtils request header:
GET /rpc/Shelly.GetDeviceInfo HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:47:55.305 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:47:55.307 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:47:55.313 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:47:55.315 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:47:55.320 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.14 19:47:55.322 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.14 19:47:55.441 4: http://11.12.13.14/settings: HTTP response code 200
2023.04.14 19:47:55.443 5: HttpUtils http://11.12.13.14/settings: Got data, length: 1778
2023.04.14 19:47:55.445 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 1778
2023.04.14 19:47:55.447 2: [Shelly_get_model] Shelly_Plug: received 1778 byte of data from device
2023.04.14 19:47:55.451 2: [Shelly_get_model] has invalid JSON data for device Shelly_Plug
2023.04.14 19:47:55.456 5: Starting notify loop for Shelly_Plug, 1 event(s), first is Error
2023.04.14 19:47:55.465 5: End notify loop for Shelly_Plug
2023.04.14 19:47:55.494 4: http://11.12.13.14/rpc/Shelly.GetDeviceInfo: HTTP response code 404
2023.04.14 19:47:55.497 5: HttpUtils http://11.12.13.14/rpc/Shelly.GetDeviceInfo: Got data, length: 9
2023.04.14 19:47:55.500 5: HttpUtils response header:
HTTP/1.1 404 Not Found
Server: Mongoose/6.18
Content-Type: text/plain
Connection: close
Content-Length: 9
2023.04.14 19:47:55.502 2: [Shelly_get_model] Shelly_Plug: received 9 byte of data from device
2023.04.14 19:47:55.504 2: [Shelly_get_model] no endpoint found for URL on device Shelly_Plug
2023.04.14 19:47:55.551 5: Cmd: >{ReadingsVal("Shelly_Plug","config","")}<
2023.04.14 19:47:55.567 5: Cmd: >{AttrVal("Shelly_Plug","room","")}<
2023.04.14 19:47:55.667 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:47:55.669 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:48:05.202 3: [Shelly_shelly] Shelly_Plug is a first Gen device
2023.04.14 19:48:05.204 1: [Shelly_shelly] aborting, Shelly_Plug is not 2nd Gen
2023.04.14 19:48:55.200 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:48:55.203 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:48:55.206 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:48:55.218 5: HttpUtils request header:
GET /status HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:48:55.248 4: http://11.12.13.14/status: HTTP response code 200
2023.04.14 19:48:55.250 5: HttpUtils http://11.12.13.14/status: Got data, length: 851
2023.04.14 19:48:55.252 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 851
2023.04.14 19:48:55.258 5: [Shelly_proc1G] Model of device Shelly_Plug is generic and mode is . Updates every 60 seconds. Data is:
{"wifi_sta":{"connected":true,"ssid":"WLAN_SSID","ip":"11.12.13.14","rssi":-85},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"18:48","unixtime":1681494536,"serial":32648,"has_update":false,"mac":"3C6105DF2674","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"source":"input"}],"meters":[{"power":0.74,"overpower":0.00,"is_valid":true,"timestamp":1681498136,"counters":[0.816, 0.881, 1.048],"total":2509874}],"temperature":28.89,"overtemperature":false,"tmp":{"tC":28.89,"tF":84.00, "is_valid":true},"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20210323-105718/v1.10.1-gf276b51"},"ram_total":50632,"ram_free":39884,"fs_size":233681,"fs_free":166915,"uptime":9343300}
2023.04.14 19:48:55.264 5: Starting notify loop for Shelly_Plug, 4 event(s), first is inttemp: 28.89
2023.04.14 19:48:55.275 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:48:55.278 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:48:55.286 5: End notify loop for Shelly_Plug
2023.04.14 19:49:06.147 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:49:06.155 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:49:06.161 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:49:06.163 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:49:06.167 4: [Shelly_Get] receiving command get Shelly_Plug ?
2023.04.14 19:49:06.170 2: [Shelly_Get] Shelly_Plug: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg
2023.04.14 19:49:06.366 5: Cmd: >{ReadingsVal("Shelly_Plug","config","")}<
2023.04.14 19:49:06.378 5: Cmd: >{AttrVal("Shelly_Plug","room","")}<


dann Minütlich
#############  1 #############
2023.04.14 19:49:55.292 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:49:55.295 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:49:55.298 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:49:55.310 5: HttpUtils request header:
GET /status HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:49:55.338 4: http://11.12.13.14/status: HTTP response code 200
2023.04.14 19:49:55.341 5: HttpUtils http://11.12.13.14/status: Got data, length: 851
2023.04.14 19:49:55.343 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 851
2023.04.14 19:49:55.347 5: [Shelly_proc1G] Model of device Shelly_Plug is generic and mode is . Updates every 60 seconds. Data is:
{"wifi_sta":{"connected":true,"ssid":"WLAN_SSID","ip":"11.12.13.14","rssi":-86},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"18:49","unixtime":1681494596,"serial":32648,"has_update":false,"mac":"3C6105DF2674","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"source":"input"}],"meters":[{"power":0.68,"overpower":0.00,"is_valid":true,"timestamp":1681498196,"counters":[0.759, 0.816, 0.881],"total":2509875}],"temperature":28.83,"overtemperature":false,"tmp":{"tC":28.83,"tF":83.90, "is_valid":true},"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20210323-105718/v1.10.1-gf276b51"},"ram_total":50632,"ram_free":39884,"fs_size":233681,"fs_free":166915,"uptime":9343360}
2023.04.14 19:49:55.352 5: Starting notify loop for Shelly_Plug, 1 event(s), first is inttemp: 28.83
2023.04.14 19:49:55.354 5: createNotifyHash
2023.04.14 19:49:55.373 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:49:55.375 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:49:55.385 5: End notify loop for Shelly_Plug

#############  2 #############
2023.04.14 19:50:55.392 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:50:55.396 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:50:55.398 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:50:55.410 5: HttpUtils request header:
GET /status HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:50:55.439 4: http://11.12.13.14/status: HTTP response code 200
2023.04.14 19:50:55.441 5: HttpUtils http://11.12.13.14/status: Got data, length: 851
2023.04.14 19:50:55.444 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 851
2023.04.14 19:50:55.449 5: [Shelly_proc1G] Model of device Shelly_Plug is generic and mode is . Updates every 60 seconds. Data is:
{"wifi_sta":{"connected":true,"ssid":"WLAN_SSID","ip":"11.12.13.14","rssi":-86},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"18:50","unixtime":1681494656,"serial":32648,"has_update":false,"mac":"3C6105DF2674","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"source":"input"}],"meters":[{"power":0.81,"overpower":0.00,"is_valid":true,"timestamp":1681498256,"counters":[0.722, 0.759, 0.816],"total":2509876}],"temperature":28.78,"overtemperature":false,"tmp":{"tC":28.78,"tF":83.80, "is_valid":true},"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20210323-105718/v1.10.1-gf276b51"},"ram_total":50632,"ram_free":39884,"fs_size":233681,"fs_free":166915,"uptime":9343420}
2023.04.14 19:50:55.454 5: Starting notify loop for Shelly_Plug, 1 event(s), first is inttemp: 28.78
2023.04.14 19:50:55.465 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:50:55.467 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:50:55.473 5: End notify loop for Shelly_Plug

#############  3 #############
2023.04.14 19:51:55.479 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:51:55.482 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:51:55.485 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:51:55.496 5: HttpUtils request header:
GET /status HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:51:55.525 4: http://11.12.13.14/status: HTTP response code 200
2023.04.14 19:51:55.528 5: HttpUtils http://11.12.13.14/status: Got data, length: 851
2023.04.14 19:51:55.530 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 851
2023.04.14 19:51:55.535 5: [Shelly_proc1G] Model of device Shelly_Plug is generic and mode is . Updates every 60 seconds. Data is:
{"wifi_sta":{"connected":true,"ssid":"WLAN_SSID","ip":"11.12.13.14","rssi":-86},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"18:51","unixtime":1681494716,"serial":32648,"has_update":false,"mac":"3C6105DF2674","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"source":"input"}],"meters":[{"power":0.87,"overpower":0.00,"is_valid":true,"timestamp":1681498316,"counters":[0.736, 0.722, 0.759],"total":2509876}],"temperature":29.06,"overtemperature":false,"tmp":{"tC":29.06,"tF":84.31, "is_valid":true},"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20210323-105718/v1.10.1-gf276b51"},"ram_total":50632,"ram_free":39884,"fs_size":233681,"fs_free":166915,"uptime":9343480}
2023.04.14 19:51:55.540 5: Starting notify loop for Shelly_Plug, 1 event(s), first is inttemp: 29.06
2023.04.14 19:51:55.550 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:51:55.552 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:51:55.557 5: End notify loop for Shelly_Plug

#############  4 #############
2023.04.14 19:52:55.564 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:52:55.568 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:52:55.571 4: IP: 11.12.13.14 -> 11.12.13.14
2023.04.14 19:52:55.584 5: HttpUtils request header:
GET /status HTTP/1.0
Host: 11.12.13.14
User-Agent: fhem
Accept-Encoding: gzip,deflate
2023.04.14 19:52:55.611 4: http://11.12.13.14/status: HTTP response code 200
2023.04.14 19:52:55.613 5: HttpUtils http://11.12.13.14/status: Got data, length: 851
2023.04.14 19:52:55.616 5: HttpUtils response header:
HTTP/1.1 200 OK
Server: Mongoose/6.18
Connection: close
Content-Type: application/json
Content-Length: 851
2023.04.14 19:52:55.621 5: [Shelly_proc1G] Model of device Shelly_Plug is generic and mode is . Updates every 60 seconds. Data is:
{"wifi_sta":{"connected":true,"ssid":"WLAN_SSID","ip":"11.12.13.14","rssi":-85},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"18:52","unixtime":1681494776,"serial":32648,"has_update":false,"mac":"3C6105DF2674","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"overpower":false,"source":"input"}],"meters":[{"power":0.70,"overpower":0.00,"is_valid":true,"timestamp":1681498376,"counters":[0.757, 0.736, 0.722],"total":2509877}],"temperature":28.78,"overtemperature":false,"tmp":{"tC":28.78,"tF":83.80, "is_valid":true},"update":{"status":"unknown","has_update":false,"new_version":"","old_version":"20210323-105718/v1.10.1-gf276b51"},"ram_total":50632,"ram_free":39884,"fs_size":233681,"fs_free":166915,"uptime":9343540}
2023.04.14 19:52:55.626 5: Starting notify loop for Shelly_Plug, 1 event(s), first is inttemp: 28.78
2023.04.14 19:52:55.636 3: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2023.04.14 19:52:55.638 2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
2023.04.14 19:52:55.644 5: End notify loop for Shelly_Plug
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

TK67

Zunächst mal danke an Starkstrombastler für die Weiterentwicklung des Moduls.

Poste dann hier meinen Versuch mit einem Shelly Uni.
Der Shelly ist mit einem DHT22 zur Temperatur und Feuchtemessung verbunden.

List vom Device:
Internals:
   DEF        192.168.1.30
   FUUID      xxxxxxxxxxxxx
   INTERVAL   60
   NAME       myShelly
   NR         637
   SHELLY     SHUNI-1
   STATE      OK
   TCPIP      192.168.1.30
   TYPE       Shelly
   eventCount 729
   Helper:
     DBLOG:
       humidity_0:
         logdb:
           TIME       1681475544.53637
           VALUE      32
       temperature_0:
         logdb:
           TIME       1681475544.53637
           VALUE      23
   READINGS:
     2023-04-14 14:18:16   cloud           enabled(connected)
     2023-04-12 20:22:32   energy          0 Wh
     2023-04-14 14:18:16   firmware        v1.13.0-rc1(update needed to v1.12.1)
     2023-04-14 14:32:24   humidity_0      32
     2023-04-14 14:31:46   network         <html>connected to <a href="http://192.168.1.30">192.168.1.30</a></html>
     2023-04-12 20:22:32   power            W
     2023-04-12 02:35:21   relay_0         off
     2023-04-12 02:35:21   relay_1         off
     2023-04-14 14:32:24   state           OK
     2023-04-14 14:32:24   temperature_0   23
     2023-04-14 14:34:24   voltage         0.05 V
Attributes:
   event-on-change-reading temperature_0,humidity_0
   model      shellyuni
   room       System
   showinputs show
   showunits  normal
   verbose    5

Auszug aus dem Log:
2023.04.14 14:33:13 3: [Shelly_Set] calling for device myShelly with command ?, without value
2023.04.14 14:33:13 2: [Shelly_Set] myShelly model=shellyuni: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle xtrachannels:noArg
2023.04.14 14:33:14 3: [Shelly_Set] calling for device myShelly with command ?, without value
2023.04.14 14:33:14 2: [Shelly_Set] myShelly model=shellyuni: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle xtrachannels:noArg
2023.04.14 14:33:14 3: [Shelly_Set] calling for device myShelly with command ?, without value
2023.04.14 14:33:14 2: [Shelly_Set] myShelly model=shellyuni: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle xtrachannels:noArg
2023.04.14 14:33:14 4: [Shelly_Get] receiving command get myShelly ?
2023.04.14 14:33:14 2: [Shelly_Get] myShelly: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg

Es wiederholt sich minütlich:
2023.04.14 14:33:24 3: [Shelly_status] issue a non-blocking call to http://192.168.1.30/status
Diese 2 Warnungen erscheinen regelmäßig, wohl dann wenn sich ein Reading ändert:
2023.04.12 23:29:45 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/36_Shelly.pm line 1760, <GEN7428531> line 12082.
2023.04.12 23:29:45 1: PERL WARNING: Use of uninitialized value $energy in division (/) at ./FHEM/36_Shelly.pm line 2297, <GEN7428531> line 12082.
2023.04.13 00:14:47 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/36_Shelly.pm line 1760, <GEN7428511> line 1306181.
2023.04.13 00:14:47 1: PERL WARNING: Use of uninitialized value $energy in division (/) at ./FHEM/36_Shelly.pm line 2297, <GEN7428511> line 1306181.
2023.04.13 00:25:48 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/36_Shelly.pm line 1760, <GEN7428511> line 1339083.
2023.04.13 00:25:48 1: PERL WARNING: Use of uninitialized value $energy in division (/) at ./FHEM/36_Shelly.pm line 2297, <GEN7428511> line 1339083.

Ich vermute das es wegen den Readings energy und power ist, die in meinem Fall ja nicht benötigt werden. Ich kann die Readings löschen, sie erscheinen nach einiger Zeit jedoch von selber wieder.
Hoffe du kannst damit etwas anfangen und noch das ein oder andere ausmerzen. Die letzten Warnungen erscheinen trotz Verbose 0 im Log.

Gruß TK67
FHEM auf Raspberry Pi 3 Model B+

RalfRog

Zitat von: RalfRog am 14 April 2023, 20:08:342023.04.14 19:49:55.292 3: [Shelly_status] issue a non-blocking call to http://11.12.13.14/status
2023.04.14 19:49:55.295 5: HttpUtils url=http://11.12.13.14/status NonBlocking via http
2023.04.14 19:49:55.298 4: IP: 11.12.13.14 -> 11.12.13.14
....

Zitat von: TK67 am 14 April 2023, 21:00:01Es wiederholt sich minütlich:
2023.04.14 14:33:24 3: [Shelly_status] issue a non-blocking call to http://192.168.1.30/status...

Für Gen1 Geräte ist beim Default-Intervall von 60sec zumindest das Obige normal, da ja minütlich die (Mess)Werte aktualisiert werden und per ~/staus-Abfrage geholt werden.


Nur sind diese Meldungen auch erforderlich bzw. das Ausführen der Sub SET (oder GET) im Code? Im Grunde immer nachfolgend zur Statusabfrage.
Zitat von: RalfRog am 14 April 2023, 20:08:343: [Shelly_Set] calling for device Shelly_Plug with command ?, without value
2: [Shelly_Set] Shelly_Plug model=generic: unknown argument ? choose one of config password reboot:noArg update:noArg
Zitat von: TK67 am 14 April 2023, 21:00:013: [Shelly_Set] calling for device myShelly with command ?, without value
2: [Shelly_Set] myShelly model=shellyuni: unknown argument ? choose one of config password reboot:noArg update:noArg off off-for-timer on on-for-timer toggle xtrachannels:noArg
4: [Shelly_Get] receiving command get myShelly ?
2: [Shelly_Get] myShelly: unknown argument ?, choose one of config registers:noArg shelly_status:noArg status:noArg version:noArg

Gruß Ralf
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

RalfRog

Zitat von: TK67 am 14 April 2023, 21:00:01...Ich vermute das es wegen den Readings energy und power ist, die in meinem Fall ja nicht benötigt werden. Ich kann die Readings löschen, sie erscheinen nach einiger Zeit jedoch von selber wieder....

@Starkstrombastler
Wenn ich es in der API Beschreibung richtig sehe kennt der Shelly Uni keine energy und power.
FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder