Hello all,
I’ve been working with Sonoff ZigBee Bridge running Tasmota 12.4.0. My current version of openHAB is 3.3.0 Release Build. I am able to get the data I need from the connected sensors. However, I get “Executing the JSONPATH-transformation failed: Invalid path” in the log. See below. For the SNZB-02:Temp/Hum sensor, when the bridge reports the “Humidity” a [Warn] message is generated in the log for “Temperature”. The reverse is true when “Temperature” is reported. I’ve tried several things, but I cannot seem to solve my problem. Any help would be very much appreciated.
Thank you,
Bob
Connected Sensors:
SNZB-02:Temp/Hum
SNZB-03: Motion
SNZB-04: Door Sensor
SNZB-01 Button
Console output Sonoff ZbBridge
16:31:42.703 MQT: tele/ZbBridge/Temp_Bob_BedRM/SENSOR = {“ZbReceived”:{“Temp_Bob_BedRM”:{“Device”:“0xC6AB”,“Name”:“Temp_Bob_BedRM”,“Humidity”:30.03,“Endpoint”:1,“LinkQuality”:120}}}
tail -f /var/log/openhab/openhab.log /var/log/openhab/events.log
2023-03-13 17:31:43.041 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path '$.ZbReceived.Temp_Bob_BedRM.Temperature ’ in ‘{“ZbReceived”:{“Temp_Bob_BedRM”:{“Device”:“0xC6AB”,“Name”:“Temp_Bob_BedRM”,“Humidity”:30.03,“Endpoint”:1,“LinkQuality”:120}}}’
2023-03-13 17:31:43.117 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item ‘Bobs_Bedroom_Humidity’ changed from 31.1 to 30.03
Code:
UID: mqtt:topic:OH3:Temp_Bob_BedRM
label: Zb Temp-Humd Sensor Temp1
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:OH3
location: Bob Bedroom
channels:
-
id: Bob_BedRm_Temp
channelTypeUID: mqtt:number
label: Bob Bed Room Temperature
description: “”
configuration:
stateTopic: tele/ZbBridge/Temp_Bob_BedRM/SENSOR
transformationPattern: "JSONPATH:$.ZbReceived.Temp_Bob_BedRM.Temperature " -
id: Bob_Bedroom_Humidity
channelTypeUID: mqtt:number
label: Bob Bedroom Humidity
description: “”
configuration:
stateTopic: tele/ZbBridge/Temp_Bob_BedRM/SENSOR
transformationPattern: JSONPATH:$.ZbReceived.Temp_Bob_BedRM.Humidity