victronenergy / venus-html5-app

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

Add support for AC meters #228

Open martinbosma opened 1 year ago

martinbosma commented 1 year ago

Feature request from community: https://community.victronenergy.com/questions/177768/nmea-2000-2.html

With the new design, we would also like to add support for grid meters, as not all systems have a Multi/Quattro, but do have a grid meter installed. This would apply to the shore/grid input and possibly also to the generator.

The paths that are related can be used find out which service is responsible for the data. I assume VRM is using similar logic to populate the AC input (and generator?) blocks.

com.victronenergy.system:
Ac/In/[0,1]/Connected       <-- 0=disconnected, 1=connected
Ac/In/[0,1]/DeviceInstance  <-- Device instance, typically used for MQTT
Ac/In/[0,1]/ServiceName     <-- The full dbus service name
Ac/In/[0,1]/ServiceType     <-- E.g. vebus, grid, etc. typically used for MQTT
Ac/In/[0,1]/Source          <-- 0=not used, 1=grid, 2=generator, 3=shore

Example:

Ac/In/0/Connected = 1
Ac/In/0/DeviceInstance = 276
Ac/In/0/ServiceName = com.victronenergy.vebus.ttyS4
Ac/In/0/ServiceType = vebus
Ac/In/0/Source = 2

Ac/In/0/Connected = 1
Ac/In/0/DeviceInstance = 31
Ac/In/0/ServiceName = com.victronenergy.grid.cgwacs_ttyUSB0_mb2
Ac/In/0/ServiceType = grid
Ac/In/0/Source = 3

Generators A generator is typically connected to the AC input of a Multi/Quattro. This would be reflected by com.victronenergy.system/Ac/In/n/*. This would also be the case with a Fischer Panda generator. However, in that particular case, we could prefer to take the AC readings from the generator itself, rather than the Multi/Quattro.

Saharel001 commented 1 year ago

Any news about this Feature?

fred-bict commented 8 months ago

Any news?

martinbosma commented 8 months ago

@fred-bict I'm afraid not. This is for the longer term, don't know when.