MQTTShims setup - feel really dump right now

User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

MQTTShims setup - feel really dump right now

Post by roquej »

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 2293 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 2293 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 2293 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 2293 times
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by FlyingDiver »

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
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by roquej »

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 2262 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 2262 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 2262 times
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by roquej »

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

Thank you!!

JP
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by FlyingDiver »

I am the MQTT Whisperer.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
User avatar
roquej
Posts: 628
Joined: Sun Jan 04, 2015 4:56 pm
Location: South Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by roquej »

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
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: MQTTShims setup - feel really dump right now

Post by FlyingDiver »

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
Post Reply

Return to “MQTT”