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]: Shelly 3EM Pro "Unable to get mqttprefix of client" #1041

Open
3 tasks done
andiweli opened this issue Sep 14, 2024 · 1 comment
Open
3 tasks done

[Bug]: Shelly 3EM Pro "Unable to get mqttprefix of client" #1041

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

Comments

@andiweli
Copy link

andiweli commented Sep 14, 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

Shelly 3EM Pro

Shelly firmware version

20240822-121054/1.4.3-g143ff62

Protocol

MQTT

The problem

Permanent log errors from my Shelly Pro 3EM.
I have two adapters running, instance "shelly.0" connects to my Shelly Plug S, instance "shelly.1" connects with my Shelly Pro 3EM (via MQTT).

It mostly works, but every now and then I get this issue every few minutes all day long... 100 errors or more.
Adapter reconnects all the time.

Shelly Plugs and 3EM have fixed IPs.
Plugs and 3EM are available via IP and frontend.

1
2

iobroker.current.log (in debug mode!)

2024-09-14 15:28:44.887 - error: shelly.1 (1393) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:28:44.888 - error: shelly.1 (1393) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:28:45.336 - info: host.RasPi-SmartHome stopInstance system.adapter.homekit-controller.0 (force=false, process=true)
2024-09-14 15:28:45.428 - info: host.RasPi-SmartHome stopInstance system.adapter.homekit-controller.0 send kill signal
2024-09-14 15:28:45.995 - info: host.RasPi-SmartHome instance system.adapter.homekit-controller.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2024-09-14 15:28:47.097 - info: host.RasPi-SmartHome stopInstance system.adapter.shelly.1 (force=false, process=true)
2024-09-14 15:28:47.158 - info: host.RasPi-SmartHome stopInstance system.adapter.shelly.1 send kill signal
2024-09-14 15:28:47.729 - info: host.RasPi-SmartHome instance system.adapter.shelly.1 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2024-09-14 15:28:49.494 - info: host.RasPi-SmartHome instance system.adapter.homekit-controller.0 in version "0.5.10" (non-npm: Apollon77/ioBroker.homekit-controller) started with pid 57061
2024-09-14 15:28:51.612 - info: host.RasPi-SmartHome instance system.adapter.shelly.1 in version "8.1.1" (non-npm: iobroker-community-adapters/ioBroker.shelly#5c4bb3f94b74cd744e51a7e230b317ab21c99039) started with pid 57073
2024-09-14 15:29:10.441 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:29:10.444 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:29:42.984 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:29:42.987 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:30:22.874 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:30:22.875 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:31:31.689 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:31:31.690 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:41:27.339 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:41:27.340 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"
2024-09-14 15:41:50.451 - error: shelly.1 (57073) [MQTT] Error in function setMqttPrefixHttp (Gen 1) for (undefined / undefined / undefined): TypeError: Cannot read properties of undefined (reading 'replace')
2024-09-14 15:41:50.452 - error: shelly.1 (57073) [MQTT] Unable to get mqttprefix of client with id "shellypro3em-34987a453838"

Version of nodejs

20.17.0

Version of ioBroker js-controller

6.0.11

Version of adapter

8.1.1

@andiweli andiweli added the bug Something isn't working label Sep 14, 2024
Copy link

Thanks for reporting a new issue @andiweli!

  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