From dd9f50747275b48d08731c2cd25c67d8eea769ff Mon Sep 17 00:00:00 2001 From: iRateD1703 <139787748+iRateD1703@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:50:23 +0200 Subject: [PATCH 1/4] Update const.py Updated data types for solarcharger_yield_power and solarcharger_yield_user to UINT32 with MOdbus TCP register list 3.60 --- custom_components/victron/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/victron/const.py b/custom_components/victron/const.py index 61d21ec..8e2cb24 100644 --- a/custom_components/victron/const.py +++ b/custom_components/victron/const.py @@ -1090,9 +1090,9 @@ class generic_mppoperationmode(Enum): dataType=UINT16, entityType=TextReadEntityType(generic_charger_errorcode), ), - "solarcharger_yield_power": RegisterInfo(789, UINT16, UnitOfPower.WATT, 10), + "solarcharger_yield_power": RegisterInfo(792, UINT32, UnitOfPower.WATT, 10), "solarcharger_yield_user": RegisterInfo( - 790, UINT16, UnitOfEnergy.KILO_WATT_HOUR, 10 + 3728, UINT32, UnitOfEnergy.KILO_WATT_HOUR, 10 ), "solarcharger_mppoperationmode": RegisterInfo( register=791, From e93dc760d85756e73389de9c198672d25ee2d430 Mon Sep 17 00:00:00 2001 From: iRateD1703 <139787748+iRateD1703@users.noreply.github.com> Date: Mon, 20 Oct 2025 11:59:07 +0200 Subject: [PATCH 2/4] Updated to v 3.60 Updated to Modbus TCP register v 3.60 which includes appropriate datatypes for user yield and user power --- .../CCGX-Modbus-TCP-register-list-3.50.xlsx | 108 ++++++++++++------ 1 file changed, 75 insertions(+), 33 deletions(-) diff --git a/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx b/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx index 471d36c..dd6808d 100644 --- a/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx +++ b/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx @@ -29,7 +29,7 @@ com.victronenergy.system Battery Power (System) 842 int16 1 -32768 to 32767 /Dc/ com.victronenergy.system Battery State of Charge (System) 843 uint16 1 0 to 100 /Dc/Battery/Soc no % Best battery state of charge, determined from different measurements. com.victronenergy.system Battery state (System) 844 uint16 1 0 to 65536 /Dc/Battery/State no 0=idle;1=charging;2=discharging com.victronenergy.system Battery Consumed Amphours (System) 845 uint16 -10 0 to -6553.6 /Dc/Battery/ConsumedAmphours no Ah -com.victronenergy.system Battery Time to Go (System) 846 uint16 0.01 0 to 6553600 /Dc/Battery/TimeToGo no s Special value: 0 = charging +com.victronenergy.system Battery Time to Go (System) 846 uint16 0,01 0 to 6553600 /Dc/Battery/TimeToGo no s Special value: 0 = charging com.victronenergy.system PV - DC-coupled power 850 uint16 1 0 to 65536 /Dc/Pv/Power no W Summation of output power of all connected Solar Chargers com.victronenergy.system PV - DC-coupled current 851 int16 10 -3276.8 to 3276.7 /Dc/Pv/Current no A DC Summation of output current of all connected Solar Chargers com.victronenergy.system Charger power 855 uint16 1 0 to 65536 /Dc/Charger/Power no W @@ -54,9 +54,9 @@ com.victronenergy.vebus Input current phase 3 8 int16 10 -3276.8 to 3276.7 /Ac/A com.victronenergy.vebus Input frequency 1 9 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L1/F no Hz com.victronenergy.vebus Input frequency 2 10 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L2/F no Hz com.victronenergy.vebus Input frequency 3 11 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L3/F no Hz -com.victronenergy.vebus Input power 1 12 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L1/P no VA or Watts Sign meaning equal to Input current -com.victronenergy.vebus Input power 2 13 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L2/P no VA or Watts Sign meaning equal to Input current -com.victronenergy.vebus Input power 3 14 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L3/P no VA or Watts Sign meaning eaqual to Input current +com.victronenergy.vebus Input power 1 12 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L1/P no VA or Watts Sign meaning equal to Input current +com.victronenergy.vebus Input power 2 13 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L2/P no VA or Watts Sign meaning equal to Input current +com.victronenergy.vebus Input power 3 14 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L3/P no VA or Watts Sign meaning eaqual to Input current com.victronenergy.vebus Output voltage phase 1 15 uint16 10 0 to 6553.5 /Ac/Out/L1/V no V AC com.victronenergy.vebus Output voltage phase 2 16 uint16 10 0 to 6553.5 /Ac/Out/L2/V no V AC com.victronenergy.vebus Output voltage phase 3 17 uint16 10 0 to 6553.5 /Ac/Out/L3/V no V AC @@ -65,9 +65,9 @@ com.victronenergy.vebus Output current phase 2 19 int16 10 -3276.8 to 3276.7 /Ac com.victronenergy.vebus Output current phase 3 20 int16 10 -3276.8 to 3276.7 /Ac/Out/L3/I no A AC Postive: current flowing from Multi to the load. Negative: current flowing from load to the Multi. com.victronenergy.vebus Output frequency 21 int16 100 -327.68 to 327.67 /Ac/Out/L1/F no Hz com.victronenergy.vebus Active input current limit 22 int16 10 -3276.8 to 3276.7 /Ac/ActiveIn/CurrentLimit yes A See Venus-OS manual for limitations, for example when VE.Bus BMS or DMC is installed. -com.victronenergy.vebus Output power 1 23 int16 0.1 -327680 to 327670 /Ac/Out/L1/P no VA or Watts Sign meaning equal to Output current -com.victronenergy.vebus Output power 2 24 int16 0.1 -327680 to 327670 /Ac/Out/L2/P no VA or Watts Sign meaning equal to Output current -com.victronenergy.vebus Output power 3 25 int16 0.1 -327680 to 327670 /Ac/Out/L3/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 1 23 int16 0,1 -327680 to 327670 /Ac/Out/L1/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 2 24 int16 0,1 -327680 to 327670 /Ac/Out/L2/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 3 25 int16 0,1 -327680 to 327670 /Ac/Out/L3/P no VA or Watts Sign meaning equal to Output current com.victronenergy.vebus Battery voltage 26 uint16 100 0 to 655.35 /Dc/0/Voltage no V DC com.victronenergy.vebus Battery current 27 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC Positive: current flowing from the Multi to the dc system. Negative: the other way around. com.victronenergy.vebus Phase count 28 uint16 1 0 to 65536 /Ac/NumberOfPhases no count @@ -108,9 +108,9 @@ com.victronenergy.vebus VE.Bus Reset 62 uint16 1 0 to 65535 /SystemReset yes 1=V com.victronenergy.vebus Phase rotation warning 63 uint16 1 0 to 65535 /Alarms/PhaseRotation no 0=Ok;1=Warning com.victronenergy.vebus Grid lost alarm 64 uint16 1 0 to 65535 /Alarms/GridLost no 0=Ok;2=Alarm com.victronenergy.vebus Feed DC overvoltage into grid 65 uint16 1 0 to 65535 /Hub4/DoNotFeedInOvervoltage yes 0=Feed in overvoltage;1=Do not feed in overvoltage -com.victronenergy.vebus Maximum overvoltage feed-in power L1 66 uint16 0.01 0 to 6553500 /Hub4/L1/MaxFeedInPower yes W -com.victronenergy.vebus Maximum overvoltage feed-in power L2 67 uint16 0.01 0 to 6553500 /Hub4/L2/MaxFeedInPower yes W -com.victronenergy.vebus Maximum overvoltage feed-in power L3 68 uint16 0.01 0 to 6553500 /Hub4/L3/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L1 66 uint16 0,01 0 to 6553500 /Hub4/L1/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L2 67 uint16 0,01 0 to 6553500 /Hub4/L2/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L3 68 uint16 0,01 0 to 6553500 /Hub4/L3/MaxFeedInPower yes W com.victronenergy.vebus AC input 1 ignored 69 uint16 1 0 to 65535 /Ac/State/IgnoreAcIn1 no 0=AC input not ignored;1=AC input ignored com.victronenergy.vebus AC input 2 ignored 70 uint16 1 0 to 65535 /Ac/State/IgnoreAcIn2 no 0=AC input not ignored;1=AC input ignored com.victronenergy.vebus AcPowerSetpoint acts as feed-in limit 71 uint16 1 0 to 65535 /Hub4/TargetPowerIsMaxFeedIn yes 0=AcPowerSetpoint interpreted normally; 1=AcPowerSetpoint is OvervoltageFeedIn limit When set to 1, the Multi behaves as if DoNotFeedInOvervoltage is disabled and AcPowerSetpoint is the maximum allowed feed-in @@ -139,7 +139,8 @@ com.victronenergy.vebus Power Assist boost factor 106 uint16 100 0 to 655.35 /Se com.victronenergy.vebus Configured output voltage 107 uint16 100 0 to 655.35 /Settings/InverterOutputVoltage yes V AC com.victronenergy.vebus PowerAssist enabled 108 uint16 1 0 to 65535 /Settings/PowerAssistEnabled yes 0=Disabled;1=Enabled com.victronenergy.vebus UPS function enabled 109 uint16 1 0 to 65535 /Settings/UpsFunction yes 0=Disabled;1=Enabled -com.victronenergy.battery Battery power 258 int16 1 -32768 to 32767 /Dc/0/Power no W +com.victronenergy.battery Battery power 256 int32 1 -2147483648 to 2147483648 /Dc/0/Power no W +com.victronenergy.battery Battery power 258 int16 1 -32768 to 32767 /Dc/0/Power no W Older 16-bit variant of 256 com.victronenergy.battery Battery voltage 259 uint16 100 0 to 655.35 /Dc/0/Voltage no V DC com.victronenergy.battery Starter battery voltage 260 uint16 100 0 to 655.35 /Dc/1/Voltage no V DC com.victronenergy.battery Current 261 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC Postive: battery begin charged. Negative: battery being discharged @@ -170,7 +171,7 @@ com.victronenergy.battery Full discharges 285 uint16 1 0 to 65535 /History/FullD com.victronenergy.battery Total Ah drawn 286 uint16 -10 0 to -6553.6 /History/TotalAhDrawn no Ah Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Minimum voltage 287 uint16 100 0 to 655.35 /History/MinimumVoltage no V DC Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Maximum voltage 288 uint16 100 0 to 655.35 /History/MaximumVoltage no V DC Not supported by CAN.Bus BMS batteries. -com.victronenergy.battery Time since last full charge 289 uint16 0.01 0 to 6553500 /History/TimeSinceLastFullCharge no seconds Not supported by CAN.Bus BMS batteries. +com.victronenergy.battery Time since last full charge 289 uint16 0,01 0 to 6553500 /History/TimeSinceLastFullCharge no seconds Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Automatic syncs 290 uint16 1 0 to 65535 /History/AutomaticSyncs no count Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Low voltage alarms 291 uint16 1 0 to 65535 /History/LowVoltageAlarms no count Not supported by CAN.Bus BMS batteries. com.victronenergy.battery High voltage alarms 292 uint16 1 0 to 65535 /History/HighVoltageAlarms no count Not supported by CAN.Bus BMS batteries. @@ -184,7 +185,7 @@ com.victronenergy.battery Minimum fused voltage 299 uint16 100 0 to 655.35 /Hist com.victronenergy.battery Maximum fused voltage 300 uint16 100 0 to 655.35 /History/MaximumFusedVoltage no V DC 2014-12-13: Deprecated because over-engineered. Value is always 0. com.victronenergy.battery Discharged Energy 301 uint16 10 0 to 6553.5 /History/DischargedEnergy no kWh Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Charged Energy 302 uint16 10 0 to 6553.5 /History/ChargedEnergy no kWh Not supported by CAN.Bus BMS batteries. -com.victronenergy.battery Time to go 303 uint16 0.01 0 to 6553500 /TimeToGo no seconds Special value: 0 = charging. Not supported by CAN.Bus BMS batteries. +com.victronenergy.battery Time to go 303 uint16 0,01 0 to 6553500 /TimeToGo no seconds Special value: 0 = charging. Not supported by CAN.Bus BMS batteries. com.victronenergy.battery State of health 304 uint16 10 0 to 6553.5 /Soh no % Not supported by Victron products. Supported by CAN.Bus batteries. com.victronenergy.battery Max charge voltage 305 uint16 10 0 to 6553.5 /Info/MaxChargeVoltage no V DC Not supported by Victron products. Supported by CAN.Bus batteries. com.victronenergy.battery Min discharge voltage 306 uint16 10 0 to 6553.5 /Info/BatteryLowVoltage no V DC Not supported by Victron products. Supported by CAN.Bus batteries. @@ -204,7 +205,10 @@ com.victronenergy.battery Internal failure alarm 323 uint16 1 0 to 65535 /Alarms com.victronenergy.battery High charge temperature alarm 324 uint16 1 0 to 65535 /Alarms/HighChargeTemperature no 0=No alarm;2=Alarm com.victronenergy.battery Low charge temperature alarm 325 uint16 1 0 to 65535 /Alarms/LowChargeTemperature no 0=No alarm;2=Alarm com.victronenergy.battery Low cell voltage alarm 326 uint16 1 0 to 65535 /Alarms/LowCellVoltage no 0=No alarm;1=Almost discharged;2=Alarm -com.victronenergy.battery Mode 327 uint16 1 0 to 65535 /Mode yes 0=Open;14=Standby +com.victronenergy.battery RESERVED 327 no 0=Open;14=Standby +com.victronenergy.battery RESERVED 328 +com.victronenergy.battery RESERVED 329 +com.victronenergy.battery Consumed Amphours 330 uint32 -1 0 to 4294967296 /ConsumedAmphours no Ah 32-bit compliment to register 265. com.victronenergy.solarcharger Battery voltage 771 uint16 100 0 to 655.35 /Dc/0/Voltage no V DC com.victronenergy.solarcharger Battery current 772 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC com.victronenergy.solarcharger Battery temperature 773 int16 10 -3276.8 to 3276.7 /Dc/0/Temperature no Degrees celsius VE.Can MPPTs only @@ -216,16 +220,17 @@ com.victronenergy.solarcharger Equalization pending 778 uint16 1 0 to 65535 /Equ com.victronenergy.solarcharger Equalization time remaining 779 uint16 10 0 to 6553.5 /Equalization/TimeRemaining no seconds com.victronenergy.solarcharger Relay on the charger 780 uint16 1 0 to 65535 /Relay/0/State no 0=Open;1=Closed com.victronenergy.solarcharger 781 uint16 1 0 to 65535 /Alarms/Alarm no 0=No alarm;2=Alarm Deprecated. Value is always 0 -com.victronenergy.solarcharger Low batt. voltage alarm 782 uint16 1 0 to 65535 /Alarms/LowVoltage no 0=No alarm;2=Alarm -com.victronenergy.solarcharger High batt. voltage alarm 783 uint16 1 0 to 65535 /Alarms/HighVoltage no 0=No alarm;2=Alarm +com.victronenergy.solarcharger RESERVED 782 uint16 1 0 to 65535 +com.victronenergy.solarcharger RESERVED 783 uint16 1 0 to 65535 com.victronenergy.solarcharger Yield today 784 uint16 10 0 to 6553.5 /History/Daily/0/Yield no kWh Today's yield com.victronenergy.solarcharger Maximum charge power today 785 uint16 1 0 to 65535 /History/Daily/0/MaxPower no W Today's maximum power com.victronenergy.solarcharger Yield yesterday 786 uint16 10 0 to 6553.5 /History/Daily/1/Yield no kWh Yesterday's yield com.victronenergy.solarcharger Maximum charge power yesterday 787 uint16 1 0 to 65535 /History/Daily/1/MaxPower no W Yesterday's maximum power com.victronenergy.solarcharger Error code 788 uint16 1 0 to 65535 /ErrorCode no 0=No error;1=Battery temperature too high;2=Battery voltage too high;3=Battery temperature sensor miswired (+);4=Battery temperature sensor miswired (-);5=Battery temperature sensor disconnected;6=Battery voltage sense miswired (+);7=Battery voltage sense miswired (-);8=Battery voltage sense disconnected;9=Battery voltage wire losses too high;17=Charger temperature too high;18=Charger over-current;19=Charger current polarity reversed;20=Bulk time limit reached;22=Charger temperature sensor miswired;23=Charger temperature sensor disconnected;34=Input current too high -com.victronenergy.solarcharger PV power 789 uint16 10 0 to 6553.5 /Yield/Power no W +com.victronenergy.solarcharger PV power 789 uint16 10 0 to 6553.5 /Yield/Power no W Older 16-bit variant of 789 com.victronenergy.solarcharger User yield 790 uint16 10 0 to 6553.5 /Yield/User no kWh Energy generated by the solarcharger since last user reset com.victronenergy.solarcharger MPP operation mode 791 uint16 1 0 to 65535 /MppOperationMode no 0=Off;1=Voltage/current limited;2=MPPT active;255=Not available +com.victronenergy.solarcharger PV power 792 uint32 1 0 to 4294967296 /Yield/Power no W com.victronenergy.solarcharger PV voltage for tracker 0 3700 uint16 100 0 to 655.35 /Pv/0/V no V DC com.victronenergy.solarcharger PV voltage for tracker 1 3701 uint16 100 0 to 655.35 /Pv/1/V no V DC com.victronenergy.solarcharger PV voltage for tracker 2 3702 uint16 100 0 to 655.35 /Pv/2/V no V DC @@ -372,13 +377,17 @@ com.victronenergy.grid Grid L1 - Power 2638 int32 1 -2147483648 to 2147483648 /A com.victronenergy.grid Grid L2 - Power 2640 int32 1 -2147483648 to 2147483648 /Ac/L2/Power no W com.victronenergy.grid Grid L3 - Power 2642 int32 1 -2147483648 to 2147483648 /Ac/L3/Power no W com.victronenergy.grid AC Frequency 2644 uint16 100 0 to 655.35 /Ac/Frequency no Hz +com.victronenergy.grid L1 Power Factor 2645 int16 1000 -32.768 to 32.767 /Ac/L1/PowerFactor no +com.victronenergy.grid L2 Power Factor 2646 int16 1000 -32.768 to 32.767 /Ac/L2/PowerFactor no +com.victronenergy.grid L3 Power Factor 2647 int16 1000 -32.768 to 32.767 /Ac/L3/PowerFactor no +com.victronenergy.grid Total Power Factor 2648 int16 1000 -32.768 to 32.767 /Ac/PowerFactor no com.victronenergy.settings ESS control loop setpoint 2700 int16 1 -32768 to 32767 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 - Setpoint for the ESS control-loop in the CCGX. The control-loop will increase/decrease the Multi charge/discharge power to get the grid reading to this setpoint com.victronenergy.settings ESS max charge current (fractional) 2701 uint16 1 0 to 100 /Settings/Cgwacs/MaxChargePercentage yes % ESS Mode 2 - Max charge current for ESS control-loop. The control-loop will use this value to limit the multi power setpoint. For DVCC, use 2705 instead. com.victronenergy.settings ESS max discharge current (fractional) 2702 uint16 1 0 to 100 /Settings/Cgwacs/MaxDischargePercentage yes % ESS Mode 2 - Max discharge current for ESS control-loop. The control-loop will use this value to limit the multi power setpoint. Currently a value < 50% will disable discharge completely. >=50% allows. Consider using 2704 instead. -com.victronenergy.settings ESS control loop setpoint 2703 int16 0.01 -3276800 to 3276700 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 – Same as 2700, but with a different scale factor. Meant for values larger than +-32kW. -com.victronenergy.settings ESS max discharge current 2704 int16 0.1 -327680 to 327670 /Settings/Cgwacs/MaxDischargePower yes W ESS Mode 2 – similar to 2702, but as an absolute value instead of a percentage. +com.victronenergy.settings ESS control loop setpoint 2703 int16 0,01 -3276800 to 3276700 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 – Same as 2700, but with a different scale factor. Meant for values larger than +-32kW. +com.victronenergy.settings ESS max discharge current 2704 int16 0,1 -327680 to 327670 /Settings/Cgwacs/MaxDischargePower yes W ESS Mode 2 – similar to 2702, but as an absolute value instead of a percentage. com.victronenergy.settings DVCC system max charge current 2705 int16 1 -32768 to 32767 /Settings/SystemSetup/MaxChargeCurrent yes A DC ESS Mode 2 with DVCC – Maximum system charge current. -1 Disables. -com.victronenergy.settings Maximum System Grid Feed In 2706 int16 0.01 -3276800 to 3276700 /Settings/Cgwacs/MaxFeedInPower yes W -1: No limit, >=0: limited system feed-in. Applies to DC-coupled and AC-coupled feed-in. +com.victronenergy.settings Maximum System Grid Feed In 2706 int16 0,01 -3276800 to 3276700 /Settings/Cgwacs/MaxFeedInPower yes W -1: No limit, >=0: limited system feed-in. Applies to DC-coupled and AC-coupled feed-in. com.victronenergy.settings Feed excess DC-coupled PV into grid 2707 int16 1 /Settings/Cgwacs/OvervoltageFeedIn yes 0=Don’t feed excess DC-tied PV into grid; 1=Feed excess DC-tied PV into the grid Also known as Overvoltage Feed-in com.victronenergy.settings Don’t feed excess AC-coupled PV into grid 2708 int16 1 /Settings/Cgwacs/PreventFeedback yes 0=Feed excess AC-tied PV into grid; 1=Don’t feed excess AC-tied PV into the grid Formerly called Fronius Zero-Feedin com.victronenergy.hub4 Grid limiting status 2709 int16 1 /PvPowerLimiterActive no 0=Feed-in limiting is inactive; 1=Feed-in limiting is active Applies to both AC-coupled and DC-coupled limiting @@ -386,7 +395,7 @@ com.victronenergy.settings Limit managed battery voltage 2710 uint16 10 0 to 655 com.victronenergy.settings AC input 1 source (for VE.Bus inverter/chargers) 2711 uint16 1 0 to 65535 /Settings/SystemSetup/AcInput1 yes 0=Unused;1=Grid;2=Genset;3=Shore For Multi-RS, this is configured on the Inverter/Charger with VictronConnect com.victronenergy.settings AC input 2 source (for VE.Bus inverter/chargers) 2712 uint16 1 0 to 65535 /Settings/SystemSetup/AcInput2 yes 0=Unused;1=Grid;2=Genset;3=Shore com.victronenergy.settings AC export limit when peakshaving 2713 int16 1 -32768 to 32767 /Settings/CGwacs/AcExportLimit yes -1: Disabled -com.victronenergy.settings AC import limit when peakshaving 2714 int16 1 -32768 to 32767 /Settings/CGwacs/AcImportLimit yes -1: Disabled +com.victronenergy.settings AC import limit when peakshaving 2714 int16 1 -32768 to 32767 /Settings/Cgwacs/AcInputLimit yes -1: Disabled com.victronenergy.settings Mode for peakshaving 2715 uint16 1 0 to 65535 /Settings/CGwacs/AlwaysPeakShave yes 0=Above minimum SOC only;1=Always com.victronenergy.hub4 AC grid setpoint (volatile, in memory) 2716 int32 1 -2147483648 to 2147483648 /Overrides/Setpoint yes W This can not be used together with DynamicEss com.victronenergy.settings Grid metering 2717 uint16 1 0 to 65535 /Settings/CGwacs/RunWithoutGridMeter yes 0=External meter;1=Inverter/Charger @@ -409,7 +418,7 @@ com.victronenergy.tank Tank remaining fluid 3005 uint32 10000 0 to 429496.7296 / com.victronenergy.tank Tank status 3007 uint16 1 0 to 65535 /Status no 0=OK;1=Open circuit;2=Short circuited;3=Reverse Polarity;4=Unknown com.victronenergy.inverter Output current 3100 int16 10 -3276.8 to 3276.8 /Ac/Out/L1/I no A AC com.victronenergy.inverter Output voltage 3101 uint16 10 0 to 6553.6 /Ac/Out/L1/V no V AC -com.victronenergy.inverter Output power 3102 int16 0.1 -327680 to 327670 /Ac/Out/L1/P no W AC +com.victronenergy.inverter Output power 3102 int16 0,1 -327680 to 327670 /Ac/Out/L1/P no W AC com.victronenergy.inverter Battery voltage 3105 uint16 100 0 to 655.36 /Dc/0/Voltage no V DC com.victronenergy.inverter Battery current 3106 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC com.victronenergy.inverter High temperature alarm 3110 uint16 1 0 to 65535 /Alarms/HighTemperature no 0=No alarm;1=Warning;2=Alarm @@ -421,7 +430,7 @@ com.victronenergy.inverter Low AC-Out voltage alarm 3115 uint16 1 0 to 65535 /Al com.victronenergy.inverter Overload alarm 3116 uint16 1 0 to 65535 /Alarms/Overload no 0=No alarm;1=Warning;2=Alarm com.victronenergy.inverter Ripple alarm 3117 uint16 1 0 to 65535 /Alarms/Ripple no 0=No alarm;1=Warning;2=Alarm com.victronenergy.inverter Firmware version 3125 uint16 1 0 to 65535 /FirmwareVersion no -com.victronenergy.inverter Inverter on/off/eco 3126 uint16 1 0 to 65535 /Mode yes 2=On;4=Off;5=Eco +com.victronenergy.inverter Inverter on/off/eco 3126 uint16 1 0 to 65535 /Mode yes 1=Charger only,2=Inverter only;3=On;4=Off;5=Low Power/Eco;251=Passthrough;252=Standby;253=Hibernate com.victronenergy.inverter Inverter model 3127 uint16 1 0 to 65535 /ProductId no com.victronenergy.inverter Inverter state 3128 uint16 1 0 to 65535 /State no 0=Off;1=Low power mode (search mode);2=Fault;9=Inverting (on) com.victronenergy.inverter Energy from battery to AC-out 3130 uint32 100 0 to 42949672.95 /Energy/InverterToAcOut no kWh @@ -464,9 +473,9 @@ com.victronenergy.genset Phase 3 voltage 3202 uint16 10 0 to 6553.6 /Ac/L3/Volta com.victronenergy.genset Phase 1 current 3203 int16 10 -3276.8 to 3276.8 /Ac/L1/Current no A AC com.victronenergy.genset Phase 2 current 3204 int16 10 -3276.8 to 3276.8 /Ac/L2/Current no A AC com.victronenergy.genset Phase 3 current 3205 int16 10 -3276.8 to 3276.8 /Ac/L3/Current no A AC -com.victronenergy.genset Phase 1 power 3206 int16 1 -32768 to 32768 /Ac/L1/Power no W -com.victronenergy.genset Phase 2 power 3207 int16 1 -32768 to 32768 /Ac/L2/Power no W -com.victronenergy.genset Phase 3 power 3208 int16 1 -32768 to 32768 /Ac/L3/Power no W +com.victronenergy.genset Phase 1 power 3206 int16 1 -32768 to 32768 /Ac/L1/Power no W older 16-bit variant of 3230 +com.victronenergy.genset Phase 2 power 3207 int16 1 -32768 to 32768 /Ac/L2/Power no W older 16-bit variant of 3232 +com.victronenergy.genset Phase 3 power 3208 int16 1 -32768 to 32768 /Ac/L3/Power no W older 16-bit variant of 3234 com.victronenergy.genset AC Frequency 3209 uint16 100 0 to 655.36 /Ac/Frequency no Hz com.victronenergy.genset RESERVED 3210 uint16 no com.victronenergy.genset RESERVED 3211 uint16 no @@ -476,7 +485,7 @@ com.victronenergy.genset Error 3214 uint16 1 0 to 65535 /ErrorCode no 0=No error com.victronenergy.genset Auto start 3215 uint16 1 0 to 65535 /RemoteStartModeEnabled no 0=Disabled;1=Enabled com.victronenergy.genset Engine load 3216 uint16 1 0 to 65535 /Engine/Load no % com.victronenergy.genset Engine speed 3217 uint16 1 0 to 65535 /Engine/Speed no RPM -com.victronenergy.genset Engine operating hours 3218 uint16 0.01 0 to 6553500 /Engine/OperatingHours no s +com.victronenergy.genset Engine operating hours 3218 uint16 0,01 0 to 6553500 /Engine/OperatingHours no s com.victronenergy.genset Engine coolant temperature 3219 int16 10 -3276.8 to 3276.8 /Engine/CoolantTemperature no Degrees celsius com.victronenergy.genset Engine winding temperature 3220 int16 10 -3276.8 to 3276.8 /Engine/WindingTemperature no Degrees celsius com.victronenergy.genset Engine exhaust temperature 3221 int16 10 -3276.8 to 3276.8 /Engine/ExaustTemperature no Degrees celsius @@ -487,6 +496,14 @@ com.victronenergy.genset RESERVED 3225 uint16 1 RESERVED no com.victronenergy.genset RESERVED 3226 uint16 1 RESERVED no com.victronenergy.genset RESERVED 3227 uint16 1 RESERVED no Degrees celsius com.victronenergy.genset Engine oil temperature 3228 int16 1 -32768 to 32767 /Engine/OilTemperature no Degrees celsius +com.victronenergy.genset RESERVED 3229 +com.victronenergy.genset Phase 1 power 3230 int32 1 - 2147483648 to 2147483647 /Ac/L1/Power no W +com.victronenergy.genset Phase 2 power 3232 int32 1 - 2147483648 to 2147483647 /Ac/L2/Power no W +com.victronenergy.genset Phase 3 power 3234 int32 1 - 2147483648 to 2147483647 /Ac/L3/Power no W +com.victronenergy.genset L1 Power Factor 3236 int16 1000 -32.768 to 32.767 /Ac/L1/PowerFactor no +com.victronenergy.genset L2 Power Factor 3237 int16 1000 -32.768 to 32.767 /Ac/L2/PowerFactor no +com.victronenergy.genset L3 Power Factor 3238 int16 1000 -32.768 to 32.767 /Ac/L3/PowerFactor no +com.victronenergy.genset Total Power Factor 3239 int16 1000 -32.768 to 32.767 /Ac/PowerFactor no com.victronenergy.genset 1st Error string (for third party gensets) 5000 string[16] 32 characters /Error/0/Id no See https://github.com/victronenergy/venus/wiki/dbus#error-codes com.victronenergy.genset 2nd Error string (for third party gensets) 5016 string[16] 32 characters /Error/1/Id no com.victronenergy.genset 3rd Error string (for third party gensets) 5032 string[16] 32 characters /Error/2/Id no @@ -498,7 +515,7 @@ com.victronenergy.genset 8th Error string (for third party gensets) 5112 string[ com.victronenergy.temperature Product ID 3300 uint16 1 0 to 65535 /ProductId no com.victronenergy.temperature Temperature scale factor 3301 uint16 100 0 to 655.35 /Scale no com.victronenergy.temperature Temperature offset 3302 int16 100 -327.68 to 327.67 /Offset no -com.victronenergy.temperature Temperature type 3303 uint16 1 0 to 65535 /TemperatureType no 0=Battery;1=Fridge;2=Generic +com.victronenergy.temperature Temperature type 3303 uint16 1 0 to 65535 /TemperatureType no 0=Battery;1=Fridge;2=Generic;3=Room;4=Outdoor;5=WaterHeater;6=Freezer com.victronenergy.temperature Temperature 3304 int16 100 -327.68 to 327.67 /Temperature no Degrees celsius com.victronenergy.temperature Temperature status 3305 uint16 1 0 to 65535 /Status no 0=OK;1=Open circuit;2=Short circuited;3=Reverse Polarity;4=Unknown com.victronenergy.temperature Humidity 3306 uint16 10 0 to 6553.3 /Humidity no % Relative humidity as a percentage. Only available on sensors that has this feature, eg Ruuvi. @@ -537,7 +554,7 @@ com.victronenergy.evcharger L1 Power 3818 uint16 1 0 to 65535 /Ac/L1/Power no W com.victronenergy.evcharger L2 Power 3819 uint16 1 0 to 65535 /Ac/L2/Power no W com.victronenergy.evcharger L3 Power 3820 uint16 1 0 to 65535 /Ac/L3/Power no W com.victronenergy.evcharger Total power 3821 uint16 1 0 to 65535 /Ac/Power no W -com.victronenergy.evcharger Charging time 3822 uint16 0.01 0 to 6553500 /ChargingTime no seconds +com.victronenergy.evcharger Charging time 3822 uint16 0,01 0 to 6553500 /ChargingTime no seconds com.victronenergy.evcharger Charge current 3823 uint16 1 0 to 65535 /Current no A com.victronenergy.evcharger Status 3824 uint16 1 0 to 65535 /Status no 0=Disconnected; 1=Connected; 2=Charging; 3=Charged; 4=Waiting for sun; 5=Waiting for RFID; 6=Waiting for start; 7=Low SOC; 8=Ground test error; 9=Welded contacts test error; 10=CP input test error (shorted); 11=Residual current detected; 12=Undervoltage detected; 13=Overvoltage detected; 14=Overheating detected; 15=Reserved; 16=Reserved; 17=Reserved; 18=Reserved; 19=Reserved; 20=Charging limit; 21=Start charging; 22=Switching to 3 phase; 23=Switching to 1 phase; 24=Stop charging com.victronenergy.evcharger Set charge current (manual mode) 3825 uint16 1 0 to 65535 /SetCurrent yes A @@ -557,6 +574,14 @@ com.victronenergy.acload L1 Energy 3916 uint32 100 0 to 42949672.95 /Ac/L1/Energ com.victronenergy.acload L2 Energy 3918 uint32 100 0 to 42949672.95 /Ac/L2/Energy/Forward no kWh com.victronenergy.acload L3 Energy 3920 uint32 100 0 to 42949672.95 /Ac/L3/Energy/Forward no kWh com.victronenergy.acload AC Frequency 3922 uint16 100 0 to 655.35 /Ac/Frequency no Hz +com.victronenergy.acload RESERVED 3923 +com.victronenergy.acload L1 Power 3924 int32 1 0 to 4294967295 /Ac/L1/Power no W +com.victronenergy.acload L2 Power 3926 int32 1 0 to 4294967295 /Ac/L2/Power no W +com.victronenergy.acload L3 Power 3928 int32 1 0 to 4294967295 /Ac/L3/Power no W +com.victronenergy.acload L1 Power Factor 3930 int16 1000 -32.768 to 32.767 /Ac/L1/PowerFactor no +com.victronenergy.acload L2 Power Factor 3931 int16 1000 -32.768 to 32.767 /Ac/L2/PowerFactor no +com.victronenergy.acload L3 Power Factor 3932 int16 1000 -32.768 to 32.767 /Ac/L3/PowerFactor no +com.victronenergy.acload Total Power Factor 3933 int16 1000 -32.768 to 32.767 /Ac/PowerFactor no com.victronenergy.fuelcell Battery voltage 4000 uint16 100 0 to 655.35 /Dc/0/Voltage no V DC com.victronenergy.fuelcell Battery current 4001 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A com.victronenergy.fuelcell Auxiliary voltage 4002 uint16 100 0 to 655.35 /Dc/1/Voltage no V DC @@ -767,13 +792,24 @@ com.victronenergy.acsystem Output frequency 4920 uint16 100 0 to 655.35 /Ac/Out/ com.victronenergy.acsystem ESS mode 4921 uint16 1 0 to 65535 /Settings/Ess/Mode yes 1=ESS with Phase Compensation;2=ESS without phase compensation;3=Disabled/External Control com.victronenergy.acsystem ESS setpoint 4922 int32 1 -2147483648 to 2147483648 /Ess/AcPowerSetpoint yes W com.victronenergy.acsystem Disable Feed-in (into grid) 4924 uint16 1 0 to 65535 /Ess/DisableFeedIn yes 0=Feed-in enabled;1=Feed-in disabled -com.victronenergy.acsystem RESERVED 4925 +com.victronenergy.acsystem ESS Active SOC Limit 4925 uint16 1 0 to 65535 /Ess/ActiveSocLimit no % com.victronenergy.acsystem RESERVED 4926 com.victronenergy.acsystem RESERVED 4927 com.victronenergy.acsystem RESERVED 4928 com.victronenergy.acsystem RESERVED 4929 com.victronenergy.acsystem Grid Lost Alarm 4930 uint16 1 0 to 65535 /Alarms/GridLost no 0=Ok;1=Warning;2=Alarm com.victronenergy.acsystem Phase Rotation Alarm 4931 uint16 1 0 to 65535 /Alarms/PhaseRotation no 0=Ok;1=Warning;2=Alarm +com.victronenergy.acsystem RESERVED 4932 +com.victronenergy.acsystem RESERVED 4933 +com.victronenergy.acsystem RESERVED 4934 +com.victronenergy.acsystem RESERVED 4935 +com.victronenergy.acsystem RESERVED 4936 +com.victronenergy.acsystem RESERVED 4937 +com.victronenergy.acsystem RESERVED 4938 +com.victronenergy.acsystem RESERVED 4939 +com.victronenergy.acsystem Ac input 1 current limit 4940 uint16 10 0 to 6553.5A /Ac/In/1/CurrentLimit yes A +com.victronenergy.acsystem Ac input 2 current limit 4941 uint16 10 0 to 6553.5A /Ac/In/2/CurrentLimit yes A +com.victronenergy.acsystem Ac current limit at grid meter 4942 uint16 10 0 to 6553.5A /Settings/Ac/In/CurrentLimitEnergyMeter yes A com.victronenergy.dcgenset Genset Product ID 5200 uint16 1 0 to 65535 /ProductId no com.victronenergy.dcgenset Status 5201 uint16 1 0 to 65535 /StatusCode no com.victronenergy.dcgenset Error 5202 uint16 1 0 to 65535 /ErrorCode no @@ -803,10 +839,10 @@ com.victronenergy.dcgenset 8th Error string (for third party gensets) 5330 strin com.victronenergy.system Dynamic ESS state 5400 uint16 1 0 to 65535 /DynamicEss/Active no 0=Off;1=Active com.victronenergy.system Allow grid feed-in 5401 uint16 1 0 to 65535 /DynamicEss/AllowGridFeedIn no 0=Not allowed;1=Allowed com.victronenergy.system Is Dynamic ESS available 5402 uint16 1 0 to 65535 /DynamicEss/Available no 0=System is not capable of doing DynamicEss;1=System is capable of doing DynamicEss -com.victronenergy.system Calculated rate of charge/discharge 5403 uint16 0.1 0 to 655350 /DynamicEss/ChargeRate no +com.victronenergy.system Calculated rate of charge/discharge 5403 uint16 0,1 0 to 655350 /DynamicEss/ChargeRate no com.victronenergy.system Error 5404 uint16 1 0 to 65535 /DynamicEss/ErrorCode no 0=No error;1=No ESS;2=ESS mode;3=No matching schedule;4=SOC low;5=Battery capacity not configured com.victronenergy.system Active restrictions 5405 uint16 1 0 to 65535 /DynamicEss/Restrictions no 0=No restrictions between battery and the grid;1=Grid to battery energy flow is restricted;2=Battery to grid energy flow is restricted;3=No energy flow between battery and grid -com.victronenergy.system Used strategy for current time slot 5406 uint16 1 0 to 65535 /DynamicEss/Strategy no 0=Target SOC;1=Self-consumption +com.victronenergy.system Used strategy for current time slot 5406 uint16 1 0 to 65535 /DynamicEss/Strategy no 0=Target SOC;1=Self-consumption;2=Pro battery;3=Pro grid com.victronenergy.system The set target SOC for this time slot 5407 uint16 1 0 to 65535 /DynamicEss/TargetSoc no % com.victronenergy.settings Battery capacity 5420 uint16 10 0 to 6553.5 /Settings/DynamicEss/BatteryCapacity yes kWh com.victronenergy.settings Full battery charge duration 5421 uint16 1 0 to 65535 /Settings/DynamicEss/FullChargeDuration yes hour @@ -817,4 +853,10 @@ com.victronenergy.settings Duration for this schedule 5425 uint16 1 0 to 65535 / com.victronenergy.settings Active restrictions for this schedule 5426 uint16 1 0 to 65535 /Settings/DynamicEss/Schedule/0/Restrictions yes 0=No restrictions between battery and the grid;1=Grid to battery energy flow is restricted;2=Battery to grid energy flow is restricted;3=No energy flow between battery and grid com.victronenergy.settings Target SOC for this schedule 5427 uint16 1 0 to 65535 /Settings/DynamicEss/Schedule/0/Soc yes % com.victronenergy.settings Unix timestamp when this schedule starts 5428 int32 1 -2147483648 to 2147483648 /Settings/DynamicEss/Schedule/0/Start yes -com.victronenergy.settings Used strategy for this schedule 5429 uint16 1 0 to 65535 /Settings/DynamicEss/Schedule/0/Strategy yes 0=Target SOC;1=Self-consumption \ No newline at end of file +com.victronenergy.settings Used strategy for this schedule 5429 uint16 1 0 to 65535 /Settings/DynamicEss/Schedule/0/Strategy yes 0=Target SOC;1=Self-consumption;2=Pro battery;3=Pro grid +com.victronenergy.heatpump Product ID 5500 uint16 1 0 to 65535 /ProductId no +com.victronenergy.heatpump Heatpump state 5501 uint16 1 0 to 65535 /State no 0=Off;1=Error;2=Startup;3=Heating;4=Cooling +com.victronenergy.heatpump Power consumed by heatpump 5502 uint32 1 0 to 4294967296 /Ac/Power no W +com.victronenergy.heatpump Total energy consumed 5504 uint32 100 0 to 42949672.96 /Ac/Energy/Forward no kWh +com.victronenergy.heatpump Current temperature of medium (room, water) 5506 int16 10 -3276.8 to 3276.7 /Temperature no Degrees celsius +com.victronenergy.heatpump Target temperature of medium 5507 int16 10 -3276.8 to 3276.7 /TargetTemperature no Degrees celsius From ee7dc51571b815753936fddcc633a31aad42b051 Mon Sep 17 00:00:00 2001 From: iRateD1703 <139787748+iRateD1703@users.noreply.github.com> Date: Mon, 20 Oct 2025 12:06:03 +0200 Subject: [PATCH 3/4] Updated to v 3.60 Updated to Modbus TCP register version 3.60 which now includes appropriate datetypes for previously overflowing unit16 variables --- .../CCGX-Modbus-TCP-register-list-3.50.xlsx | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx b/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx index dd6808d..87c9ab2 100644 --- a/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx +++ b/resources/CCGX-Modbus-TCP-register-list-3.50.xlsx @@ -29,7 +29,7 @@ com.victronenergy.system Battery Power (System) 842 int16 1 -32768 to 32767 /Dc/ com.victronenergy.system Battery State of Charge (System) 843 uint16 1 0 to 100 /Dc/Battery/Soc no % Best battery state of charge, determined from different measurements. com.victronenergy.system Battery state (System) 844 uint16 1 0 to 65536 /Dc/Battery/State no 0=idle;1=charging;2=discharging com.victronenergy.system Battery Consumed Amphours (System) 845 uint16 -10 0 to -6553.6 /Dc/Battery/ConsumedAmphours no Ah -com.victronenergy.system Battery Time to Go (System) 846 uint16 0,01 0 to 6553600 /Dc/Battery/TimeToGo no s Special value: 0 = charging +com.victronenergy.system Battery Time to Go (System) 846 uint16 0.01 0 to 6553600 /Dc/Battery/TimeToGo no s Special value: 0 = charging com.victronenergy.system PV - DC-coupled power 850 uint16 1 0 to 65536 /Dc/Pv/Power no W Summation of output power of all connected Solar Chargers com.victronenergy.system PV - DC-coupled current 851 int16 10 -3276.8 to 3276.7 /Dc/Pv/Current no A DC Summation of output current of all connected Solar Chargers com.victronenergy.system Charger power 855 uint16 1 0 to 65536 /Dc/Charger/Power no W @@ -54,9 +54,9 @@ com.victronenergy.vebus Input current phase 3 8 int16 10 -3276.8 to 3276.7 /Ac/A com.victronenergy.vebus Input frequency 1 9 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L1/F no Hz com.victronenergy.vebus Input frequency 2 10 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L2/F no Hz com.victronenergy.vebus Input frequency 3 11 int16 100 -327.68 to 327.67 /Ac/ActiveIn/L3/F no Hz -com.victronenergy.vebus Input power 1 12 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L1/P no VA or Watts Sign meaning equal to Input current -com.victronenergy.vebus Input power 2 13 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L2/P no VA or Watts Sign meaning equal to Input current -com.victronenergy.vebus Input power 3 14 int16 0,1 -327680 to 327670 /Ac/ActiveIn/L3/P no VA or Watts Sign meaning eaqual to Input current +com.victronenergy.vebus Input power 1 12 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L1/P no VA or Watts Sign meaning equal to Input current +com.victronenergy.vebus Input power 2 13 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L2/P no VA or Watts Sign meaning equal to Input current +com.victronenergy.vebus Input power 3 14 int16 0.1 -327680 to 327670 /Ac/ActiveIn/L3/P no VA or Watts Sign meaning eaqual to Input current com.victronenergy.vebus Output voltage phase 1 15 uint16 10 0 to 6553.5 /Ac/Out/L1/V no V AC com.victronenergy.vebus Output voltage phase 2 16 uint16 10 0 to 6553.5 /Ac/Out/L2/V no V AC com.victronenergy.vebus Output voltage phase 3 17 uint16 10 0 to 6553.5 /Ac/Out/L3/V no V AC @@ -65,9 +65,9 @@ com.victronenergy.vebus Output current phase 2 19 int16 10 -3276.8 to 3276.7 /Ac com.victronenergy.vebus Output current phase 3 20 int16 10 -3276.8 to 3276.7 /Ac/Out/L3/I no A AC Postive: current flowing from Multi to the load. Negative: current flowing from load to the Multi. com.victronenergy.vebus Output frequency 21 int16 100 -327.68 to 327.67 /Ac/Out/L1/F no Hz com.victronenergy.vebus Active input current limit 22 int16 10 -3276.8 to 3276.7 /Ac/ActiveIn/CurrentLimit yes A See Venus-OS manual for limitations, for example when VE.Bus BMS or DMC is installed. -com.victronenergy.vebus Output power 1 23 int16 0,1 -327680 to 327670 /Ac/Out/L1/P no VA or Watts Sign meaning equal to Output current -com.victronenergy.vebus Output power 2 24 int16 0,1 -327680 to 327670 /Ac/Out/L2/P no VA or Watts Sign meaning equal to Output current -com.victronenergy.vebus Output power 3 25 int16 0,1 -327680 to 327670 /Ac/Out/L3/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 1 23 int16 0.1 -327680 to 327670 /Ac/Out/L1/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 2 24 int16 0.1 -327680 to 327670 /Ac/Out/L2/P no VA or Watts Sign meaning equal to Output current +com.victronenergy.vebus Output power 3 25 int16 0.1 -327680 to 327670 /Ac/Out/L3/P no VA or Watts Sign meaning equal to Output current com.victronenergy.vebus Battery voltage 26 uint16 100 0 to 655.35 /Dc/0/Voltage no V DC com.victronenergy.vebus Battery current 27 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC Positive: current flowing from the Multi to the dc system. Negative: the other way around. com.victronenergy.vebus Phase count 28 uint16 1 0 to 65536 /Ac/NumberOfPhases no count @@ -108,9 +108,9 @@ com.victronenergy.vebus VE.Bus Reset 62 uint16 1 0 to 65535 /SystemReset yes 1=V com.victronenergy.vebus Phase rotation warning 63 uint16 1 0 to 65535 /Alarms/PhaseRotation no 0=Ok;1=Warning com.victronenergy.vebus Grid lost alarm 64 uint16 1 0 to 65535 /Alarms/GridLost no 0=Ok;2=Alarm com.victronenergy.vebus Feed DC overvoltage into grid 65 uint16 1 0 to 65535 /Hub4/DoNotFeedInOvervoltage yes 0=Feed in overvoltage;1=Do not feed in overvoltage -com.victronenergy.vebus Maximum overvoltage feed-in power L1 66 uint16 0,01 0 to 6553500 /Hub4/L1/MaxFeedInPower yes W -com.victronenergy.vebus Maximum overvoltage feed-in power L2 67 uint16 0,01 0 to 6553500 /Hub4/L2/MaxFeedInPower yes W -com.victronenergy.vebus Maximum overvoltage feed-in power L3 68 uint16 0,01 0 to 6553500 /Hub4/L3/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L1 66 uint16 0.01 0 to 6553500 /Hub4/L1/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L2 67 uint16 0.01 0 to 6553500 /Hub4/L2/MaxFeedInPower yes W +com.victronenergy.vebus Maximum overvoltage feed-in power L3 68 uint16 0.01 0 to 6553500 /Hub4/L3/MaxFeedInPower yes W com.victronenergy.vebus AC input 1 ignored 69 uint16 1 0 to 65535 /Ac/State/IgnoreAcIn1 no 0=AC input not ignored;1=AC input ignored com.victronenergy.vebus AC input 2 ignored 70 uint16 1 0 to 65535 /Ac/State/IgnoreAcIn2 no 0=AC input not ignored;1=AC input ignored com.victronenergy.vebus AcPowerSetpoint acts as feed-in limit 71 uint16 1 0 to 65535 /Hub4/TargetPowerIsMaxFeedIn yes 0=AcPowerSetpoint interpreted normally; 1=AcPowerSetpoint is OvervoltageFeedIn limit When set to 1, the Multi behaves as if DoNotFeedInOvervoltage is disabled and AcPowerSetpoint is the maximum allowed feed-in @@ -171,7 +171,7 @@ com.victronenergy.battery Full discharges 285 uint16 1 0 to 65535 /History/FullD com.victronenergy.battery Total Ah drawn 286 uint16 -10 0 to -6553.6 /History/TotalAhDrawn no Ah Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Minimum voltage 287 uint16 100 0 to 655.35 /History/MinimumVoltage no V DC Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Maximum voltage 288 uint16 100 0 to 655.35 /History/MaximumVoltage no V DC Not supported by CAN.Bus BMS batteries. -com.victronenergy.battery Time since last full charge 289 uint16 0,01 0 to 6553500 /History/TimeSinceLastFullCharge no seconds Not supported by CAN.Bus BMS batteries. +com.victronenergy.battery Time since last full charge 289 uint16 0.01 0 to 6553500 /History/TimeSinceLastFullCharge no seconds Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Automatic syncs 290 uint16 1 0 to 65535 /History/AutomaticSyncs no count Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Low voltage alarms 291 uint16 1 0 to 65535 /History/LowVoltageAlarms no count Not supported by CAN.Bus BMS batteries. com.victronenergy.battery High voltage alarms 292 uint16 1 0 to 65535 /History/HighVoltageAlarms no count Not supported by CAN.Bus BMS batteries. @@ -185,7 +185,7 @@ com.victronenergy.battery Minimum fused voltage 299 uint16 100 0 to 655.35 /Hist com.victronenergy.battery Maximum fused voltage 300 uint16 100 0 to 655.35 /History/MaximumFusedVoltage no V DC 2014-12-13: Deprecated because over-engineered. Value is always 0. com.victronenergy.battery Discharged Energy 301 uint16 10 0 to 6553.5 /History/DischargedEnergy no kWh Not supported by CAN.Bus BMS batteries. com.victronenergy.battery Charged Energy 302 uint16 10 0 to 6553.5 /History/ChargedEnergy no kWh Not supported by CAN.Bus BMS batteries. -com.victronenergy.battery Time to go 303 uint16 0,01 0 to 6553500 /TimeToGo no seconds Special value: 0 = charging. Not supported by CAN.Bus BMS batteries. +com.victronenergy.battery Time to go 303 uint16 0.01 0 to 6553500 /TimeToGo no seconds Special value: 0 = charging. Not supported by CAN.Bus BMS batteries. com.victronenergy.battery State of health 304 uint16 10 0 to 6553.5 /Soh no % Not supported by Victron products. Supported by CAN.Bus batteries. com.victronenergy.battery Max charge voltage 305 uint16 10 0 to 6553.5 /Info/MaxChargeVoltage no V DC Not supported by Victron products. Supported by CAN.Bus batteries. com.victronenergy.battery Min discharge voltage 306 uint16 10 0 to 6553.5 /Info/BatteryLowVoltage no V DC Not supported by Victron products. Supported by CAN.Bus batteries. @@ -384,10 +384,10 @@ com.victronenergy.grid Total Power Factor 2648 int16 1000 -32.768 to 32.767 /Ac/ com.victronenergy.settings ESS control loop setpoint 2700 int16 1 -32768 to 32767 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 - Setpoint for the ESS control-loop in the CCGX. The control-loop will increase/decrease the Multi charge/discharge power to get the grid reading to this setpoint com.victronenergy.settings ESS max charge current (fractional) 2701 uint16 1 0 to 100 /Settings/Cgwacs/MaxChargePercentage yes % ESS Mode 2 - Max charge current for ESS control-loop. The control-loop will use this value to limit the multi power setpoint. For DVCC, use 2705 instead. com.victronenergy.settings ESS max discharge current (fractional) 2702 uint16 1 0 to 100 /Settings/Cgwacs/MaxDischargePercentage yes % ESS Mode 2 - Max discharge current for ESS control-loop. The control-loop will use this value to limit the multi power setpoint. Currently a value < 50% will disable discharge completely. >=50% allows. Consider using 2704 instead. -com.victronenergy.settings ESS control loop setpoint 2703 int16 0,01 -3276800 to 3276700 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 – Same as 2700, but with a different scale factor. Meant for values larger than +-32kW. -com.victronenergy.settings ESS max discharge current 2704 int16 0,1 -327680 to 327670 /Settings/Cgwacs/MaxDischargePower yes W ESS Mode 2 – similar to 2702, but as an absolute value instead of a percentage. +com.victronenergy.settings ESS control loop setpoint 2703 int16 0.01 -3276800 to 3276700 /Settings/Cgwacs/AcPowerSetPoint yes W ESS Mode 2 – Same as 2700, but with a different scale factor. Meant for values larger than +-32kW. +com.victronenergy.settings ESS max discharge current 2704 int16 0.1 -327680 to 327670 /Settings/Cgwacs/MaxDischargePower yes W ESS Mode 2 – similar to 2702, but as an absolute value instead of a percentage. com.victronenergy.settings DVCC system max charge current 2705 int16 1 -32768 to 32767 /Settings/SystemSetup/MaxChargeCurrent yes A DC ESS Mode 2 with DVCC – Maximum system charge current. -1 Disables. -com.victronenergy.settings Maximum System Grid Feed In 2706 int16 0,01 -3276800 to 3276700 /Settings/Cgwacs/MaxFeedInPower yes W -1: No limit, >=0: limited system feed-in. Applies to DC-coupled and AC-coupled feed-in. +com.victronenergy.settings Maximum System Grid Feed In 2706 int16 0.01 -3276800 to 3276700 /Settings/Cgwacs/MaxFeedInPower yes W -1: No limit, >=0: limited system feed-in. Applies to DC-coupled and AC-coupled feed-in. com.victronenergy.settings Feed excess DC-coupled PV into grid 2707 int16 1 /Settings/Cgwacs/OvervoltageFeedIn yes 0=Don’t feed excess DC-tied PV into grid; 1=Feed excess DC-tied PV into the grid Also known as Overvoltage Feed-in com.victronenergy.settings Don’t feed excess AC-coupled PV into grid 2708 int16 1 /Settings/Cgwacs/PreventFeedback yes 0=Feed excess AC-tied PV into grid; 1=Don’t feed excess AC-tied PV into the grid Formerly called Fronius Zero-Feedin com.victronenergy.hub4 Grid limiting status 2709 int16 1 /PvPowerLimiterActive no 0=Feed-in limiting is inactive; 1=Feed-in limiting is active Applies to both AC-coupled and DC-coupled limiting @@ -418,7 +418,7 @@ com.victronenergy.tank Tank remaining fluid 3005 uint32 10000 0 to 429496.7296 / com.victronenergy.tank Tank status 3007 uint16 1 0 to 65535 /Status no 0=OK;1=Open circuit;2=Short circuited;3=Reverse Polarity;4=Unknown com.victronenergy.inverter Output current 3100 int16 10 -3276.8 to 3276.8 /Ac/Out/L1/I no A AC com.victronenergy.inverter Output voltage 3101 uint16 10 0 to 6553.6 /Ac/Out/L1/V no V AC -com.victronenergy.inverter Output power 3102 int16 0,1 -327680 to 327670 /Ac/Out/L1/P no W AC +com.victronenergy.inverter Output power 3102 int16 0.1 -327680 to 327670 /Ac/Out/L1/P no W AC com.victronenergy.inverter Battery voltage 3105 uint16 100 0 to 655.36 /Dc/0/Voltage no V DC com.victronenergy.inverter Battery current 3106 int16 10 -3276.8 to 3276.7 /Dc/0/Current no A DC com.victronenergy.inverter High temperature alarm 3110 uint16 1 0 to 65535 /Alarms/HighTemperature no 0=No alarm;1=Warning;2=Alarm @@ -485,7 +485,7 @@ com.victronenergy.genset Error 3214 uint16 1 0 to 65535 /ErrorCode no 0=No error com.victronenergy.genset Auto start 3215 uint16 1 0 to 65535 /RemoteStartModeEnabled no 0=Disabled;1=Enabled com.victronenergy.genset Engine load 3216 uint16 1 0 to 65535 /Engine/Load no % com.victronenergy.genset Engine speed 3217 uint16 1 0 to 65535 /Engine/Speed no RPM -com.victronenergy.genset Engine operating hours 3218 uint16 0,01 0 to 6553500 /Engine/OperatingHours no s +com.victronenergy.genset Engine operating hours 3218 uint16 0.01 0 to 6553500 /Engine/OperatingHours no s com.victronenergy.genset Engine coolant temperature 3219 int16 10 -3276.8 to 3276.8 /Engine/CoolantTemperature no Degrees celsius com.victronenergy.genset Engine winding temperature 3220 int16 10 -3276.8 to 3276.8 /Engine/WindingTemperature no Degrees celsius com.victronenergy.genset Engine exhaust temperature 3221 int16 10 -3276.8 to 3276.8 /Engine/ExaustTemperature no Degrees celsius @@ -554,7 +554,7 @@ com.victronenergy.evcharger L1 Power 3818 uint16 1 0 to 65535 /Ac/L1/Power no W com.victronenergy.evcharger L2 Power 3819 uint16 1 0 to 65535 /Ac/L2/Power no W com.victronenergy.evcharger L3 Power 3820 uint16 1 0 to 65535 /Ac/L3/Power no W com.victronenergy.evcharger Total power 3821 uint16 1 0 to 65535 /Ac/Power no W -com.victronenergy.evcharger Charging time 3822 uint16 0,01 0 to 6553500 /ChargingTime no seconds +com.victronenergy.evcharger Charging time 3822 uint16 0.01 0 to 6553500 /ChargingTime no seconds com.victronenergy.evcharger Charge current 3823 uint16 1 0 to 65535 /Current no A com.victronenergy.evcharger Status 3824 uint16 1 0 to 65535 /Status no 0=Disconnected; 1=Connected; 2=Charging; 3=Charged; 4=Waiting for sun; 5=Waiting for RFID; 6=Waiting for start; 7=Low SOC; 8=Ground test error; 9=Welded contacts test error; 10=CP input test error (shorted); 11=Residual current detected; 12=Undervoltage detected; 13=Overvoltage detected; 14=Overheating detected; 15=Reserved; 16=Reserved; 17=Reserved; 18=Reserved; 19=Reserved; 20=Charging limit; 21=Start charging; 22=Switching to 3 phase; 23=Switching to 1 phase; 24=Stop charging com.victronenergy.evcharger Set charge current (manual mode) 3825 uint16 1 0 to 65535 /SetCurrent yes A @@ -839,7 +839,7 @@ com.victronenergy.dcgenset 8th Error string (for third party gensets) 5330 strin com.victronenergy.system Dynamic ESS state 5400 uint16 1 0 to 65535 /DynamicEss/Active no 0=Off;1=Active com.victronenergy.system Allow grid feed-in 5401 uint16 1 0 to 65535 /DynamicEss/AllowGridFeedIn no 0=Not allowed;1=Allowed com.victronenergy.system Is Dynamic ESS available 5402 uint16 1 0 to 65535 /DynamicEss/Available no 0=System is not capable of doing DynamicEss;1=System is capable of doing DynamicEss -com.victronenergy.system Calculated rate of charge/discharge 5403 uint16 0,1 0 to 655350 /DynamicEss/ChargeRate no +com.victronenergy.system Calculated rate of charge/discharge 5403 uint16 0.1 0 to 655350 /DynamicEss/ChargeRate no com.victronenergy.system Error 5404 uint16 1 0 to 65535 /DynamicEss/ErrorCode no 0=No error;1=No ESS;2=ESS mode;3=No matching schedule;4=SOC low;5=Battery capacity not configured com.victronenergy.system Active restrictions 5405 uint16 1 0 to 65535 /DynamicEss/Restrictions no 0=No restrictions between battery and the grid;1=Grid to battery energy flow is restricted;2=Battery to grid energy flow is restricted;3=No energy flow between battery and grid com.victronenergy.system Used strategy for current time slot 5406 uint16 1 0 to 65535 /DynamicEss/Strategy no 0=Target SOC;1=Self-consumption;2=Pro battery;3=Pro grid From d3e1110dc9336a46d6f481afa27e457c05344e50 Mon Sep 17 00:00:00 2001 From: iRateD1703 <139787748+iRateD1703@users.noreply.github.com> Date: Mon, 20 Oct 2025 12:23:53 +0200 Subject: [PATCH 4/4] Updated to TCP register version 3.60 Updated to Modbus TCP register version 3.60 which now includes appropriate datetypes for previously overflowing variables --- custom_components/victron/const.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/custom_components/victron/const.py b/custom_components/victron/const.py index 8e2cb24..7bcd176 100644 --- a/custom_components/victron/const.py +++ b/custom_components/victron/const.py @@ -622,7 +622,7 @@ class battery_mode(Enum): battery_registers = { "battery_power": RegisterInfo( - 258, INT16, UnitOfPower.WATT, entityType=SliderWriteType("DC", True) + 256, INT32, UnitOfPower.WATT, entityType=SliderWriteType("DC", True) ), "battery_voltage": RegisterInfo(259, UINT16, UnitOfElectricPotential.VOLT, 100), "battery_starter_voltage": RegisterInfo( @@ -632,7 +632,7 @@ class battery_mode(Enum): "battery_temperature": RegisterInfo(262, INT16, UnitOfTemperature.CELSIUS, 10), "battery_midvoltage": RegisterInfo(263, UINT16, UnitOfElectricPotential.VOLT, 100), "battery_midvoltagedeviation": RegisterInfo(264, UINT16, PERCENTAGE, 100), - "battery_consumedamphours": RegisterInfo(265, UINT16, AMPHOURS, -10), + "battery_consumedamphours": RegisterInfo(330, UINT32, AMPHOURS, -1), "battery_soc": RegisterInfo(266, UINT16, PERCENTAGE, 10), "battery_alarm": RegisterInfo( register=267, @@ -1090,9 +1090,9 @@ class generic_mppoperationmode(Enum): dataType=UINT16, entityType=TextReadEntityType(generic_charger_errorcode), ), - "solarcharger_yield_power": RegisterInfo(792, UINT32, UnitOfPower.WATT, 10), + "solarcharger_yield_power": RegisterInfo(792, UINT32, UnitOfPower.WATT, 1), "solarcharger_yield_user": RegisterInfo( - 3728, UINT32, UnitOfEnergy.KILO_WATT_HOUR, 10 + 3728, UINT32, UnitOfEnergy.KILO_WATT_HOUR, 1 ), "solarcharger_mppoperationmode": RegisterInfo( register=791, @@ -1815,9 +1815,9 @@ class genset_errorcode(Enum): "genset_L1_current": RegisterInfo(3203, INT16, UnitOfElectricCurrent.AMPERE, 10), "genset_L2_current": RegisterInfo(3204, INT16, UnitOfElectricCurrent.AMPERE, 10), "genset_L3_current": RegisterInfo(3205, INT16, UnitOfElectricCurrent.AMPERE, 10), - "genset_L1_power": RegisterInfo(3206, INT16, UnitOfPower.WATT), - "genset_L2_power": RegisterInfo(3207, INT16, UnitOfPower.WATT), - "genset_L3_power": RegisterInfo(3208, INT16, UnitOfPower.WATT), + "genset_L1_power": RegisterInfo(3230, INT32, UnitOfPower.WATT), + "genset_L2_power": RegisterInfo(3232, INT32, UnitOfPower.WATT), + "genset_L3_power": RegisterInfo(3234, INT32, UnitOfPower.WATT), "genset_L1_frequency": RegisterInfo(3209, UINT16, UnitOfFrequency.HERTZ, 100), "genset_L2_frequency": RegisterInfo( 3210, UINT16, UnitOfFrequency.HERTZ, 100