- Platform information:
- Hardware: Proxmox VM
- OS: Openhab 3 - Docker
- openHAB version: 3
hi there. coming from openhab 2.5 and mqtt1, try to bring this to OH3… but actually i have no idea anymore can you help me for this?
.things
Bridge mqtt:broker:mosquitto "MQTT server" [host="10.0.20.130", clientID="OpenHAB2 MQTT Server"]
Thing mqtt:topic:PowWohnzimmer "PowWohnzimmer Power" (mqtt:broker:mosquitto) {
Channels:
Type number : Power [stateTopic="tele/PowWohnzimmer/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power"]
}
MQTT Server and PowWohnzimmer Power shows ONLINE in OH3
.items
Number:Power Power "Power [%.1f W]" {channel="mqtt:topic:tele:PowWohnzimmer:Power"}
mosquitto is working, check with Tasmota Device Manager and MQTT.fx
Logs from MQTT.fx:
[19:36:20] tele/PowWohnzimmer/SENSOR {"Time":"2021-01-01T19:37:50","ENERGY":{"TotalStartTime":"2018-12-08T09:53:14","Total":365.618,"Yesterday":0.512,"Today":0.288,"Period":0,"Power":10,"ApparentPower":32,"ReactivePower":30,"Factor":0.30,"Voltage":221,"Current":0.143}}
[19:36:50] tele/PowWohnzimmer/STATE {"Time":"2021-01-01T19:38:20","Uptime":"0T05:37:24","Vcc":3.219,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"WirelessAP02","BSSId":"E0:63:DA:CA:97:4A","Channel":6,"RSSI":84,"LinkCount":1,"Downtime":"0T00:00:03"}}
[19:36:50] tele/PowWohnzimmer/SENSOR {"Time":"2021-01-01T19:38:20","ENERGY":{"TotalStartTime":"2018-12-08T09:53:14","Total":365.618,"Yesterday":0.512,"Today":0.288,"Period":0,"Power":11,"ApparentPower":33,"ReactivePower":31,"Factor":0.33,"Voltage":221,"Current":0.149}}
[19:37:20] tele/PowWohnzimmer/STATE {"Time":"2021-01-01T19:38:50","Uptime":"0T05:37:54","Vcc":3.229,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER":"ON","Wifi":{"AP":1,"SSId":"WirelessAP02","BSSId":"E0:63:DA:CA:97:4A","Channel":6,"RSSI":84,"LinkCount":1,"Downtime":"0T00:00:03"}}
[19:37:20] tele/PowWohnzimmer/SENSOR {"Time":"2021-01-01T19:38:50","ENERGY":{"TotalStartTime":"2018-12-08T09:53:14","Total":365.618,"Yesterday":0.512,"Today":0.288,"Period":0,"Power":10,"ApparentPower":32,"ReactivePower":30,"Factor":0.31,"Voltage":221,"Current":0.143}}
Logs from OH3:
19:07:29.412 [INFO ] [o.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '10.0.20.130' with clientid OpenHAB2 MQTT Server
19:07:29.447 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:mosquitto' changed from OFFLINE to ONLINE
19:07:29.462 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:topic:PowWohnzimmer' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
the states from the tasmota seams not to come here?
also the Item in OH3 shows “NULL” as value.
im stuck and don’t know how i can now debug/troubleshoot this…
thanks for reading