/
config.example.yaml
47 lines (39 loc) · 1.18 KB
/
config.example.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
xmpp:
host: my.xmpp.host
port: 5222
username: username@my.xmpp.host
password: password
recipients:
- recipient1@my.xmpp.host
- recipient2@my.xmpp.host
mqtt:
host: eu1.cloud.thethings.network
port: 8883
username: myapp@ttn
password: myapppassword
topic: v3/myapp@ttn/devices/+/up
client_id: plantmonitor
watchdog:
timeout: 360 # expect a new sensor value every 6 minutes
giphy:
api_key: "<mygiphykey>"
sensor:
adc:
raw_lower_bound: 1491 # Value between 1491 and 1504 most of the time. (wet)
raw_upper_bound: 3624 # Value between 3610 and 3624 most of the time. (dry)
raw_noise_margin: 100 # Margin between min and max raw value which describe a very similar moisture value (noise). Controls hysteresis.
mvg_avg_len: 10 # Number of recent sensor values to take into consideration for moving average filter
levels:
- name: low
start: 0
end: 30
notification_interval: 30
- name: normal
start: 31
end: 66
notification_interval: 0
- name: high
start: 67
end: 100
notification_interval: 30
lang_code: "de" # ISO 639-1 Code of language (needs to be supported by existing lang_<lang_code>.yaml file!)