victronenergy / venus-html5-app

HTML5 App including Javascript library that communicates with Venus OS over MQTT websockets
MIT License
102 stars 32 forks source link

Wrong inverter/charger data shown if there are multiple VE.Bus systems #338

Open martinbosma opened 1 year ago

martinbosma commented 1 year ago

If there are multiple VE.Bus systems present, the Marine app uses data from the wrong system. This applies to the AC input, AC load and device controls (mode and input current limit).

The logic to select the correct VE.Bus system should not be determined by the Marine app itself, but should be taken from the system service (system/0/VebusInstance) instead. That is the only way to assure that the VenusOS normal interface, VRM and the Marine app are using the same VE.Bus instance.

mman commented 2 weeks ago

@martinbosma I have been in VE.Bus selection code recently and can fix this if you give me a test system to validate the fix.

martinbosma commented 2 weeks ago

Let me see if I can find a test system of set one up for you.