Unable to subscribe to a topic with a comma in its name
Unable to subscribe to a topic with a comma in its name
I have some topics that have names that contain commas. When I attempt to subscribe to one of those topics, I get an error and it erases the entire subscribed topic list. I suspect internally the plugin is using commas to separate topic names, and this breaks when the topic name contains a comma.
- FlyingDiver
- Posts: 7312
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Unable to subscribe to a topic with a comma in its name
Example?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7312
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Unable to subscribe to a topic with a comma in its name
And which plugin are you actually using? Connector?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Unable to subscribe to a topic with a comma in its name
MQTTConnector
Try to add subscription to topic "sensor/emvue/261535-1,2,3" gives this error:
Then erases all the subscribed topics from the list.
Try to add subscription to topic "sensor/emvue/261535-1,2,3" gives this error:
Code: Select all
Error (client) illegal string for list ID subscriptions (ignoring): 0:sensor/emvue/261535-1,2,3
- FlyingDiver
- Posts: 7312
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Unable to subscribe to a topic with a comma in its name
I'm not using commas as a delimiter, but something else is choking on it. I'll have to look into it.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Unable to subscribe to a topic with a comma in its name
Thanks.
I am working around this by subscribing to "sensor/emvue/#" but that's a ton of messages the plugin is now processing for no reason. Background is I am publishing energy usage from Emporia devices every 15 seconds, and I have a lot of devices. Their smart plugs have that "-1,2,3" at the end of their device names.
I am working around this by subscribing to "sensor/emvue/#" but that's a ton of messages the plugin is now processing for no reason. Background is I am publishing energy usage from Emporia devices every 15 seconds, and I have a lot of devices. Their smart plugs have that "-1,2,3" at the end of their device names.
- FlyingDiver
- Posts: 7312
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Unable to subscribe to a topic with a comma in its name
Looks to me like this is some sort of bug or limitation in the indigo.Dict class. It's erroring before it even gets to my code.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
- FlyingDiver
- Posts: 7312
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Unable to subscribe to a topic with a comma in its name
Release 2023.2.1 in plugin store. See viewtopic.php?f=316&t=27797
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Unable to subscribe to a topic with a comma in its name
That fixed it for me. Thank you so much for the quick turnaround!