MQTTShims setup - feel really dump right now

Posted on
Sat May 01, 2021 11:00 am
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

MQTTShims setup - feel really dump right now

I got Home Assistant devices publishing to MQTT and Indigo devices publishing to MQTT. I can access and create interactions with all those devices using with Node-Red. However, for the life of me, can't get MQTTShims to work. The first image is the MQTT Explorer with the topic I want to use with MQTTShims.

The process I attempted, with the images in sequence, was:

- Configured the broker with the Topic Subscription
- Configure the trigger
- Configure the device

I am sure is something simple, but as I said, it's just not working for me. Please, any suggestions would be appreciated.

JP
Attachments
Screen Shot 2021-05-01 at 12.37.09 PM.png
Screen Shot 2021-05-01 at 12.37.09 PM.png (346.64 KiB) Viewed 2045 times
Screen Shot 2021-05-01 at 12.39.31 PM.png
Screen Shot 2021-05-01 at 12.39.31 PM.png (94.52 KiB) Viewed 2045 times
Screen Shot 2021-05-01 at 12.40.32 PM.png
Screen Shot 2021-05-01 at 12.40.32 PM.png (115.13 KiB) Viewed 2045 times
Screen Shot 2021-05-01 at 12.41.18 PM.png
Screen Shot 2021-05-01 at 12.41.18 PM.png (166.6 KiB) Viewed 2045 times

Posted on
Sat May 01, 2021 11:27 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

MQTT Explorer is messing with you. ;)

The topic for the pool temperature is: homeassistant/sensor/pool_temp/state
And it's a raw payload type.

Your subscription is fine.

Your Component Match is wrong because you're not accounting for the "state" component after the unique ID. Add a "state" term before the end term.

Your Unique ID location is correct as "Topic", but the value is 2 not 12. It's the third component in the topic string, and it's a zero-based count.

The State Value Location is Payload, not Topic. And it's a RAW payload (not JSON).

I think that's all.

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

Posted on
Sat May 01, 2021 1:28 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

Thank you for the quick response.

I got the Component Match fixed with your suggestion. However, I still can't get the device to work. is the "Unique Value ID" correct the way I have it? That is the only thing that you didn't mention.

Thank you again.

JP
Attachments
Screen Shot 2021-05-01 at 3.27.09 PM.png
Screen Shot 2021-05-01 at 3.27.09 PM.png (14.26 KiB) Viewed 2014 times
Screen Shot 2021-05-01 at 3.21.50 PM.png
Screen Shot 2021-05-01 at 3.21.50 PM.png (161.63 KiB) Viewed 2014 times
Screen Shot 2021-05-01 at 3.21.20 PM.png
Screen Shot 2021-05-01 at 3.21.20 PM.png (98.43 KiB) Viewed 2014 times

Posted on
Sat May 01, 2021 1:29 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

My system is afraid of you! No sooner I had sent the post, it started working.

Thank you!!

JP

Posted on
Sat May 01, 2021 1:45 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

I am the MQTT Whisperer.

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

Posted on
Sat May 01, 2021 5:07 pm
roquej offline
User avatar
Posts: 608
Joined: Jan 04, 2015
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

Sir MQTT Whisperer, another quick question.

I have configured an MQTT switch device. It all seems to work, except that the on/off is erratic when the topic is updated by another system. The topic changes and it works, sometimes.

Any way to make this more reliable?

JP

Posted on
Sat May 01, 2021 6:03 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

You need to make sure you're updating the state of the shim based on the status update from the device, NOT the command sent to it. I'd have to see all the traffic to/from that device to be more specific.

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests