victronenergy / dbus_modbustcp

Modbustcp server, that allows for example PLCs to get data from the D-Bus.
MIT License
38 stars 15 forks source link

Clarification of scale factor #27

Open sfstar opened 1 year ago

sfstar commented 1 year ago

Hello and thank you for opening the modbustcp server code to the community. I have a question regarding register 4202.

image

As can be seen in the image the definition of the /Dc/1/Voltage states that the value returned should have a scaling factor of 100 However the value returned seems to require a scaling factor of 10 instead. This matches the definition in attributes.csv: com.victronenergy.dcsource,/Dc/1/Voltage,d,V DC,4202,int16,10,R Is the XLSX in the wrong here or is the attributes.csv incorrect?

Link to the issue on my repository: https://github.com/sfstar/hass-victron/issues/27

sfstar commented 6 months ago

@izak, could you perhaps confirm whether the decoding scale value in the xlsx should be updated here?