MQTT subscribe to selectable Shelly

Hi, there!

I have a real Shelly with its original name like shelly2pm-12345678 and I have a virtual Shelly shelly2pm only present in Node-RED.

I prepared the UI so the user can select one or another to send the messages to.

Now I want to prepare the UI for unknown, future Shelly2pm in the field. Suppose this is Shelly shelly2pm-abcdefg.

Changing the name of Shelly shelly2pm-abcdefg in the field to one of the previously defined names is not an option (name clashes ahead and difficult to achieve!).

The user in the field is not supposed to edit flows and add shelly2pm-abcdefg or modify hard coded entries.

Did you come across this problem and how did you solve it?

It looks like I cannot solve this with standard MQTT nodes. There was a discussion once upon a time about if or when to change that. And there is 4 yrs old, not-so-extensivly-documented node mqtt-in-dynamicsub . But I do not want to introduce fragile, brittle dependencies.

Any help and/or information is appreciated.

Cheers, Uwe

Yes you can.

Brilliant. Missed that. Thanks, Uwe

always pays to check the built in help :wink: :

I did. For some reason I am running a localised Node-RED (German). Documentation in German does not have it ... I will have to change language settings.

Ahha. Sorry.

An pull request for translations are always welcome :angel:

1 Like

Thanks very much for this.

Please remember to sign the EasyCLA so we can review and merge.