Replies: 5 comments
-
|
Good that you are finding the driver useful. Always good to hear feedback. As you raised an issue is there something you need help with? |
Beta Was this translation helpful? Give feedback.
-
|
Hi, thanks for your reply. Perhaps the only "issue" is for you to paste the addition to service.yml to add the support for batteries to the next release, if you consider it is worth. Here is the data with the correct indentation. For the context, in my case this allows me to integrate my Renogy 12V 400Ah battery with the Victron system. I am using the Renogy BT to MQTT scripts from https://github.com/cyrils/renogy-bt to send the data to my MQTT broker and Home Assistant, and then publish the battery information to dbus-mqtt-devices to get it to the Cerbo GX. |
Beta Was this translation helpful? Give feedback.
-
|
I very much appreciate and welcome contributions from the community, however there are number of reasons why I can not add this to the next release. Please let me explain as I absolutely do not want to discourage contributions but I do have to manage contributions in a controlled way so as not to destabilise the driver for other users.
As I said, I absolutely want to encourage contributions from the community but I want to do it in a controlled way. I think the best way to share this with other users for now is to start using the project wiki to share WIP contributions and get more user feedback. I'll look into setting this up. |
Beta Was this translation helpful? Give feedback.
-
|
would you be able to elaborate how you got the battery to register as a device? Modbus/TCP is now hitting me with:
Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
|
Hi boumbah, registering the battery as a device is the same as registering another sensor such as a temperature sensor or a grid. Perhaps try registering a simple and officially supported sensor before attempting supporting a battery. Bear in mind that through dbus-mqtt-devices, it is through mqtt you are registering a device and pushing sensor updates, not through modbus. Also, you have to restart dbus-mqtt-devices after having altered the services.yml file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for your great module. I'm using it to implement support of several sensors in my solar system and I am almost abusing of it.
I've added battery support with the following addition in service.yml. I could not test everything, but Soc, Voltage, Current, temperature, max charge voltage, max charge and discharge current and power are correctly reported.
battery:
ProductId:
default: 65535
CustomName:
default: "My MQTT battery"
persist: true
ErrorCode: # https://www.victronenergy.com/live/mppt-error-codes
description: "0=No Error"
default: 0 # not showing in in console???
DeviceType:
description: ""
persist: true
default: 0
min: 0
max: 2
Dc/0/Voltage:
description: "V DC"
format: "{} V"
Dc/0/Current:
description: "A DC"
format: "{} A"
Dc/0/Power:
description: "W"
format: "{} W"
Dc/0/Temperature:
description: "C"
Dc/0/MidVoltage:
description: "V DC"
format: "{} V"
Dc/0/MidVoltageDeviation:
description: "V DC"
format: "{} V"
Dc/1/Voltage:
description: "V DC"
format: "{} V"
ConsumedAmphours:
description: "Ah"
format: "{} Ah"
Soc:
description: "%"
TimeToGo:
description: "s"
Info/MaxChargeCurrent:
description: "A DC"
Info/MaxDischargeCurrent:
description: "A DC"
Info/MaxChargeVoltage:
description: "V DC"
Info/BatteryLowVoltage:
description: "V DC"
Info/ChargeRequest:
description: ""
default: 0
min: 0
max: 1
Alarms/Alarm:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowStarterVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighStarterVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowSoc:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighChargeCurrent:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighDischargeCurrent:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighCurrent:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/CellImbalance:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/InternalFailure:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighChargeTemperature:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowChargeTemperature:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowCellVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/LowTemperature:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/MidVoltage:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/Contactor:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/BMSCable:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/HighInternalTemperature:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Alarms/FuseBlown:
description: "0=OK 0; 1=Warning 1; 2=Alarm 2"
default: 0
min: 0
max: 2
Settings/HasTemperature:
description: ""
default: 0
min: 0
max: 1
Settings/HasStarterVoltage:
description: ""
default: 0
min: 0
max: 1
Settings/HasMidVoltage:
description: ""
default: 0
min: 0
max: 1
Relay/0/State:
description: ""
default: 0
Beta Was this translation helpful? Give feedback.
All reactions