-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
75 lines (75 loc) · 1.94 KB
/
config.example.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
mqtt:
uri: mqtt://192.168.86.123
# anything that matches these will become the root state
subscriptions:
- value/#
- home/sensor/#
- rfsensor/myroom/rfin
data:
# location to backup current state for recovering on restart
file: /etc/mqtt-state/state.json
# Alternatively use Redis
# redis: "redis://192.168.1.123"
http:
port: 3000
metrics:
# Each rule gets it's own metric unless you declare "shared metrics" here
- name: temperature
help: Current temperature
labelNames:
- room
- zone
rules:
- key: bedroom/temperature
type: alias
source: root/value/sensor/bedroom/temperature
metric: # To use a shared metric declare it here
name: temperature
labels:
room: bedroom
zone: default
- key: bedroom/light
type: alias
source: root/value/sensor/bedroom/light
- key: living/temperature
type: alias
source: root/value/sensor/lounge-temperature/temperature
- key: living/humidity
type: alias
source: root/value/sensor/lounge-humidity/humidity
- key: living/light
type: alias
source: root/value/sensor/lounge-luminescence/luminescence
- key: nursery/temperature
type: alias
source: root/value/sensor/nursery/temperature
- key: nursery/light
type: alias
source: root/value/sensor/nursery/light
- key: bedroom/toocold
type: calculation
op: "<"
source: bedroom/temperature
value: 18
- key: house/temperatures
type: merge
sources:
bedroom: "bedroom/temperature"
nursery: "nursery/temperature"
- key: hallway/motion
type: match
source: "root/RF433/garage/rfin"
regexp: ".*(59875C|D5455)$"
- key: hallway/presence
type: activity
interval: 30000
sources:
- "hallway/motion"
- "root/sensor/hallway/input/trigger"
- "root/sensor/kitchen/input/trigger"
- key: house/motion
type: logical
op: or
sources:
- hallway/presence
- kitchen/presence