-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
43 lines (39 loc) · 1.62 KB
/
config.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
# Logging debug messsages
# - 'false': only startup and error messages are logged (default)
# - 'true': all incoming and outgoing messages are logged
debug: true
# MQTT server to connect to
server:
host: openwrt.lan
port: 1883
# user: mqttusername
# password: mqttpassword
# MQTT topics to subscribe to (and repost)
topics:
# Example 1 (JSON decoding):
# - 'source' specifies the topic to subscribe to
# - 'deduplicate' specifies the time window in seconds for deduplication (optional). If two messages are received
# consecutively within this period with identical content, the second one is discarded.
# - 'json' specifies the decoding rules for JSON input
# -- 'source' within the JSON block is the JSON reference (can be multilevel e.g. 'device.friendlyName')
# -- 'target' within the JSON block is the topic where the value extracted by the source reference should be posted
- source: zigbee2mqtt/aqara_outside
deduplicate: 60
json:
- source: temperature
target: /sensors/aqara_outside/temperature
- source: humidity
target: /sensors/aqara_outside/humidity
- source: pressure
target: /sensors/aqara_outside/pressure
- source: linkquality
target: /sensors/aqara_outside/linkquality
- source: battery
target: /sensors/aqara_outside/battery
- source: voltage
target: /sensors/aqara_outside/voltage
# Example 2: simple reposting, no JSON decoding is performed
# - 'source' specifies the topic to subscribe to
# - 'target' specifies the topic to repost to
- source: /sensors/originalsensor/value
target: /sensors/newsensor/value