Config Mapping

This commit is contained in:
bohdan-s
2022-12-09 15:30:07 +11:00
parent cd31a50098
commit 6536381019
+21 -18
View File
@@ -12,25 +12,28 @@ arch:
init: false init: false
startup: application startup: application
boot: auto boot: auto
webui: http://[HOST]:[PORT:8080]/
services: services:
- "mqtt:need" - "mqtt:need"
ports:
8080/tcp: 8080
options: options:
Inverter_host: "" host: 192.168.1.100
Inverter_port: 502 timeout: 10
Inverter_model: "" scan_interval: 30
Smart_meter: false connection: 'modbus'
Connection: "Modbus" smart_meter: True
Scan_level: "STANDARD" use_local_time: False
Scan_interval: 30 log_console: 'INFO'
Scan_timeout: 5 log_file: 'OFF'
Log_level: "INFO" level: 'STANDARD'
schema: schema:
Inverter_host: str host: str
Inverter_port: port timeout: int(3,60)?
Inverter_model: str scan_interval: int(5,600)?
Smart_meter: bool connection: "list(sungrow|modbus|HTTP)"
Connection: "list(Sungrow|Modbus|HTTP)" smart_meter: bool?
Scan_level: "list(BASIC|STANDARD|DETAIL|ALL)" use_local_time: bool?
Scan_interval: int(10,600) log_console: "list(OFF|INFO|WARNING|ERROR|DEBUG)"?
Scan_timeout: int(3,60) log_file: "list(OFF|INFO|WARNING|ERROR|DEBUG)"?
Log_level: "list(INFO|WARNING|ERROR|DEBUG)" level: "list(BASIC|STANDARD|DETAIL|ALL)"?