[X] This issue is still present in the current beta version of this adapter
[X] There is no other (open) issue with the same topic (use the search!)
[X] 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.
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"
I'm sure that
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.
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