Hi All,
I’ve got a problem where I measure temperature, and humidity from Sonoff Dual R2, with an AM2301 connected to it.
It reads the values correctly, but when I remove power from Sonoff, OpenHAB retains the last recorder value, and doesn’t show NULL…?
I’m missing something somewhere.
Below is the things file & item config.
Please assist.
Tasmota11.things
Channels:
Type switch : power "Power Switch 11" [
commandTopic="cmnd/Tasmota11/POWER",
stateTopic="stat/Tasmota11/POWER",
on="ON",
off="OFF"
]
Type switch : reachable "Reachable" [
stateTopic = "tele/Tasmota11/LWT",
on="Online",
off="Offline"
]
Type number : temperature "Temperature" [
stateTopic="tele/Tasmota11/SENSOR",
transformationPattern="JSONPATH:$.AM2301.Temperature"
]
Type number : humidity "Humidity" [
stateTopic="tele/Tasmota11/SENSOR",
transformationPattern="JSONPATH:$.AM2301.Humidity"
]
}
Items was created in UI.
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [],
"itemType": "Switch",
"tags": [
"Point"
],
"label": "Reachable",
"category": ""
}
},
"Powerswitch1921680111_Temperature": {
"class": "org.openhab.core.items.ManagedItemProvider$PersistedItem",
"value": {
"groupNames": [],
"itemType": "Number:Temperature",
"tags": [
"Measurement",
"Temperature"
],
"label": "Temperature",
"category": ""
}
Thanks!!