-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi Victron-Contributors.
I ran into the issue that I was not able to fetch "Victron Load current (/Load/I)" via ModBus from Home Assistant as it is not exposed like e.g. "Victron Battery voltage (/Dc/0/Voltage)" is.
After fiddling around connecting directly to DBus to fetch this (with an adapted version of dbusrecorder.py) I found out that adapting the attributes.csv does the trick. This was tested by temporarily remounting /dev/root in rw-mode and it works.
I am not allowed to create a branch so I can not push my local changes of attributes.csv and CCGX-Modbus-TCP-register-list.xlsx. As address I just used the next free one.
com.victronenergy.solarcharger,/Pv/I,d,A DC,777,,10,R,HANDLED IN mappings.c
com.victronenergy.solarcharger,/Load/I,d,A DC,792,int16,10,R
com.victronenergy.solarcharger,/Yield/Power,d,W,789,uint16,10,R
I hope this can make it into one of the next versions.
Have a nice day
Christian
P.S.: Thanks for being so open with the code 👍