Hello everyone. I bought myself this sensor and have some trouble adding the soil_moisture channel properly. I am using ZigBee2MQTT and managed to add the battery channel, but the moisture channel always gives me the wrong data.
Thing mqtt:topic:Modkam "Z2M: Modkam" (mqtt:broker:823098e4c9) {
Channels:
Type number : moisture "Bodenfeuchtigkeit" [stateTopic="zigbee2mqtt/Modkam", transformationPattern="JSONPATH:$.moisture", formatBeforePublish="%s%%"]
Type number : battery "Akkustand" [stateTopic="zigbee2mqtt/Modkam", transformationPattern="JSONPATH:$.battery", formatBeforePublish="%s%%"]
}
I am sure the problem is the transformationPattern. I don’t know which one to use, to get the soil_moisture. I tried
transformationPattern="JSONPATH:$.moisture"
transformationPattern="JSONPATH:$.soil_moisture"
transformationPattern="JSONPATH:$.soil"
Hopefully someone can help me.
MQTT.fx is giving me this information when the moisture sensor sends an update.