Initial HA Support (testing..)

This commit is contained in:
bohdan-s
2022-12-09 14:36:42 +11:00
parent ec02678824
commit cd31a50098
3 changed files with 45 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
config.yaml
SunGather/config.yaml
*.log.*
# Byte-compiled / optimized / DLL files
+8 -1
View File
@@ -19,4 +19,11 @@ COPY SunGather/config-example.yaml /config/config.yaml
USER sungather
CMD [ "python", "sungather.py", "-c", "/config/config.yaml", "-l", "/logs/" ]
CMD [ "python", "sungather.py", "-c", "/config/config.yaml", "-l", "/logs/" ]
LABEL \
io.hass.name="SunGather" \
io.hass.description="Extract Sungrow data from local Inverter" \
io.hass.version=${BUILD_VERSION} \
io.hass.type="addon" \
io.hass.arch=${BUILD_ARCH}
+36
View File
@@ -0,0 +1,36 @@
name: SunGather
version: "0.3.9"
slug: modbus_inverter
description: Extract Sungrow data from local Inverter
url: "https://github.com/bohdan-s/SunGather"
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
init: false
startup: application
boot: auto
services:
- "mqtt:need"
options:
Inverter_host: ""
Inverter_port: 502
Inverter_model: ""
Smart_meter: false
Connection: "Modbus"
Scan_level: "STANDARD"
Scan_interval: 30
Scan_timeout: 5
Log_level: "INFO"
schema:
Inverter_host: str
Inverter_port: port
Inverter_model: str
Smart_meter: bool
Connection: "list(Sungrow|Modbus|HTTP)"
Scan_level: "list(BASIC|STANDARD|DETAIL|ALL)"
Scan_interval: int(10,600)
Scan_timeout: int(3,60)
Log_level: "list(INFO|WARNING|ERROR|DEBUG)"