I have a few MQTT things working for my pool but am now trying to get notifications of when the heater is running. (See MQTT Explorer Pic below)
The Heater status is both in the heatMode and heatStatus topics, but I'm interested in the heatMode topic at the moment. When the heater is running, the "val":1, field is "1", and the "name":"heater" field is "heater". When off, those two fields are "val":0 and "name":"off"
1. I have a connector and it is working for other devices.
2. From the MQTT Explorer, I have copied and pasted, and added this topic in the subscription field to the connector:
Code: Select all
0:easytouch2-4/state/temps/bodies/1/pool/heatMode3. I've created a new Shim device, the Broker is the one I have set up for other pool devices, and the Message Type is the same as the other Shim devices for the pool.
4. The Unique ID Location is set as a "Topic Component"
5. Based on the MQTT Explorer, I'm counting from zero and my Topic Field seems like it shout be "6".
6. My Unique ID Value is "heatMode"
7. State Value Location = Payload Fields, Payload Type = JSON, and Payload Key = "name" (including quotes)
8, For the On Value field, I have "heater" (including quotes) (hoping to capture either of the two options being "heater", or "off")
9. Sensor Type is Generic, as Power On/Off or "Motion Sensor" don't seem to apply.
Once this device has been set up, and the heater is running, I restart both the MQTT Connector and Shims plugins, so they will update.
But alas, this doesn't seem to be working.
I've been able to get some other Shim Devices working for the pool, but the data for those isn't buried in a data string like the data I'm interested in here, so I'm guessing that's where my problem is with this.... I'm not correclty defining the data field that I'm trying to access. I'm also halfway assuming that I don't have the Payload Key set up right, and think I may need to include that whole data string, Also thinking the double brackets matter here as well, but I am nevertheless lost on this one.
And the Shim device in Indigo is grayed out, just more indications that I don't have this set up right.
If anyone has any ideas of where I've gone wrong, help is always appreciated!