Handling a MQTT String payload

Posted on
Mon Sep 19, 2022 6:08 am
c64 offline
User avatar
Posts: 53
Joined: Oct 28, 2012
Location: Germany

Handling a MQTT String payload

I'm a bit lost on the approach of how to deal with a string from an MQTT message. An example of the payload is "122 - Room temperature limitation" or "114 - Heizbetrieb Komfort". How do I transfer that to an Indigo Variable, or alternatively an Indigo Device that becomes true when it sees "114" in the String? Any clues appreciated - thank you!
Attachments
Screen Shot 2022-09-19 at 2.01.51 PM.jpg
Screen Shot 2022-09-19 at 2.01.51 PM.jpg (135.52 KiB) Viewed 1176 times
Screen Shot 2022-09-19 at 1.52.00 PM.png
Screen Shot 2022-09-19 at 1.52.00 PM.png (62.57 KiB) Viewed 1176 times

Posted on
Mon Sep 19, 2022 6:36 am
FlyingDiver offline
User avatar
Posts: 7221
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Handling a MQTT String payload

I've never seen an MQTT payload like that. That's an unusual device. Unfortunately, you're not going to be able to use a Shim device for that. So you'll want your trigger to do the copy to variable directly instead of sending it to the Shims plugin. So change the trigger by unchecking the "Queue Message" box (and clear the Message Type field), then add an action to the trigger like:
Attachments
Screen Shot 2022-09-19 at 8.35.39 AM.png
Screen Shot 2022-09-19 at 8.35.39 AM.png (510.15 KiB) Viewed 1171 times

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Sep 19, 2022 7:48 am
c64 offline
User avatar
Posts: 53
Joined: Oct 28, 2012
Location: Germany

Re: Handling a MQTT String payload

Ahh! Perfect. Thank you so much :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest