I have newly setup OH3 and first of all must say, I’m quite supprised how well everything seems to work out of the box. But I have a small problem I really don’t understand.
I have setup mosquitto as Mqtt Broker und let OH3 publish some item states to it via a Generic Mqtt Thing.
I’ve setup multiple channels on this thing and added a link to the related item with the follow profile. For two of the items (Aussentemperatur and Stromverbrauch) it works without problems, but I absoluetely don’t have a clue, why it’s not working for the battery status
UID: mqtt:topic:5e6eaf384c:7607ba376c
label: Mqtt Bridge
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:5e6eaf384c
channels:
- id: Mqtt_Aussentemperatur
channelTypeUID: mqtt:number
label: Außentemperatur
description: ""
configuration:
retained: true
unit: °C
min: -20
qos: 2
formatBeforePublish: "%.2f"
max: 60
commandTopic: /outdoor/temperature/state
- id: Mqtt_Stromverbrauch
channelTypeUID: mqtt:number
label: Stromverbrauch
description: ""
configuration:
commandTopic: /kostal/Verbrauch_gesamt
retained: true
unit: W
min: 0
qos: 2
max: 7500
- id: Mqtt_batterie
channelTypeUID: mqtt:number
label: Batterie
description: ""
configuration:
qos: 2
commandTopic: /kostal/battery
retained: true
The Battery item itself is of type Number:ElectricCharge. There are no log messages indicating any problem, it just does not publish the state in mqtt topic.