Hi,
i have installed this wonderfull script, but I get no infos back in my openhab sitemap.
I use version 2.4 with the embedded broker. It works very well with my other mqtt things but not with miflora. I tested miflora on my server with mqtt-spy and it shows the desired data.
I hope someone can look at my configration files and find my error:
My mqtt-things file:
Bridge mqtt:broker:oh_embedded [ host="192.168.2.2", secure=false, clientID="openhab2" ]{
Thing topic tomate "miflora" {
Channels:
Type number : light "Lichtintensität" [ stateTopic="miflora/Tomate", transformationPattern="JSONPATH:$.light" ]
Type number : battery "Batterie" [ stateTopic="miflora/Tomate", transformationPattern="JSONPATH:$.battery" ]
Type number : temperature "Temperature" [ stateTopic="miflora/Tomate", transformationPattern="JSONPATH:$.temperature" ]
Type number : conductivity "Fruchtbarkeit" [ stateTopic="miflora/Tomate", transformationPattern="JSONPATH:$.conductivity" ]
Type number : moisture "Feuchtigkeit" [ stateTopic="miflora/Tomate", transformationPattern="JSONPATH:$.moisture" ]
}
}
My item-file:
Number:Illuminance Miflora_Tomate_Light "Licht Intensität Tomate [%d lx]" <light> { channel="mqtt:topic:oh_embedded:Tomate:light" }
Number:Dimensionless Miflora_Tomate_Battery "Batterie Stand [%d %%]" <battery> { channel="mqtt:topic:oh_embedded:Tomate:battery" }
Number:Temperature Miflora_Tomate_Temperature "Temperatur Tomate [%.1f °C]" <temperature> { channel="mqtt:topic:oh_embedded:Tomate:temperature" }
Number:Dimensionless Miflora_Tomate_Moisture "Bodenfeuchte Tomate [%d %%]" <humidity> { channel="mqtt:topic:oh_embedded:Tomate:moisture" }
and my sitemap-file:
Frame label="Mi Flora" {
Text item=Miflora_Tomate_Light label="Tomate Licht"
Text item=Miflora_Tomate_Temperature label="Tomate Temperatur"
Text item=Miflora_Tomate_Battery label="Tomate Batterie"
Text item=Miflora_Tomate_Moisture label="Tomate Bodenfeuchte"
}
Greetings Kaloschke