From 12d2223a202b583e7f5c465885470581716cda91 Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:53:20 +0100 Subject: [PATCH 1/7] Update HoymilesZeroExport.py Allow the configuration of HOY_INVERTER_WATT. This variable contains the power rating of the inverter. i.e. a HMS-2000-4T has a power rating of 2000 Wp. HOY_MAX_WATT can be set lower than HOY_INVERTER_WATT to throttle the inverter. Setting HOY_MAX_WATT to 600 will limit the maximum output of the inverter mentioned above to 600 W. --- HoymilesZeroExport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HoymilesZeroExport.py b/HoymilesZeroExport.py index 773b35a..ad7a3b6 100644 --- a/HoymilesZeroExport.py +++ b/HoymilesZeroExport.py @@ -1161,8 +1161,8 @@ def CreateDTU() -> DTU: NAME.append(str('yet unknown')) TEMPERATURE.append(str('--- degC')) HOY_MAX_WATT.append(config.getint('INVERTER_' + str(i + 1), 'HOY_MAX_WATT')) - HOY_INVERTER_WATT.append(HOY_MAX_WATT[i]) - HOY_MIN_WATT.append(int(HOY_MAX_WATT[i] * config.getint('INVERTER_' + str(i + 1), 'HOY_MIN_WATT_IN_PERCENT') / 100)) + HOY_INVERTER_WATT.append(config.getint('INVERTER_' + str(i + 1), 'HOY_INVERTER_WATT')) + HOY_MIN_WATT.append(int(HOY_INVERTER_WATT[i] * config.getint('INVERTER_' + str(i + 1), 'HOY_MIN_WATT_IN_PERCENT') / 100)) CURRENT_LIMIT.append(int(0)) AVAILABLE.append(bool(False)) LASTLIMITACKNOWLEDGED.append(bool(False)) From 4128241a3b0a22e8375e662aca80ddd10be05ecf Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:56:40 +0100 Subject: [PATCH 2/7] Update HoymilesZeroExport_Config.ini Allow the configuration of HOY_INVERTER_WATT. This value contains the power rating of the inverter. i.e. a HMS-2000-4T has a power rating of 2000 Wp. HOY_MAX_WATT can be set lower than HOY_INVERTER_WATT to throttle the inverter. Setting HOY_MAX_WATT to 600 will limit the maximum output of the inverter mentioned above to 600 W. --- HoymilesZeroExport_Config.ini | 64 ++++++++++++++++++++++++++--------- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/HoymilesZeroExport_Config.ini b/HoymilesZeroExport_Config.ini index e33c3d4..a230986 100644 --- a/HoymilesZeroExport_Config.ini +++ b/HoymilesZeroExport_Config.ini @@ -239,8 +239,10 @@ POWERMETER_MAX_POINT = 0 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -278,8 +280,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -317,8 +321,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -356,8 +362,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -395,8 +403,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -434,8 +444,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -473,8 +485,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -512,8 +526,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -551,8 +567,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -590,8 +608,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -629,8 +649,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -668,8 +690,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -707,8 +731,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -746,8 +772,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -785,8 +813,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 @@ -824,8 +854,10 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter +HOY_INVERTER_WATT = 1500 +# power limit of your inverter HOY_MAX_WATT = 1500 -# minimum limit in percent, e.g. 5% +# minimum limit in percent, e.g. 5% of your inverter power rating HOY_MIN_WATT_IN_PERCENT = 5 # factor to multiply before set Limit. Some Inverters have some offsets, with that factor you can compensate it. Default = 1 HOY_COMPENSATE_WATT_FACTOR = 1 From 719580f9297c9f08f883e7219334c8b1cf2ec8c7 Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:08:11 +0100 Subject: [PATCH 3/7] Update HoymilesZeroExport_Config.ini Raise config version --- HoymilesZeroExport_Config.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HoymilesZeroExport_Config.ini b/HoymilesZeroExport_Config.ini index a230986..6237b9a 100644 --- a/HoymilesZeroExport_Config.ini +++ b/HoymilesZeroExport_Config.ini @@ -19,7 +19,7 @@ # --------------------------------------------------------------------- [VERSION] -VERSION = 1.81 +VERSION = 1.82 [SELECT_DTU] # --- define your DTU (only one) --- From 6dfd843a517dbb415497d24366eae6c57c0225b8 Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:12:38 +0100 Subject: [PATCH 4/7] Update CHANGELOG.md Add changelog for V1.82 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7a0bf8..5bb5db5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## V1.82 +### script +* read the power rating of each inverter from config file. +* calculate HOY_MIN_POWER based on the inverter power rating. +### config +* add HOY_INVERTER_WATT to INVERTER_x section + ## V1.81 ### script * add option to enable/disable to set the inverter to min watts when the powermeter canĀ“t be read out. https://github.com/reserve85/HoymilesZeroExport/issues/28#issuecomment-1967306742 + https://github.com/reserve85/HoymilesZeroExport/issues/74 From f655406c44cfefee93025b765277307021832dcc Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:14:38 +0100 Subject: [PATCH 5/7] Update HoymilesZeroExport.py Bump version --- HoymilesZeroExport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HoymilesZeroExport.py b/HoymilesZeroExport.py index ad7a3b6..548d375 100644 --- a/HoymilesZeroExport.py +++ b/HoymilesZeroExport.py @@ -15,7 +15,7 @@ # along with this program. If not, see . __author__ = "Tobias Kraft" -__version__ = "1.81" +__version__ = "1.82" import requests import time From 832454ff80b1f7b6c8f44c8001e4bea0c52f40e5 Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:50:02 +0100 Subject: [PATCH 6/7] Update HoymilesZeroExport_Config.ini Make HOY_INVERTER_WATT optional --- HoymilesZeroExport_Config.ini | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/HoymilesZeroExport_Config.ini b/HoymilesZeroExport_Config.ini index 6237b9a..b880c61 100644 --- a/HoymilesZeroExport_Config.ini +++ b/HoymilesZeroExport_Config.ini @@ -239,7 +239,7 @@ POWERMETER_MAX_POINT = 0 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -280,7 +280,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -321,7 +321,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -362,7 +362,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -403,7 +403,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -444,7 +444,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -485,7 +485,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -526,7 +526,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -567,7 +567,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -608,7 +608,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -649,7 +649,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -690,7 +690,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -731,7 +731,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -772,7 +772,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -813,7 +813,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating @@ -854,7 +854,7 @@ HOY_BATTERY_AVERAGE_CNT = 1 # serial number of your inverter, if empty it is automatically read out of the API. If you have more than one inverter you should define the serial number here (prevents mix-up). SERIAL_NUMBER = # power rating of your inverter -HOY_INVERTER_WATT = 1500 +HOY_INVERTER_WATT = # power limit of your inverter HOY_MAX_WATT = 1500 # minimum limit in percent, e.g. 5% of your inverter power rating From 9d776c60cd42bc9a2c98b259012632bdb663a14b Mon Sep 17 00:00:00 2001 From: ms49434 <94918347+ms49434@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:52:14 +0100 Subject: [PATCH 7/7] Update HoymilesZeroExport.py make HOY_INVERTER_WATT optional, default to HOY_MAX_WATT --- HoymilesZeroExport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HoymilesZeroExport.py b/HoymilesZeroExport.py index 548d375..b2ead5c 100644 --- a/HoymilesZeroExport.py +++ b/HoymilesZeroExport.py @@ -1161,7 +1161,7 @@ def CreateDTU() -> DTU: NAME.append(str('yet unknown')) TEMPERATURE.append(str('--- degC')) HOY_MAX_WATT.append(config.getint('INVERTER_' + str(i + 1), 'HOY_MAX_WATT')) - HOY_INVERTER_WATT.append(config.getint('INVERTER_' + str(i + 1), 'HOY_INVERTER_WATT')) + HOY_INVERTER_WATT.append(config.getint('INVERTER_' + str(i + 1), 'HOY_INVERTER_WATT', fallback=HOY_MAX_WATT[i])) HOY_MIN_WATT.append(int(HOY_INVERTER_WATT[i] * config.getint('INVERTER_' + str(i + 1), 'HOY_MIN_WATT_IN_PERCENT') / 100)) CURRENT_LIMIT.append(int(0)) AVAILABLE.append(bool(False))