Integrated in OH3 only the ON / OFF switch is working via Generic MQTT Device, but when I want to measure Sensor stats like the Current Power Use it shows only NULL
I opened a Channel at this Thing as Number with JSONPATH:$.ENERGY.Current it´s not working.
// things
//Sensor ENERGY
Bridge mqtt:broker:mqtt-broker [ host="192.168.1.xx", secure=false, clientID="OpenHABv3" ] {
Thing topic tasmota-powr2 "Tasmota POW R2" @ "Piwnica" {
Channels:
Type string : totalstarttime "TotalStartTime" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.TotalStartTime"]
Type number : total "Total" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Total"]
Type number : yesterday "Yesterday" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Yesterday"]
Type number : today "Today" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Today"]
Type number : period "Period" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Period"]
Type number : energypower "Power" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
Type number : apparentpower "ApparentPower" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.ApparentPower"]
Type number : reactivepower "ReactivePower" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.ReactivePower"]
Type number : factor "Factor" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Factor"]
Type number : voltage "Voltage" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage"]
Type number : current "Current" [ stateTopic="tele/tasmota-powr2/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Current"]
Did you try it? Because you selected JSONPATH above the expression field, it looks like you don’t need it in the expression field itself. See the example underneath the expression field.
I have a Sonoff POW Elite (16A Version) and i have a problem importing the MQTT …
in the telegram with SENSOR the value are not updated or in a real long timeframe…
in STATUS10 i get always the real values. but JSON looks diffrent (StatusSNS before)
I tried to change in my setup but w/o success