victronenergy / venus

Victron Energy Unix/Linux OS
https://github.com/victronenergy/venus/wiki
591 stars 75 forks source link

MQTT connection status paths Mqtt/Bridges/* incorrect #1377

Closed wiebeytec closed 3 weeks ago

wiebeytec commented 3 weeks ago

I just saw an installation that said this on dbus:

 'Mqtt/Bridges/GXdbus/Connected': [],
 'Mqtt/Bridges/GXdbus/ConnectionStatus': 'deactivated',
 'Mqtt/Bridges/GXrpc/Connected': [],
 'Mqtt/Bridges/GXrpc/ConnectionStatus': 'deactivated',

While FlashMQ thought this:

$SYS/broker/bridge/GXdbus/connection_status Connected
$SYS/broker/bridge/GXdbus/connected 1
$SYS/broker/bridge/GXrpc/connection_status Connected
$SYS/broker/bridge/GXrpc/connected 1

The last note about the bridges in the FlashMQ log was about a reload with seemingly an unchanged config. So, that's the first thing to try.

Venus OS version v3.50~39.

mpvader commented 3 weeks ago

@wiebeytec this is still in the category “not confusing to users” so no need to hold the release over this?

wiebeytec commented 3 weeks ago

I haven't figured out yet if this can also mean it shows confusing info about actual connection problems.

wiebeytec commented 3 weeks ago

It looks like the connection status is always set to 'deactived' when issuing a reload. This means it can remove actual connection errors too. Fixing.

wiebeytec commented 3 weeks ago

Fixed.