Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined) #859

Closed
4 of 5 tasks
hgschwibbe opened this issue Oct 1, 2023 · 69 comments
Closed
4 of 5 tasks
Labels
No debug log attached Debug log is missing Not reproducible Unable to reproduce this issue on other systems

Comments

@hgschwibbe
Copy link

hgschwibbe commented Oct 1, 2023

I'm sure that

  • This issue is still present in the current beta version of this adapter
  • There is no other (open) issue with the same topic (used the search)
  • This issue is not described in the adapter documentation / FAQ

Shelly device

Shelly Plus 2 PM, Shelly Plus 1 PM, Shelly Motion, Shelly TRV

Protocol (CoAP / MQTT)

MQTT

The problem

The adapter spams my log files with the error messages shown below:
grafik

The first issue is the error message itself because a Shelly Plus is a 2. generation device. But the error log shows an error message about a "Gen 1" device.

Version of nodejs

v16.20.2

Version of ioBroker js-controller

5.0.12

Version of Adapter

6.4.1

Operating system running ioBroker

Linux

Checklist of files to include below

  • iobroker.current.log (Please share the logs in debug mode)
  • Contents of the JavaScript browser console (always include in cases of issues with the user interface)

Additional information & file uploads

No response

@hgschwibbe hgschwibbe changed the title Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace') Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined) Oct 1, 2023
@hgschwibbe
Copy link
Author

iobroker.2023-10-01.log

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Thanks for reporting @hgschwibbe!

  1. Check if this topic is not covered in the documentation
  2. Ensure that you use the latest beta version: NPM version
  3. Attach all necessary log files in debug mode, screenshots and other information to reproduce this issue
  4. Search for the issue topic in other/closed issues to avoid duplicates!

@crycode-de
Copy link

Same for me with adapter version 6.4.5.

My log is spammed with messages like this:

2023-10-30 16:10:14.147  - info: shelly.0 (3080711) [MQTT] Device with client id "shellyplug-s-C11A20" connected!
2023-10-30 16:10:18.455  - error: shelly.0 (3080711) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for  (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2023-10-30 16:10:18.456  - error: shelly.0 (3080711) [MQTT] Unable to get mqttprefix of client with id "shellyplug-s-C11A20"

Downgraded to 6.4.1 and the error messages are gone.

@Trunks1982
Copy link

Bildschirmfoto 2023-11-09 um 09 27 19

Hi ich bekomme auch mit der neusten Adapter Version diese Meldung nach dem Neustart.Alle Shelly sind auf stable und neuster Firmware.Es ist auch alles angeschaltet so wie es die Doku sagt.

Bildschirmfoto 2023-11-09 um 09 29 04

@splizz1st
Copy link

Ich habe das gleiche Problem.

@DonPosei
Copy link

Ich habe augenscheinlich leider das gleiche Problem
Bildschirmfoto 2023-11-11 um 14 21 14

@homecineplexx
Copy link

selber in grün mit der shelly 6.6.1
`

shelly.0 2023-11-11 16:17:20.799 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:17:20.798 error [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
shelly.0 2023-11-11 16:17:20.001 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:17:19.999 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:17:19.998 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:17:19.997 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:17:19.996 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:17:19.995 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:17:19.960 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:17:19.959 error [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
shelly.0 2023-11-11 16:17:19.953 warn State "shelly.0.undefined.hostname" has no existing object, this might lead to an error in future versions
shelly.0 2023-11-11 16:17:19.635 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:17:19.633 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:17:18.726 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:16:13.628 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:16:13.627 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:16:13.575 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:16:13.543 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:16:13.543 error [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
shelly.0 2023-11-11 16:16:13.532 warn State "shelly.0.undefined.hostname" has no existing object, this might lead to an error in future versions
shelly.0 2023-11-11 16:16:13.503 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:16:13.498 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:16:13.496 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:16:13.495 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:16:13.453 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:16:12.925 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:16:12.491 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:15:07.127 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:15:07.073 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:15:07.072 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:15:07.071 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:15:06.862 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:15:06.861 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:15:06.654 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:15:06.653 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:15:06.652 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:15:06.651 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:15:06.644 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:14:00.103 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:14:00.102 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:14:00.101 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:14:00.094 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:14:00.093 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:14:00.092 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:14:00.091 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:14:00.090 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:13:59.882 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:13:59.881 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:13:59.876 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:12:51.763 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:12:51.753 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:12:51.752 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:12:51.751 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:12:51.710 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:12:51.648 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:12:51.343 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:12:51.217 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:12:51.212 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:12:51.211 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:12:51.209 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:11:54.748 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:11:54.747 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:11:54.746 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:11:54.745 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:11:53.950 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:11:53.949 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:11:52.852 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:11:52.851 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:11:52.848 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:11:52.095 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:11:52.087 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:11:11.195 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:11:11.178 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:11:11.150 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:11:11.149 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-ec626089a2bc"
shelly.0 2023-11-11 16:11:11.148 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:11:11.146 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce6597e8"
shelly.0 2023-11-11 16:11:11.139 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:11:11.035 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:11:11.034 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83b434"
shelly.0 2023-11-11 16:11:11.021 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:11:11.014 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"
shelly.0 2023-11-11 16:11:11.013 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-30c6f784f43c"
shelly.0 2023-11-11 16:11:11.012 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:11:11.010 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:11:11.008 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:11:10.964 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-a8032abe1f14"
shelly.0 2023-11-11 16:11:10.894 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88b778"
shelly.0 2023-11-11 16:11:10.860 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-441793a4f16c"
shelly.0 2023-11-11 16:11:10.858 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e88a5d8"
shelly.0 2023-11-11 16:11:10.856 error [MQTT] Unable to get mqttprefix of client with id "shellypro4pm-c8f09e83ee7c"
shelly.0 2023-11-11 16:11:10.849 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-44179394f5e0"
shelly.0 2023-11-11 16:11:10.804 error [MQTT] Unable to get mqttprefix of client with id "shellyplus1pm-7c87ce65becc"

`

@DonPosei
Copy link

Was können wir dazu beitragen, diesen Fehler zu finden? Können wir irgendwelche Logs ziehen? (Wenn ja wie???)

@ffienegit
Copy link

I had the same problem after upgrading my 4 Plus Plug S to latest firmware and version 6.6.1 of the adapter.
Downgrading to 6.4.1 solved this for me.
I guess this is a minor bug.

@DonPosei
Copy link

DonPosei commented Nov 12, 2023

@ffienegit : Well, this might be a minor bug, but it has a major consequences to me. Most of my shelly i4 aren't able to send their commands to the iobroker (or the mqtt server of the shelly adapter isn't receiving those telegrams). I don't have a direct wired power connection to my lamps or roller shutters, so no information that a lamp should be switched on, no light switching.

I'm happy to hear that downgrading to 6.4.1 solved the problem for you. Unfourtunately solved this doing not my problem.

In between I programmed some actions on my shellies. Now i can switch some light or my roller shutter. But this should not be the final solution. It worked perfect for about 6 month, but something changed and now i have these massiv problems.

@DonPosei
Copy link

Once again my question to the developers: What can I do to help investigating this issue?

@klein0r
Copy link
Contributor

klein0r commented Nov 13, 2023

@DonPosei Since nobody shared a log in debug mode so far, ... that would be a good start. I'm not able to reproduce that issue with the latest firmware versions in 6.6.1

@klein0r klein0r added Not reproducible Unable to reproduce this issue on other systems No debug log attached Debug log is missing labels Nov 13, 2023
@Trunks1982
Copy link

Trunks1982 commented Nov 13, 2023

@DonPoseiDa bisher niemand ein Protokoll im Debug-Modus geteilt hat, ... wäre das ein guter Anfang. Ich kann dieses Problem nicht mit den neuesten Firmware-Versionen in 6.6.1 reproduzieren Buchstabe l

eider kam bis jetzt auch nicht mehr der Fehler aber ein anderer den ich auch schon immer mal hatte.Ich hänge mal das debug log hier dran.
iobroker.2023-11-13.log

@DonPosei
Copy link

iobroker.2023-11-13.log

Zeitmarke 14:34:19 Shelly Adapter wird aktviert
Zeitmarke 14:44:14 erstes Auftreten der Meldung "unable to get.........."

Ich hoffe das hilft ein bisschen.

@DonPosei
Copy link

DonPosei commented Dec 2, 2023

Ist jetzt alles geliefert, damit eine qualifizierte Analyse stattfinden kann?

Wird / Werden noch irgendwelche weiteren Daten benötigt?

@klein0r
Copy link
Contributor

klein0r commented Dec 2, 2023

Ist jetzt alles geliefert, damit eine qualifizierte Analyse stattfinden kann?

Ich denke schon, muss ich mir in Ruhe angucken - momentan keine Zeit für den Shelly-Adapter übrig.

@DonPosei
Copy link

DonPosei commented Dec 2, 2023

Alles gut, wollte nur keine Information schuldig bleiben.

@splizz1st
Copy link

Moin, ich habe das Problem mittlerweile recht häufig. Ich kann es nicht mit 100% Sicherheit sagen, aber es scheint so, als wenn der Auslöser ein oder mehrere Shelly mit Verbindungsabbruch sind. Ein Neustart meiner UDM sorgt z.B. für die beschriebenen Fehlermeldungen. Die CPU von meiner Proxmox VM geht von 20-30% auf 50-60%. Innerhalb der VM geht der JS-Controller 100% CPU, Shelly und Device-Watcher sind auch sehr auffällig. Die GUI baut sich dann nur sehr langsam auf und Zigbee-Geräte brauchen ca. 10 Sekunden zum schalten. Nur durch einen Neustart der VM lässt sich das Problem lösen.

Anbei ein Log. Um 22:28 startet der Shelly-Adapter mit Version 6.6.1 im Debug-Modus:
iobroker.2023-12-29.log.gz

@Nelli-BAMBAM
Copy link

Nelli-BAMBAM commented Jan 10, 2024

Any solution available, yet?
I have two shellys witch make problems!
Both are connected via Fritzbox Repeater to the fritzbox. IoBroker is runnig on Synology NAS
Could this be a problem?

@dike1982
Copy link

Ich hab das gleiche Problem. Allerdings nur mit einem einzigen Shelly Plus1PMMini.
Gibt es eine Lösung?

@splizz1st
Copy link

Moin, ich habe das Problem mittlerweile recht häufig. Ich kann es nicht mit 100% Sicherheit sagen, aber es scheint so, als wenn der Auslöser ein oder mehrere Shelly mit Verbindungsabbruch sind. Ein Neustart meiner UDM sorgt z.B. für die beschriebenen Fehlermeldungen. Die CPU von meiner Proxmox VM geht von 20-30% auf 50-60%. Innerhalb der VM geht der JS-Controller 100% CPU, Shelly und Device-Watcher sind auch sehr auffällig. Die GUI baut sich dann nur sehr langsam auf und Zigbee-Geräte brauchen ca. 10 Sekunden zum schalten. Nur durch einen Neustart der VM lässt sich das Problem lösen.

Anbei ein Log. Um 22:28 startet der Shelly-Adapter mit Version 6.6.1 im Debug-Modus: iobroker.2023-12-29.log.gz

Ich habe den device-watcher vor 2 Wochen aktualisiert. Seit dem keine Problem mehr mit dem Shelly-Adapter...

@MaTr75
Copy link

MaTr75 commented Jan 26, 2024

Downgrade von 6.7.0 auf 6.4.1 hat das Problem für mich auch gelöst. "device-watcher" habe ich gar nicht installiert.

Ich hatte das Problem nur mit Gen2-Devices. Gen1-Devices im selben Adapter, die ebenfalls über MQTT angebunden waren, haben diesen Fehler bei mir nicht hervorgerufen.

@Letztfetz
Copy link

Letztfetz commented Jan 27, 2024

Bestätige, Downgrade von 6.6.1 auf 6.4.1 hat das Problem behoben.
Hatte es bei 23 shellys:
Plus 1
PlugS
1PM

Bei den UNIs und 3EMs kam der Fehler nicht.

@hgschwibbe
Copy link
Author

Das wirft bei mir jetzt eher Fragen auf, da ich den Bug mit 6.4.1 erstellt hatte. Welche Shelly Firmware Versionen betreibt Ihr?

@Letztfetz
Copy link

Letztfetz commented Jan 28, 2024

1PM 1PM

3EM 3EM

Plug_S PLUG S

Plus_1 Plus 1

UNI UNI

@lzimmermann
Copy link

Ich habe das Problem auch, allerdings nur wenn die shelly per gl.inet Router aus die MQTT Daten sendet - sobald ich ins Local WLAN switche funktioniert alles einwandfrei. Kann es sein, das das MQTT Paket nicht vollständig ankommt?
Kann man da eventuell ein log einschalten, das die eingehenden Pakete protokolliert?

@klein0r
Copy link
Contributor

klein0r commented Jan 30, 2024

wenn die shelly per gl.inet Router aus die MQTT Daten sendet

Was meinst Du damit?

@Letztfetz
Copy link

Nabend. Also das ist ein klarer Unterschied nach der Aufteilung. Irgendwie auch logisch, wenn 59 Geräte gleichzeitig versuchen sich über einen Port zu verbinden.

@lzimmermann
Copy link

Naja, auf Instanz 1 läuft alles gut, alte shellys, auf Instanz 2 gehts eben nicht mit nur 5Devices. Ich vermute da wirklich Network issues, wollte mal mit wireshark ran, wenn ich Zeit habe.

@Letztfetz
Copy link

Letztfetz commented Feb 17, 2024

Was mir gerade einfällt, ich habe den piHole laufen und natürlich in jedem Gerät auch die Adresse eingepflegt. Zusätzlich habe ich in der Fritzbox jedes Gerät fürs Internet gesperrt. Kann es daran liegen?

@lzimmermann
Copy link

Das setup ist bei mir ähnlich, pihole ja, aber das macht ja nur DNS. MQTT habe ich per IP Adresse configuriert, damit ist pihole nicht betroffen. Meine Devices dürfen alle in die Shelly Cloud :-) - die personal devices hängen bei mir alle im Gastnetz der Fritzbox - das reguläre Netz ist nur für iot Devices und noch der Raspi

@Letztfetz
Copy link

Letztfetz commented Feb 17, 2024

Spannend @lzimmermann, die UNIś schreiben im Bereich static IP dazu: "WARNING: Cloud must be disabled in order to set static IP address without a gateway."

Ich teste das mal an einem 1Plus und einem PlugS.

@lzimmermann
Copy link

lzimmermann commented Feb 17, 2024

nein nein, die Devices sind per dhcp konfiguriert, haben aber eine Reservierung in der Fritzbox. Die MQTT Settings sind statisch und zeigen auf die feste IP des Raspis.
Oder habe ich da was übersehen?

@Letztfetz
Copy link

Ich habe den Devices eine feste IP gegeben. Hatte letzten Jahr in der Nähe einen Blitzeinschlag, hat die FB zerlegt und damit das DHCP. Sehe das beim shelly eigentlich als klaren Vorteil gegenüber sonOff. @lzimmermann hast du bei den Devices den AP deaktiviert?

@lzimmermann
Copy link

@Letztfetz ja AP ist deaktiviert

@Letztfetz
Copy link

Für die Generation 2 ist ein Update auf 1.2. verfügbar. Gebt mal bitte eine Rückmeldung ob es damit besser läuft.
Danke

@DonPosei
Copy link

Hi zusammen
Mir ist noch etwas anderes aufgefallen. Bei mir meldet sich die Shellies an, dann scheint die Verbindung geschlossen zu werden und dann kommt der Fehler "Unable to get ......"

Log eines Shellies.txt
Hier habe ich EINEN Shelly mal mitprotokolliert. Dieses Verhalten kommt aber bei allen Shellies die Probleme machen. Jeweils nach ca. 10 Sekunden (läuft da zufällig ein Timer aus???) kommen die Meldungen in der Abfolge: CONNECTED/CLOSE/FEHLER

Vielleicht kann man mit dem Hinweis das Problem irgendwie eingrenzen.

Viele Grüße
DonPosei

@ffienegit
Copy link

ffienegit commented Feb 17, 2024

Nein, auch nach Update auf 1.2.0 funktionieren Versionen > 6.4.1 nicht.
6.4.1 funktioniert aber immer noch.

2024-02-17 21:26:24.497 error [MQTT] Unable to get mqttprefix of client with id "shellyplusplugs-b0b21c196e38"
2024-02-17 21:26:24.497 error [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')

@Letztfetz
Copy link

Letztfetz commented Feb 18, 2024

Ich habe gesehen, das Du @klein0r die 6.8. veröffentlicht hast. Ist da vielleicht schon was gefixt? Brauchst Du dazu noch logs?

@klein0r was könne wir noch tun um Dich zu unterstützen?

@Dette70
Copy link

Dette70 commented Feb 21, 2024

Schließe mich an, habe auf meinem iobroker die selbe Problematik mit 14 Shelly Pro 2PM.
Habe jetzt den Adapter auf 6.4.1 downgegraded und hoffe, dass die Fehler verschwinden.

Wenn weitere Infos benötigt werden oder ich mit Logs etc. helfen kann, bitte Bescheid geben, unterstütze gern.

@Letztfetz
Copy link

Letztfetz commented Feb 21, 2024

Shelly hat die FW Version 1.2.0 zurück gezogen. Ein downgrade auf 1.1.0 oder ein updade auf 1.2.1 ist möglich. Die Beta führt den Fehler mit der fehlenden MQTT Control Box mit. Hab mir durch die FW 1.2.0 bei 3 PlugS die MQTT Funktion zerschossen. Habe eigentlich mehr von Shelly erwartet.

@Dette70
Copy link

Dette70 commented Feb 22, 2024

Meine Shelly's laufen jetzt alle mit der Firmware 1.2.1 Beta.
Mit der Shelly Adapter Version 6.4.1 sind die Fehlermeldungen tatsächlich verschwunden, downgrade hat geholfen.

@klein0r
Copy link
Contributor

klein0r commented Feb 22, 2024

Mit der Shelly Adapter Version 6.4.1 sind die Fehlermeldungen tatsächlich verschwunden, downgrade hat geholfen.

Kann halt nur niemand erklären. Und andere melden mit genau dieser Version den gleichen Fehler. Also dafür gibt's von meiner Seite erstmal keine Empfehlung, da ich das technisch nicht begründen kann.

(Der Issue hier wurde ja sogar mit 6.4.1 gemeldet, ...)

@Letztfetz
Copy link

Meine Shelly's laufen jetzt alle mit der Firmware 1.2.1 Beta. Mit der Shelly Adapter Version 6.4.1 sind die Fehlermeldungen tatsächlich verschwunden, downgrade hat geholfen.

Sind die Fehler auch beim Neustart des ioB verschwunden?

@Dette70
Copy link

Dette70 commented Feb 22, 2024

Mit der Shelly Adapter Version 6.4.1 sind die Fehlermeldungen tatsächlich verschwunden, downgrade hat geholfen.

Kann halt nur niemand erklären. Und andere melden mit genau dieser Version den gleichen Fehler. Also dafür gibt's von meiner Seite erstmal keine Empfehlung, da ich das technisch nicht begründen kann.

(Der Issue hier wurde ja sogar mit 6.4.1 gemeldet, ...)

Kein Problem, ich kann aktuell damit leben.

Was aber vieleicht bei der Fehlersuche helfen könnte, ich habe neben den 14 Shelly Pro 2PM noch einen Shelly Pro 3EM.
Bei dem gab es diese MQTT Abbrüche bisher nicht, der läuft stabil durch.

Alle im WLAN (Unifi LR AP), Installation am selben Ort.

@Dette70
Copy link

Dette70 commented Feb 22, 2024

Meine Shelly's laufen jetzt alle mit der Firmware 1.2.1 Beta. Mit der Shelly Adapter Version 6.4.1 sind die Fehlermeldungen tatsächlich verschwunden, downgrade hat geholfen.

Sind die Fehler auch beim Neustart des ioB verschwunden?

Meinst Du die MQTT Abbrüche oder welche Fehler meinst Du genau?
Es gibt beim Start tatsächlich ein paar Fehler im Shelly Adapter (kann aber nicht genau sagen, ob die vorher nicht auch da waren), danach startet aber Adapter und alle Devices verbinden sich. Solange das nur einmalig beim Start passiert, könnte ich damit leben (auch wenn es nicht schön ist).

@Letztfetz
Copy link

Genau das meine ich @Dette70 , ich habe die Fehler mit der 6.4.1 auch nur beim starten. Je mehr Shellys aktiv sind, um so länger dauert es bis die Fehlermeldungen aufhören.

@MaTr75
Copy link

MaTr75 commented Mar 17, 2024

Ich habe mir jetzt zwei ProDualCoverPM zugelegt... die brauchen mindestens die 6.4.3 und das ist anscheinend die erste Version in der dieser Fehler im Dauerbetrieb auftritt.

In der 6.4.1 habe ich den Fehler nur unmittelbar nach dem Start. Ab der 6.4.3 kommt der Fehler in unterschiedlicher Häufigkeit ständig.

Ich habe mehr als 70 Shellies am Start. Im Adapter über MQTT angebunden sind es ca. 40. Hat immer noch niemand eine, wo die Ursache zu finden ist?

Ich nutze auch UniFi-Netzwerkkomponenten (UDM Pro, AP 6 Lite, AP 6 Pro). Kann es damit zusammenhängen?

@Letztfetz
Copy link

Leider nein. Die letzten Updates seitens Shelly haben auch keine Änderung gebracht. Man lebt inzwischen mit de 6.4.1 und dem Startfehlern.

@MaTr75
Copy link

MaTr75 commented Mar 18, 2024

Warum glaubst Du denn, dass das Problem mit einem Shelly-Update behoben werden kann/muss? Mit dem Adapter 6.4.1 läuft doch alles gut (mit Ausnahme der Fehlermeldung unmittelbar nach dem Start). Ich hätte jetzt eher vermutet, das mit Adapter 6.4.3ff irgendetwas aufgenommen wurde, was dieses Problem verursacht oder verschärft.

Ich wäre ja auch gerne bei der 6.4.1 geblieben, leider werden bei ProCover Dual damit noch nicht unterstütz :-(

@megamacy
Copy link

megamacy commented Mar 30, 2024

Also bei mir hören die nicht auf. die treten permanent auf. ich sehe nur noch rote zahlen beim log wenn ich in den iobroker gehe. 6.41 downgrade ist nicht möglich, da meine plusPMmini erst ab 6.45 erkannt werden. Da Shellys meine haupt messgeräte sind, ist das leicht deprimierend, dass der adapter da nicht hinterher kommt. Pest oder Cholara ...

@Letztfetz
Copy link

Frage an @klein0r

Ist es möglich bzw. sehr aufwendig einen zweiten Adapter (ioBroker.shelly2) zu erstellen, damit die Nutzer von plusPMmini oder ProDualCoverPM den Adapter wenigstens ohne Fehlermeldung laufen lassen können? Eine weitere Instanz wird ja leider mit derselben Softwareversion wie die erste Instanz betrieben.

@Letztfetz
Copy link

Hallo.

Die Fehler sind seit gestern bei mir vollkommen verschwunden. Weil:
Ich vom PI auf eine VM gezogen bin. Dabei hab ich das komplette Image des PI in der VM wiederhergestellt und den Adapter auf die 6.8.0 gezogen. Der PI lief laut Systemanzeige immer auf min 86% max- bis 127%. Jetzt schwankt er zwischen 8% und 13%. Alle Shelly Instanzen kommen in Sekunden ohne Warnung oder Error.

Ich tippe daher auf Überlastung.

@Dette70
Copy link

Dette70 commented Apr 22, 2024

Hallo.

Die Fehler sind seit gestern bei mir vollkommen verschwunden. Weil: Ich vom PI auf eine VM gezogen bin. Dabei hab ich das komplette Image des PI in der VM wiederhergestellt und den Adapter auf die 6.8.0 gezogen. Der PI lief laut Systemanzeige immer auf min 86% max- bis 127%. Jetzt schwankt er zwischen 8% und 13%. Alle Shelly Instanzen kommen in Sekunden ohne Warnung oder Error.

Ich tippe daher auf Überlastung.

Hi,

mein Iobroker läuft seit Jahren auf einer VM, CPU liegt bei ca. 30%, Speicher aktuell bei ca. 80%. Das allein kann es eigentlich nicht sein.

Was mir aber aufgefallen ist, dass auch bei Nutzung der "alten" Adapter-Version (6.4.1) die Fehler nach ein paar Wochen wieder auftauchen.
Startet man dann den Adapter neu (nur den Adapter!), sind die Fehler nach den hier schon genannten "Start-Fehlern" wieder für Wochen verschwunden.

Da die VM Ware dabei "unberührt" bleibt, sieht es so aus, dass scheinbar im Adapter zeitabhängig Speicher oder andere Ressourcen voll/überlaufen, welche dann zu den geannten Fehlern führen.

Wäre mal spanend zu wissen, ob bei Dir die Fehler dauerhaft weg sind, oder nach gewissen Zeit doch wieder auftauchen.

Werde aber auch mal auf die 6.8.0 updaten um zu schauen, ob das Verhalten dort ggf. genauso ist.

@Letztfetz
Copy link

Werde es im Auge behalten!

@klein0r
Copy link
Contributor

klein0r commented Apr 29, 2024

Ich mache hier mal zu, weil es hier um sehr alte Versionen geht und ich das Problem bisher nicht nachstellen konnte.
Offen ist #931 mit dem gleichen Thema.

@klein0r klein0r closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No debug log attached Debug log is missing Not reproducible Unable to reproduce this issue on other systems
Projects
None yet
Development

No branches or pull requests