- Code: Select all
May 3, 2021 at 9:39:44 AM
MQTT Shims Error outside thermometer: JSON decode error for uid_location = payload, aborting
Here's the template:
- Code: Select all
MQTT Shims
message_type: '##therm##'
props:
SupportsSensorValue: true
shimSensorPrecision: '1'
shimSensorSubtype: Temperature-F
state_location: payload
state_location_payload_key: temperature_F
state_location_payload_type: json
state_location_topic_field: '0'
uid_location: payload
uid_location_payload_key: model
uid_location_topic_field: '0'
trigger:
match_list: '["Match: thermometer"]'
queueMessage: true
type: shimValueSensor
Here's the payload and topic, logged by both the connector and the shim:
- Code: Select all
May 3, 2021 at 9:47:13 AM
MQTT Connector Debug MQTT Broker: processReceivedMessage: sensors/thermometer, payload: {"time":"2021-05-03 09:47:11","model":"FT-004B","temperature_F":69.8}
MQTT Shims Debug message_handler: MQTT message ##therm## from MQTT Broker
MQTT Shims Debug outside thermometer: processMessages: '##therm##' sensors/thermometer -> {"time":"2021-05-03 09:47:11","model":"FT-004B","temperature_F":69.8}
MQTT Shims Error outside thermometer: JSON decode error for uid_location = payload, aborting
And here's the aggregator and topic info from the connector (there is none, but it works with the 0.4.4 version of Shims; I am running 0.4.10 of the Connector):
- Code: Select all
MQTT Connector MQTT Broker: Current topic subscriptions:
MQTT Connector MQTT Broker: sensors/# (0)
MQTT Connector No Aggregators defined
Thanks.