victronenergy / venus-html5-app

HTML5 App including Javascript library that communicates with Venus OS over MQTT websockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data missing when migrated from mosquitto to flashMQ

martinbosma opened this issue · comments

Some data is missing which seems to be related to migration to flashMQ. In particular case of this customer, the ProductName is not displayed. But there are cases where more data is missing, specifically static data, like product name, capabilities, settings, etc.

A user on Community reported the following:
https://community.victronenergy.com/questions/231599/venus-os-v3202-available-for-testing.html

Under Devices, not sure what the line "Bulk charging" is. If this is the Multi's charger output (to battery, it should be labeled as such. But this is not consistent with what's happening in my system at the time of the screen shot as the Multi is charging the battery at about 900 watts.
61435-screenshot-2023-09-17-at-84033-am

If there is a custom name set, it should show this. Otherwise it should show the product name, I.e. MultiPlus .....

For above system, the custom name is indeed empty:
image

It should check for an empty custom name on the CustomName topic and show it if not empty, otherwise show the product name on the ProductName topic. Do note that can be a very long name, so it should be truncated in some/most cases.

This seems to be some kind of race condition, which was exposed by using flashmq instead of mosquitto. Using mosquitto the data comes in very slowly when the keepalive is sent. With flashmq, however, all data is received almost instantly. Not only the vebus ProductName and State items are affected, but likely more. I've seen the shore power data not being populated, while the data was available on mqtt.

I found the bug for the missing deviceName. The bug is located in the mfd-modules and prevents updates for the latest data for inverter-chargers.

I made a fix thats coming next week (almost done). I have to double check if this also fixes stale state data (bulk charging) and incorrect shore power data.

Scope changed slightly, I will also compare the html5 app with mosquitto vs flashmq to see differences in the UI. I will discuss these differences with @martinbosma and fix them in this ticket.