mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 11:02:10 +10:00
Initial HA Support (testing..)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
config.yaml
|
SunGather/config.yaml
|
||||||
*.log.*
|
*.log.*
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
|
|||||||
@@ -20,3 +20,10 @@ COPY SunGather/config-example.yaml /config/config.yaml
|
|||||||
USER sungather
|
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
@@ -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)"
|
||||||
Reference in New Issue
Block a user