Am I right in thinking all I need to do is add a channel with the correct information
input
tele/WaterHeater/SENSOR
output
{“Time”:“2021-08-30T13:22:20”,“DS18B20”:{“Id”:“3C01D6079428”,“Temperature”:30.8},“TempUnit”:“C”}
Any help appreciated
Am I right in thinking all I need to do is add a channel with the correct information
input
tele/WaterHeater/SENSOR
output
{“Time”:“2021-08-30T13:22:20”,“DS18B20”:{“Id”:“3C01D6079428”,“Temperature”:30.8},“TempUnit”:“C”}
Any help appreciated
How is openhab communicating with your sonoff device mate? Have you got mosquitto downloaded?
yes bud
this is my thing file
Thing mqtt:topic:pooltemp "Pool Temp" (mqtt:broker:mosquitto) @ "MQTT" {
Channels:
Type number : temperature "Temperature" [stateTopic="tele/pooltemp/SENSOR", transformationPattern="JSONPATH:$.DS18B20.Temperature"]
}
items file
Number Pool_Temperature "Pool Temperature [%.1f °C]" <temperature> (gGarden) { channel="mqtt:topic:mosquitto:pooltemp:temperature" }
Thanks will adapt and try when I get back
you have to manually link them in your openhab UI, find the thing and add the item to the channel
Finally got around to sorting it thanks for your help