iobroker-community-adapters / ioBroker.shelly

Integrate your Shelly devices into ioBroker via MQTT or CoIoT
Other
158 stars 64 forks source link

Disable mqtt topic prefix warning when topic isn't available via api (for older devices) #661

Closed Fortune95 closed 2 years ago

Fortune95 commented 2 years ago

Shelly device

Shelly 4 Pro - SHSW-44

Protocol (CoAP / MQTT)

MQTT

The problem

After updating to 6.1.0, i get a warning message for the shelly 4 pro. 2022-09-04 09:55:15.660 warn [Mqtt.topicPrefix] 192.168.xx.xx (shelly4pro / shelly4pro-0624E6 / SHSW-44#0624E6#1): Configured mqtt topic prefix and actual topic prefix do not match. Please check configuration

Version of nodejs

v16.17.0

Version of ioBroker js-controller

4.0.23

Version of Adapter

6.1.0

Operating system running ioBroker

Linux Debian GNU/Linux 11 (bullseye)

Checklist of files to include below

Additional information & file uploads

No response

klein0r commented 2 years ago

Ok, but what do you expect now? 😉 Please provide more information about the device configuration, the configured topic and share the debug log

Fortune95 commented 2 years ago

iobroker.2022-09-04.log

Fortune95 commented 2 years ago

Device_Config

Fortune95 commented 2 years ago

Thanks for your quick reply! :-) The warning message is only displayed for this one device. There have been no firmware updates for this " legacy" Shelly type for quite some time. In the objects of the device there is also no topicprefix.

LS_2022-09-04_133757

klein0r commented 2 years ago

Ah, thanks. Will fix that in the next version. Which firmware version is installed on the Pro 4?

Fortune95 commented 2 years ago

LS_2022-09-04_134149

Fortune95 commented 2 years ago

Thank you!

AlexanderSch90 commented 2 years ago

Same with shellyplus1pm Firmware 0.10.3 and 0.11.0-beta3

shelly.0 | 2022-09-07 10:56:16.527 | warn | [Mqtt.statusNotifications] 10.4.30.64 (shellyplus1pm / shellyplus1pm-3c6105799a20 / shellyplus1pm#3c6105799a20#1): "General Status Notifications" are disabled. Enable to get all information.
-- | -- | -- | --
shelly.0 | 2022-09-07 10:56:16.526 | warn | [Mqtt.topicPrefix] 10.4.30.64 (shellyplus1pm / shellyplus1pm-3c6105799a20 / shellyplus1pm#3c6105799a20#1): Configured mqtt topic prefix and actual topic prefix do not match. Please check configuration