Hi,
I just updated my OH2 environment to OH3 which was so far a smooth transition.
Everything works fine but a MQTT broker connection to a Victron Cerbo device freezes after some while and linked items don’t get updates anymore (which usually come every second).
When I then edit the broker think in the GUI without changing anything the connection works again for about 2 hours.
Here’s the config of the broker connection:
The log says everything is fine:
2021-02-23 08:26:11.300 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to '192.168.178.44' with clientid f6116364-3e7a-497b-a5f2-9e395760db1d
2021-02-23 08:26:11.405 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:3f20e560:ForwardEnergy to topic: N/d41243b50f6b/grid/30/Ac/Energy/Forward
2021-02-23 08:26:11.405 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:3f20e560:BatterySoC to topic: N/d41243b50f6b/battery/512/Soc
2021-02-23 08:26:11.407 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:3f20e560:L1Power to topic: N/d41243b50f6b/grid/30/Ac/L1/Power
2021-02-23 08:26:11.433 [INFO ] [b.core.model.script.Power_Monitoring] - Updating the daily power consumption to 3.2000000000000455 kWh
2021-02-23 08:26:11.439 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:3f20e560:WaterTankLevel to topic: N/d41243b50f6b/tank/20/Level
2021-02-23 08:26:11.449 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Subscribed channel mqtt:topic:3f20e560:GridLost to topic: N/d41243b50f6b/vebus/288/Alarms/GridLost
I already played around with the Reconnect time and the Heartbeat but without success.
I have a second MQTT broker thing connected to Mosquitto which seems to work all the time.
Any idea what could be the reason?
Update:
The items again were frozen, then I edited the thing without changes and then the broker connection is alive again:
2021-02-23 10:43:04.105 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:broker:f6c7693758' changed from ONLINE to OFFLINE
2021-02-23 10:43:04.110 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:topic:3f20e560' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2021-02-23 10:43:04.111 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'mqtt:topic:3f20e560' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
It’s not an issue with the broker itself because a “mosquitto_sub -h 192.168.178.44 -t “N/d41243b50f6b/#” -v” from the same machine works all the time.