-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwaveshare_ups.yaml
36 lines (33 loc) · 1006 Bytes
/
waveshare_ups.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
#MQTT
#If this section does not exist, program will quit
mqtt:
#Broker has no default and must be provided
broker: '192.168.1.1'
#If username is defined, both username and password must be defined
#username: 'user'
#password: 'pass
#The remaining fields have defaults shown below
#port: 1883
#prefix: ups
#Waveshare UPS config
ups:
#Model can be one of:
#32V_2A
#16V_5A
#AFAIK this covers all of the products, let me know if it doesn't
model: '32V_2A'
#Address on the I2C bus
#Defaults to 0x42 for 32V_2A
#Defaults to 0x43 for 16V_5A
#address: 0x42
#For update rate parameters, the following values are the defaults
#Update Rate in seconds
#Data will be published at least this fast
#May publish faster if the data changes rapidly
#update_rate: 30
#Minimum change in current to trigger an update
#update_cur: 0.1
#Minimum change in bus voltage to trigger an update
#update_volt: 0.1
#Minimum change in battery % to trigger an update
#update_pct: 5