mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 19:12:11 +10:00
v0.3.6: Registers version, logging option, hybrid registers
This commit is contained in:
+117
@@ -0,0 +1,117 @@
|
|||||||
|
config.yaml
|
||||||
|
*.log.*
|
||||||
|
|
||||||
|
# Byte-compiled / optimized / DLL files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Distribution / packaging
|
||||||
|
.Python
|
||||||
|
build/
|
||||||
|
develop-eggs/
|
||||||
|
dist/
|
||||||
|
downloads/
|
||||||
|
eggs/
|
||||||
|
.eggs/
|
||||||
|
lib/
|
||||||
|
lib64/
|
||||||
|
parts/
|
||||||
|
sdist/
|
||||||
|
var/
|
||||||
|
wheels/
|
||||||
|
*.egg-info/
|
||||||
|
.installed.cfg
|
||||||
|
*.egg
|
||||||
|
MANIFEST
|
||||||
|
|
||||||
|
# PyInstaller
|
||||||
|
# Usually these files are written by a python script from a template
|
||||||
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
|
*.manifest
|
||||||
|
*.spec
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
pip-delete-this-directory.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
htmlcov/
|
||||||
|
.tox/
|
||||||
|
.nox/
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.cache
|
||||||
|
nosetests.xml
|
||||||
|
coverage.xml
|
||||||
|
*.cover
|
||||||
|
.hypothesis/
|
||||||
|
.pytest_cache/
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
*.pot
|
||||||
|
|
||||||
|
# Django stuff:
|
||||||
|
*.log
|
||||||
|
local_settings.py
|
||||||
|
db.sqlite3
|
||||||
|
|
||||||
|
# Flask stuff:
|
||||||
|
instance/
|
||||||
|
.webassets-cache
|
||||||
|
|
||||||
|
# Scrapy stuff:
|
||||||
|
.scrapy
|
||||||
|
|
||||||
|
# Sphinx documentation
|
||||||
|
docs/_build/
|
||||||
|
|
||||||
|
# PyBuilder
|
||||||
|
target/
|
||||||
|
|
||||||
|
# Jupyter Notebook
|
||||||
|
.ipynb_checkpoints
|
||||||
|
|
||||||
|
# IPython
|
||||||
|
profile_default/
|
||||||
|
ipython_config.py
|
||||||
|
|
||||||
|
# pyenv
|
||||||
|
.python-version
|
||||||
|
|
||||||
|
# celery beat schedule file
|
||||||
|
celerybeat-schedule
|
||||||
|
|
||||||
|
# SageMath parsed files
|
||||||
|
*.sage.py
|
||||||
|
|
||||||
|
# Environments
|
||||||
|
.env
|
||||||
|
.venv
|
||||||
|
env/
|
||||||
|
venv/
|
||||||
|
ENV/
|
||||||
|
env.bak/
|
||||||
|
venv.bak/
|
||||||
|
|
||||||
|
# Spyder project settings
|
||||||
|
.spyderproject
|
||||||
|
.spyproject
|
||||||
|
|
||||||
|
# Rope project settings
|
||||||
|
.ropeproject
|
||||||
|
|
||||||
|
# mkdocs documentation
|
||||||
|
/site
|
||||||
|
|
||||||
|
# mypy
|
||||||
|
.mypy_cache/
|
||||||
|
.dmypy.json
|
||||||
|
dmypy.json
|
||||||
|
|
||||||
|
# Pyre type checker
|
||||||
|
.pyre/
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
config.yaml
|
config.yaml
|
||||||
|
*.log.*
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|||||||
+2
-1
@@ -11,9 +11,10 @@ RUN pip install --no-cache-dir --upgrade pycryptodomex==3.11.0 -r requirements.t
|
|||||||
|
|
||||||
COPY SunGather/ .
|
COPY SunGather/ .
|
||||||
|
|
||||||
|
VOLUME /logs
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
COPY SunGather/config-example.yaml /config/config.yaml
|
COPY SunGather/config-example.yaml /config/config.yaml
|
||||||
|
|
||||||
USER sungather
|
USER sungather
|
||||||
|
|
||||||
CMD [ "python", "sungather.py", "-c", "/config/config.yaml" ]
|
CMD [ "python", "sungather.py", "-c", "/config/config.yaml", "-l", "/logs/" ]
|
||||||
@@ -138,6 +138,10 @@ or if using the webserver export
|
|||||||
```sh
|
```sh
|
||||||
docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather
|
docker run -v {path to}/config.yaml:/config/config.yaml -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather
|
||||||
```
|
```
|
||||||
|
with webserever export and logging
|
||||||
|
```sh
|
||||||
|
docker run -v {path to}/config.yaml:/config/config.yaml -v{logpath}:/logs -e TZ=Australia/Sydney -p 8080:8080 --name sungather bohdans/sungather
|
||||||
|
```
|
||||||
Note: replace Australia/Sydney with relevant timezone
|
Note: replace Australia/Sydney with relevant timezone
|
||||||
<p align="right">(<a href="#top">back to top</a>)</p>
|
<p align="right">(<a href="#top">back to top</a>)</p>
|
||||||
|
|
||||||
|
|||||||
+436
-11
@@ -1,3 +1,4 @@
|
|||||||
|
version: 0.2.0
|
||||||
registers:
|
registers:
|
||||||
- read:
|
- read:
|
||||||
- name: "protocol_number"
|
- name: "protocol_number"
|
||||||
@@ -261,14 +262,14 @@ registers:
|
|||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
accuracy: 0.1
|
accuracy: 0.1
|
||||||
unit: "V"
|
unit: "V"
|
||||||
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","SG50KTL-M-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT", "SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT","SG5K-D","SG8K-D"]
|
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","SG50KTL-M-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT","SG5K-D","SG8K-D","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "mppt_2_current"
|
- name: "mppt_2_current"
|
||||||
level: 2
|
level: 2
|
||||||
address: 5014
|
address: 5014
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
accuracy: 0.1
|
accuracy: 0.1
|
||||||
unit: "A"
|
unit: "A"
|
||||||
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","SG50KTL-M-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT", "SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT","SG5K-D","SG8K-D"]
|
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","SG50KTL-M-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT","SG5K-D","SG8K-D","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "mppt_3_voltage"
|
- name: "mppt_3_voltage"
|
||||||
level: 2
|
level: 2
|
||||||
address: 5015
|
address: 5015
|
||||||
@@ -456,7 +457,7 @@ registers:
|
|||||||
address: 5077
|
address: 5077
|
||||||
datatype: "U32"
|
datatype: "U32"
|
||||||
unit: "W"
|
unit: "W"
|
||||||
models: ["SG30KTL", "SG10KTL", "SG12KTL", "SG15KTL", "SG20KTL", "SG30KU", "SG36KTL", "SG36KU", "SG40KTL", "SG40KTL-M", "SG50KTL-M", "SG60KTL-M", "SG60KU", "SG30KTL-M", "SG30KTL-M-V31", "SG33KTL-M", "SG36KTL-M", "SG33K3J", "SG49K5J", "SG34KJ", "LP_P34KSG", "SG50KTL-M-20", "SG60KTL", "SG80KTL", "SG80KTL-20", "SG60KU-M", "SG5KTL-MT", "SG6KTL-MT", "SG8KTL-M", "SG10KTL-M", "SG10KTL-MT", "SG12KTL-M", "SG15KTL-M", "SG17KTL-M", "SG20KTL-M", "SG80KTL-M", "SG111HV", "SG125HV", "SG125HV-20", "SG30CX", "SG33CX", "SG36CX-US", "SG40CX", "SG50CX", "SG60CX-US", "SG110CX", "SG250HX", "SG250HX-US", "SG100CX", "SG100CX-JP", "SG250HX-IN", "SG25CX-SA", "SG75CX", "SG3.0RT", "SG4.0RT", "SG5.0RT", "SG5.0RS", "SG6.0RT", "SG7.0RT", "SG8.0RT", "SG10RT", "SG12RT", "SG15RT", "SG17RT", "SG20RT"]
|
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "reactive_power_regulation_setpoint"
|
- name: "reactive_power_regulation_setpoint"
|
||||||
level: 2
|
level: 2
|
||||||
address: 5079
|
address: 5079
|
||||||
@@ -756,7 +757,7 @@ registers:
|
|||||||
# - name: "Reserved"
|
# - name: "Reserved"
|
||||||
# address: 5149
|
# address: 5149
|
||||||
# datatype: "U16"
|
# datatype: "U16"
|
||||||
# multiple: 0.01
|
# accuracy: 0.01
|
||||||
- name: "pid_work_state"
|
- name: "pid_work_state"
|
||||||
level: 2
|
level: 2
|
||||||
address: 5150
|
address: 5150
|
||||||
@@ -789,11 +790,13 @@ registers:
|
|||||||
level: 2
|
level: 2
|
||||||
address: 5216
|
address: 5216
|
||||||
datatype: "S32"
|
datatype: "S32"
|
||||||
|
unit: "W"
|
||||||
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
||||||
- name: "power_meter"
|
- name: "power_meter"
|
||||||
level: 2
|
level: 2
|
||||||
address: 5218
|
address: 5218
|
||||||
datatype: "S32"
|
datatype: "S32"
|
||||||
|
unit: "W"
|
||||||
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
models: ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
||||||
# - name: "Reserved"
|
# - name: "Reserved"
|
||||||
# address: 5153-7012
|
# address: 5153-7012
|
||||||
@@ -802,81 +805,109 @@ registers:
|
|||||||
level: 1
|
level: 1
|
||||||
address: 6100
|
address: 6100
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
unit: "W"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "daily_pv_energy_yields"
|
- name: "daily_pv_energy_yields"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6196
|
address: 6196
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "monthly_pv_energy_yields"
|
- name: "monthly_pv_energy_yields"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6227
|
address: 6227
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "yearly_pv_energy_yields"
|
- name: "yearly_pv_energy_yields"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6250
|
address: 6250
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "direct_power_consumption_today_pv"
|
- name: "direct_power_consumption_today_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6290
|
address: 6290
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
unit: "W"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "direct_power_consumption_pv"
|
- name: "direct_power_consumption_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6386
|
address: 6386
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "direct_power_consumption_monthly_pv"
|
- name: "direct_power_consumption_monthly_pv"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6417
|
address: 6417
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "direct_power_consumption_yearly_pv"
|
- name: "direct_power_consumption_yearly_pv"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6429
|
address: 6429
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "export_power_from_pv_today"
|
- name: "export_power_from_pv_today"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6469
|
address: 6469
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
unit: "W"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "export_power_from_pv"
|
- name: "export_power_from_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6565
|
address: 6565
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "export_power_from_pv_monthly"
|
- name: "export_power_from_pv_monthly"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6596
|
address: 6596
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "export_power_from_pv_yearly"
|
- name: "export_power_from_pv_yearly"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6608
|
address: 6608
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "battery_charge_power_from_pv_today"
|
- name: "battery_charge_power_from_pv_today"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6648
|
address: 6648
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "battery_charge_power_from_pv"
|
- name: "battery_charge_power_from_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 6744
|
address: 6744
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "battery_charge_power_from_pv_monthly"
|
- name: "battery_charge_power_from_pv_monthly"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6775
|
address: 6775
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "battery_charge_power_from_pv_yearly"
|
- name: "battery_charge_power_from_pv_yearly"
|
||||||
level: 2
|
level: 2
|
||||||
address: 6787
|
address: 6787
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
##### Residential Hybrid Inverters only END
|
##### Residential Hybrid Inverters only END
|
||||||
- name: "string_1_current"
|
- name: "string_1_current"
|
||||||
@@ -1047,10 +1078,34 @@ registers:
|
|||||||
accuracy: 0.01
|
accuracy: 0.01
|
||||||
unit: "A"
|
unit: "A"
|
||||||
models: ["SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN"]
|
models: ["SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN"]
|
||||||
|
##### Residential Hybrid Inverters only START
|
||||||
- name: "system_state"
|
- name: "system_state"
|
||||||
level: 2
|
level: 2
|
||||||
address: 13000
|
address: 13000
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
datarange:
|
||||||
|
- response: 0x0002
|
||||||
|
value: "Stop"
|
||||||
|
- response: 0x0002
|
||||||
|
value: "Standby"
|
||||||
|
- response: 0x0010
|
||||||
|
value: "Initial Standby"
|
||||||
|
- response: 0x0020
|
||||||
|
value: "Startup"
|
||||||
|
- response: 0x0040
|
||||||
|
value: "Run"
|
||||||
|
- response: 0x0100
|
||||||
|
value: "Fault"
|
||||||
|
- response: 0x0400
|
||||||
|
value: "Maintain Run"
|
||||||
|
- response: 0x0800
|
||||||
|
value: "Forced Run"
|
||||||
|
- response: 0x1000
|
||||||
|
value: "Off-grid Run"
|
||||||
|
- response: 0x2501
|
||||||
|
value: "Restarting"
|
||||||
|
- response: 0x4000
|
||||||
|
value: "EMS Run"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "running_state"
|
- name: "running_state"
|
||||||
level: 2
|
level: 2
|
||||||
@@ -1061,59 +1116,426 @@ registers:
|
|||||||
level: 2
|
level: 2
|
||||||
address: 13002
|
address: 13002
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "total_pv_generation"
|
- name: "total_pv_generation"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13003
|
address: 13003
|
||||||
datatype: "U32"
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "total_pv_generation"
|
- name: "daily_pv_export"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13005
|
address: 13005
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "total_export_from_pv"
|
- name: "total_pv_export"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13006
|
address: 13006
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "load_power_hybrid"
|
- name: "load_power_hybrid"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13008
|
address: 13008
|
||||||
datatype: "S32"
|
datatype: "S32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "W"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "export_power_hybrid"
|
- name: "export_power_hybrid"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13010
|
address: 13010
|
||||||
datatype: "S32"
|
datatype: "S32"
|
||||||
|
unit: "W"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "daily_battery_charge_from_pv"
|
- name: "daily_battery_charge_from_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13012
|
address: 13012
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "total_battery_charge_from_pv"
|
- name: "total_battery_charge_from_pv"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13013
|
address: 13013
|
||||||
datatype: "U32"
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "co2_reduction"
|
- name: "co2_reduction"
|
||||||
level: 2
|
level: 2
|
||||||
address: 13015
|
address: 13015
|
||||||
datatype: "U32"
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kg"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "daily_direct_energy_consumption"
|
- name: "daily_direct_energy_consumption"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13017
|
address: 13017
|
||||||
datatype: "U16"
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
- name: "total_direct_energy_consumption"
|
- name: "total_direct_energy_consumption"
|
||||||
level: 1
|
level: 1
|
||||||
address: 13018
|
address: 13018
|
||||||
datatype: "U32"
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13020
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_current"
|
||||||
|
level: 2
|
||||||
|
address: 13021
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_power"
|
||||||
|
level: 1
|
||||||
|
address: 13022
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "W"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_level"
|
||||||
|
level: 1
|
||||||
|
address: 13023
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "%"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_state_of_healthy"
|
||||||
|
level: 2
|
||||||
|
address: 13024
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "%"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_temperature"
|
||||||
|
level: 2
|
||||||
|
address: 13025
|
||||||
|
datatype: "S16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "°C"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "daily_battery_discharge_energy"
|
||||||
|
level: 2
|
||||||
|
address: 13026
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "total_battery_discharge_energy"
|
||||||
|
level: 2
|
||||||
|
address: 13027
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "self_consumption_of_day"
|
||||||
|
level: 1
|
||||||
|
address: 13029
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "%"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "grid_state"
|
||||||
|
level: 1
|
||||||
|
address: 13030
|
||||||
|
datatype: "U16"
|
||||||
|
datarange:
|
||||||
|
- response: 0xAA
|
||||||
|
value: "Off-grid"
|
||||||
|
- response: 0x55
|
||||||
|
value: "On-grid"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "phase_a_current"
|
||||||
|
level: 2
|
||||||
|
address: 13031
|
||||||
|
datatype: "S16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "phase_b_current"
|
||||||
|
level: 2
|
||||||
|
address: 13032
|
||||||
|
datatype: "S16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "phase_c_current"
|
||||||
|
level: 2
|
||||||
|
address: 13033
|
||||||
|
datatype: "S16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "total_active_power"
|
||||||
|
level: 0
|
||||||
|
address: 13034
|
||||||
|
datatype: "S32"
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "daily_import_energy"
|
||||||
|
level: 1
|
||||||
|
address: 13036
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "total_import_energy"
|
||||||
|
level: 1
|
||||||
|
address: 13037
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_capacity"
|
||||||
|
level: 1
|
||||||
|
address: 13039
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "daily_charge_energy"
|
||||||
|
level: 2
|
||||||
|
address: 13040
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "total_charge_energy"
|
||||||
|
level: 2
|
||||||
|
address: 13041
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "drm_state"
|
||||||
|
level: 2
|
||||||
|
address: 13043
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "daily_export_energy"
|
||||||
|
level: 1
|
||||||
|
address: 13045
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "total_export_energy"
|
||||||
|
level: 2
|
||||||
|
address: 13046
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
unit: "kWh"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "inverter_alarm"
|
||||||
|
level: 3
|
||||||
|
address: 13050
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "grid-side_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13052
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "system_fault1"
|
||||||
|
level: 3
|
||||||
|
address: 13054
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "system_fault2"
|
||||||
|
level: 3
|
||||||
|
address: 13056
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "dc-side_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13058
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "permanent_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13060
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bdc-side_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13062
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bdc-side_permanent_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13064
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_fault"
|
||||||
|
level: 3
|
||||||
|
address: 13066
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "battery_alarm"
|
||||||
|
level: 3
|
||||||
|
address: 13068
|
||||||
|
datatype: "U32"
|
||||||
|
accuracy: 0.1
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_alarm"
|
||||||
|
level: 3
|
||||||
|
address: 13070
|
||||||
|
datatype: "U32"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_protection"
|
||||||
|
level: 3
|
||||||
|
address: 13072
|
||||||
|
datatype: "U32"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_fault1"
|
||||||
|
level: 3
|
||||||
|
address: 13074
|
||||||
|
datatype: "U32"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_fault2"
|
||||||
|
level: 3
|
||||||
|
address: 13076
|
||||||
|
datatype: "U32"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_alarm2"
|
||||||
|
level: 3
|
||||||
|
address: 13078
|
||||||
|
datatype: "U32"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
|
- name: "bms_status"
|
||||||
|
level: 3
|
||||||
|
address: 13100
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "max_charging_current"
|
||||||
|
level: 3
|
||||||
|
address: 13101
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "max_discharging_current"
|
||||||
|
level: 3
|
||||||
|
address: 13102
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "warning"
|
||||||
|
level: 3
|
||||||
|
address: 13103
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "protection"
|
||||||
|
level: 3
|
||||||
|
address: 13104
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "fault1"
|
||||||
|
level: 3
|
||||||
|
address: 13105
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "fault2"
|
||||||
|
level: 3
|
||||||
|
address: 13106
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "soc"
|
||||||
|
level: 2
|
||||||
|
address: 13107
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "%"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "soh"
|
||||||
|
level: 2
|
||||||
|
address: 13108
|
||||||
|
datatype: "U16"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "battery_current"
|
||||||
|
level: 2
|
||||||
|
address: 13109
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "A"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "battery_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13110
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.01
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "cycle_count"
|
||||||
|
level: 2
|
||||||
|
address: 13111
|
||||||
|
datatype: "U16"
|
||||||
|
accuracy: 0.01
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "average_cell_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13112
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "max_cell_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13113
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "min_cell_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13114
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "battery_pack_voltage"
|
||||||
|
level: 2
|
||||||
|
address: 13115
|
||||||
|
datatype: "U16"
|
||||||
|
unit: "V"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "average_cell_temp"
|
||||||
|
level: 2
|
||||||
|
address: 13116
|
||||||
|
datatype: "S16"
|
||||||
|
unit: "°C"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "max_cell_temp"
|
||||||
|
level: 2
|
||||||
|
address: 13117
|
||||||
|
datatype: "S16"
|
||||||
|
unit: "°C"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
- name: "min_cell_temp"
|
||||||
|
level: 2
|
||||||
|
address: 13118
|
||||||
|
datatype: "S16"
|
||||||
|
unit: "°C"
|
||||||
|
models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30"]
|
||||||
|
##### Residential Hybrid Inverters only END
|
||||||
- hold:
|
- hold:
|
||||||
- name: "year"
|
- name: "year"
|
||||||
level: 0
|
level: 0
|
||||||
@@ -1325,7 +1747,9 @@ registers:
|
|||||||
# address: 5155-5199
|
# address: 5155-5199
|
||||||
scan: # these have to be 1 less than the first register
|
scan: # these have to be 1 less than the first register
|
||||||
- read:
|
- read:
|
||||||
- start: 5000
|
- start: 4949
|
||||||
|
range: 50
|
||||||
|
- start: 5000 # We don't start at 4999 because we read register 5000 once manually, not every scan
|
||||||
range: 100
|
range: 100
|
||||||
- start: 5100
|
- start: 5100
|
||||||
range: 100
|
range: 100
|
||||||
@@ -1359,5 +1783,6 @@ scan: # these have to be 1 less than the first register
|
|||||||
- start: 5034
|
- start: 5034
|
||||||
range: 10
|
range: 10
|
||||||
|
|
||||||
# full Models Supported:
|
# Models Supported:
|
||||||
#["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT", "SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
# PV ["SG30KTL","SG10KTL","SG12KTL","SG15KTL","SG20KTL","SG30KU","SG36KTL","SG36KU","SG40KTL","SG40KTL-M","SG50KTL-M","SG60KTL-M","SG60KU","SG30KTL-M","SG30KTL-M-V31","SG33KTL-M","SG36KTL-M","SG33K3J","SG49K5J","SG34KJ","LP_P34KSG","SG50KTL-M-20","SG60KTL","SG80KTL","SG80KTL-20","SG60KU-M","SG5KTL-MT","SG6KTL-MT","SG8KTL-M","SG10KTL-M","SG10KTL-MT","SG12KTL-M","SG15KTL-M","SG17KTL-M","SG20KTL-M","SG80KTL-M","SG111HV","SG125HV","SG125HV-20","SG30CX","SG33CX","SG36CX-US","SG40CX","SG50CX","SG60CX-US","SG110CX","SG250HX","SG250HX-US","SG100CX","SG100CX-JP","SG250HX-IN","SG25CX-SA","SG75CX","SG3.0RT","SG4.0RT","SG5.0RT","SG5.0RS","SG6.0RT","SG7.0RT","SG8.0RT","SG10RT","SG12RT","SG15RT","SG17RT","SG20RT"]
|
||||||
|
# Hybrid ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH8.0RT","SH6.0RT","SH5.0RT"]
|
||||||
@@ -8,6 +8,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
import logging
|
import logging
|
||||||
|
import logging.handlers
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
import getopt
|
||||||
import yaml
|
import yaml
|
||||||
@@ -394,9 +395,10 @@ class SungrowInverter():
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
configfilename = 'config.yaml'
|
configfilename = 'config.yaml'
|
||||||
|
logfolder = ''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
opts, args = getopt.getopt(sys.argv[1:],"hc:v:", "runonce")
|
opts, args = getopt.getopt(sys.argv[1:],"hc:l:v:", "runonce")
|
||||||
except getopt.GetoptError:
|
except getopt.GetoptError:
|
||||||
logging.debug(f'No options passed via command line')
|
logging.debug(f'No options passed via command line')
|
||||||
|
|
||||||
@@ -407,6 +409,7 @@ def main():
|
|||||||
print(f'\nCommandling arguments override any config file settings')
|
print(f'\nCommandling arguments override any config file settings')
|
||||||
print(f'Options and arguments:')
|
print(f'Options and arguments:')
|
||||||
print(f'-c config.yaml : Specify config file.')
|
print(f'-c config.yaml : Specify config file.')
|
||||||
|
print(f'-l /logs/ : Specify folder to store logs.')
|
||||||
print(f'-v 30 : Logging Level, 10 = Debug, 20 = Info, 30 = Warning (default), 40 = Error')
|
print(f'-v 30 : Logging Level, 10 = Debug, 20 = Info, 30 = Warning (default), 40 = Error')
|
||||||
print(f'--runonce : Run once then exit')
|
print(f'--runonce : Run once then exit')
|
||||||
print(f'-h : print this help message and exit (also --help)')
|
print(f'-h : print this help message and exit (also --help)')
|
||||||
@@ -415,6 +418,8 @@ def main():
|
|||||||
sys.exit()
|
sys.exit()
|
||||||
elif opt == '-c':
|
elif opt == '-c':
|
||||||
configfilename = arg
|
configfilename = arg
|
||||||
|
elif opt == '-l':
|
||||||
|
logfolder = arg
|
||||||
elif opt == '-v':
|
elif opt == '-v':
|
||||||
if arg.isnumeric():
|
if arg.isnumeric():
|
||||||
if int(arg) >= 0 and int(arg) <= 50:
|
if int(arg) >= 0 and int(arg) <= 50:
|
||||||
@@ -443,6 +448,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
registersfile = yaml.safe_load(open('registers.yaml'))
|
registersfile = yaml.safe_load(open('registers.yaml'))
|
||||||
logging.info(f"Loaded registers: {os.getcwd()}/registers.yaml")
|
logging.info(f"Loaded registers: {os.getcwd()}/registers.yaml")
|
||||||
|
logging.info(f"Registers file version: {registersfile.get('version','UNKNOWN')}")
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.error(f"Failed: Loading registers: {os.getcwd()}/registers.yaml {err}")
|
logging.error(f"Failed: Loading registers: {os.getcwd()}/registers.yaml {err}")
|
||||||
sys.exit(f"Failed: Loading registers: {os.getcwd()}/registers.yaml {err}")
|
sys.exit(f"Failed: Loading registers: {os.getcwd()}/registers.yaml {err}")
|
||||||
@@ -470,8 +476,8 @@ def main():
|
|||||||
|
|
||||||
if not config_inverter['log_file'] == "OFF":
|
if not config_inverter['log_file'] == "OFF":
|
||||||
if config_inverter['log_file'] == "DEBUG" or config_inverter['log_file'] == "INFO" or config_inverter['log_file'] == "WARNING" or config_inverter['log_file'] == "ERROR":
|
if config_inverter['log_file'] == "DEBUG" or config_inverter['log_file'] == "INFO" or config_inverter['log_file'] == "WARNING" or config_inverter['log_file'] == "ERROR":
|
||||||
logfile = datetime.now().strftime("%Y%m%d_%H%M%S_SunGather.log")
|
logfile = logfolder + "SunGather.log"
|
||||||
fh = logging.FileHandler(logfile, mode='w', encoding='utf-8')
|
fh = logging.handlers.RotatingFileHandler(logfile, mode='w', encoding='utf-8', maxBytes=10485760, backupCount=10) # Log 10mb files, 10 x files = 100mb
|
||||||
fh.formatter = logger.handlers[0].formatter
|
fh.formatter = logger.handlers[0].formatter
|
||||||
fh.setLevel(config_inverter['log_file'])
|
fh.setLevel(config_inverter['log_file'])
|
||||||
logger.addHandler(fh)
|
logger.addHandler(fh)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.3.5'
|
__version__ = '0.3.6'
|
||||||
Reference in New Issue
Block a user