forked from jblance/mpp-solar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowermon.yaml
52 lines (52 loc) · 1.03 KB
/
powermon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# yaml config for powermon
device:
name: Test_Inverter
id: 123456789
model: 8048MAX
manufacturer: MPP-Solar
port:
baud: 2400
path: /dev/ttyUSB0
type: test
protocol: PI30MAX
commands:
- command: QPIGS
outputs:
- name: screen
tag: Test_Inverter
- command: QPIGS2
outputs:
- name: screen
tag: Test_Inverter
- command: QPGS0
outputs:
- name: screen
tag: Test_Inverter
filter: ^serial|^work|^charger|^fault
- command: Q1
outputs:
- name: screen
tag: Test_Inverter
filter: ^inverter_charge
- command: QED
# f_command: f'QED{(date.today()-timedelta(days=1)).strftime("%Y%m%d")}'
f_command: f'QED{(date.today()).strftime("%Y%m%d")}'
outputs:
- name: screen
tag: Test_Inverter
filter: ^pv
mqttbroker:
name: localhost
port: 1883
user: null
pass: null
adhoc_commands:
topic: Test_Inverter/commands
outputs:
- name: screen
tag: Test_Inverter
daemon:
type: systemd
keepalive: 10
#daemon: initd
loop: 60