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

[Bug]: GEN2 wrong IPs, no docker but xen bridge! #1052

Open
3 tasks done
effenb0rg opened this issue Sep 30, 2024 · 1 comment
Open
3 tasks done

[Bug]: GEN2 wrong IPs, no docker but xen bridge! #1052

effenb0rg opened this issue Sep 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@effenb0rg
Copy link

effenb0rg commented Sep 30, 2024

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 (use the search!)
  • This issue is not described in the adapter documentation / FAQ (read the docs!)

Shelly device

shellyplus1, shelly1mini, shellyplusht

Shelly firmware version

1.4.2-gc2639da shellyplus1

Protocol

MQTT

The problem

debian xen dom0 bullseye host mit der IP 192.168.2.203 (xenbridge), gleichzeitig auch DHCP-server.
iobroker debian bookworm als xen domU mit der IP 192.168.2.23.
shellyplus1 (Beispiel) mit static_IP 192.168.2.139 in UNIFI-Mesh.

Es sind verschiedene shelly Geräte der GEN1 und GEN2 alle über mqtt in iobroker eingebunden.
GEN1 Geräte funktionieren einwandfrei.
GEN2 Geräte verbinden erfolgreich zu iobroker, erscheinen dort aber nach ca. 1 Minute als offline und sind nicht mehr durch iobroker steuerbar; sind aber über ihre IP direkt erreichbar.
Alle GEN2 Geräte werden in iob unter device, WiFi, hostname mit der IP des xen Hosts ( 192.168.2.203) eingetragen. Entsprechend erscheinen in den logs Fehlermeldungen das Geräte unter 192.168.2.203 nicht erreichbar sind.
Wenn ich den Datenpunkt hostname manuell in die reale IP (z.B. 192.168.2.139) ändere sind die Geräte in iob wieder verfügbar und können fehlerfrei angesteuert werden. Leider ändert iob die IP wieder zurück auf die falsche IP wenn z.B. der shelly rebootet oder Verbindung verloren hatte.
Getestet wurden die shelly sowohl mit statischer IP als auch DHCP. Getestet wurde auch mit/ohne aktiven BLE scripts.
Shellys bleiben aber normal im netz erreichbar, und liefern auch über http://$SHELLY/rpc die richtige IP aus:

chlu@iobroker:~$ curl -X POST -d '{"id":1, "method":"Shelly.GetStatus"}' http://${SHELLY}/rpc
{"id":1,"src":"shellyplus1-10061cd37768","result":{"ble":{},"cloud":{"connected":true},"input:0":{"id":0,"state":false},"mqtt":{"connected":true},"script:1":{"id":1,"running":false,"mem_free":15848},"script:2":{"id":2,"running":true,"mem_used":9338,"mem_peak":10724,"mem_free":15848},"switch:0":{"id":0, "source":"loopback", "output":false,"temperature":{"tC":39.1, "tF":102.4}},"sys":{"mac":"10061CD37768","restart_required":false,"time":"07:17","unixtime":1727673463,"uptime":5973,"ram_size":268476,"ram_free":117608,"fs_size":393216,"fs_free":86016,"cfg_rev":31,"kvs_rev":0,"schedule_rev":6,"webhook_rev":0,"available_updates":{},"reset_reason":3},"wifi":{"sta_ip":"192.168.2.139","status":"got ip","ssid":"xyz","rssi":-56},"ws":{"connected":false}}}

thx

iobroker.current.log (in debug mode!)

No response

Version of nodejs

v20.17.0

Version of ioBroker js-controller

6.0.11

Version of adapter

v8.2.1

@effenb0rg effenb0rg added the bug Something isn't working label Sep 30, 2024
Copy link

Thanks for reporting a new issue @effenb0rg!

  1. Please make sure your topic is not covered in the documentation
  2. Please attach all necessary log files (in debug mode!), screenshots and other information to reproduce this issue
  3. Search for the issue topic in other/closed issues to avoid duplicates!

Otherwise this issue will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant