iobroker-community-adapters / ioBroker.shelly

Integrate your Shelly devices into ioBroker via MQTT or CoIoT
Other
166 stars 66 forks source link

Feature request: do not use mqtt wilcards (#+) as separator in device name. #668

Closed alexmyself closed 2 years ago

alexmyself commented 2 years ago

Shelly device

Shelly plus 1 PM

Protocol (CoAP / MQTT)

mqtt

The problem

My device appears in iobroker Objects tab as: shelly.0.shellyplus1pm#3c610572ace0#1

This name is not usable in the iobroker mqtt adapter (which exposes iobroker objects/states as mqtt topics) because the mqtt syntax does use '#' as a wildcard, so it is impossible to subscribe to the topic 'shelly/0/shellyplus1pm#3c610572ace0#1' to get the states forwarded as mqtt messages.

Version of nodejs

16.17

Version of ioBroker js-controller

6.2.22

Version of Adapter

6.0.0

Operating system running ioBroker

Docker on raspberry pi 4 with 64 bit Debian bullseye

Checklist of files to include below

Additional information & file uploads

Adapter mqtt 4.0.7

iobroker.2022-09-20.log

klein0r commented 2 years ago

Sorry, I will not change the default objectIDs of the devices, since that would invalidate thousands of scripts of other users.

Solution: Create an alias of the states without a # in the ID.