forked from zewelor/bt-mqtt-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.example
executable file
·141 lines (140 loc) · 4.54 KB
/
config.yaml.example
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
mqtt:
host: 192.168.1.1
port: 1883
username: user
password: password
#ca_cert: /etc/ssl/certs/ca-certificates.crt # Uncomment to enable MQTT TLS, update path to appropriate location.
#ca_verify: False # Verify TLS certificate chain and host, disable for testing with self-signed certificates, default to True
topic_prefix: hostname # All messages will have that prefix added, remove if you dont need this.
client_id: bt-mqtt-gateway
availability_topic: lwt_topic
manager:
sensor_config:
topic: homeassistant
retain: true
topic_subscription:
update_all:
topic: homeassistant/status
payload: online
command_timeout: 35 # Timeout for worker operations. Can be removed if the default of 35 seconds is sufficient.
workers:
mysensors:
command_timeout: 35 # Optional override of globally set command_timeout.
args:
port: /dev/ttyUSB0
baudrate: 9600
topic_prefix: mysensors/out
thermostat:
args:
devices:
bedroom: 00:11:22:33:44:55 # Simple format
living_room: # Extended format with additional configuration
mac: 00:11:22:33:44:55
discovery_temperature_topic: some/sensor/with/temperature # Optional current_temperature_topic for HASS discovery
discovery_temperature_template: "{{ value_json.temperature }}" # Optional current_temperature_template for HASS discovery
topic_prefix: thermostat
topic_subscription: thermostat/+/+/set
update_interval: 60
miscale:
args:
mac: 00:11:22:33:44:55
topic_prefix: miscale
users: # Used for recognizing multiple people, as well as for decoding body metrics! (Optional)
Alex: # Name (used in MQTT to define a user topic)
weight_template: # The weight template that the user will be tracked by!
min: 70
max: 90
sex: male # Sex (male or female)
height: 185 # Height (in cm)
dob: 2000-01-11 # DOB (in yyyy-mm-dd format)
Olivia:
weight_template:
min: 30
max: 60
sex: female
height: 165
dob: 2000-02-22
update_interval: 1800
linakdesk:
args:
mac: 00:11:22:33:44:55
topic_prefix: linak_desk
update_interval: 1800
miflora:
args:
devices:
herbs: 00:11:22:33:44:55
topic_prefix: miflora
per_device_timeout: 6 # Optional override of globally set per_device_timeout.
update_interval: 300
mithermometer:
args:
devices:
living_room: 00:11:22:33:44:55
topic_prefix: mithermometer
per_device_timeout: 6 # Optional override of globally set per_device_timeout.
update_interval: 300
blescanmulti:
args:
devices:
beacon: 00:11:22:33:44:55
smartwath: 00:11:22:33:44:55
topic_prefix: blescan
available_payload: home
unavailable_payload: not_home
available_timeout: 0
unavailable_timeout: 60
scan_timeout: 10
scan_passive: true
update_interval: 60
toothbrush:
args:
devices:
ix: 00:11:22:33:44:55
ia: 11:22:33:44:55:66
topic_prefix: toothbrush
update_interval: 10
toothbrush_homeassistant:
args:
autodiscovery_prefix: homeassistant
topic_prefix: toothbrush
devices:
ix:
name: IX
mac: 00:11:22:33:44:55
ia:
name: IA
mac: 11:22:33:44:55:66
update_interval: 10
switchbot:
args:
devices:
heater: 00:11:22:33:44:55
topic_prefix: switchbot/bathroom
state_topic_prefix: switchbot/bathroom
topic_subscription: switchbot/+/+/set
update_interval: 60
smartgadget:
args:
devices:
living_room: 00:11:22:33:44:55
topic_prefix: smartgadget
update_interval: 300
ruuvitag:
args:
devices:
basement: 00:11:22:33:44:55
topic_prefix: ruuvitag
update_interval: 60
lywsd02:
args:
devices:
living_room: 00:11:22:33:44:55
topic_prefix: mijasensor
update_interval: 120
lywsd03mmc:
args:
devices:
bathroom: 00:11:22:33:44:55
topic_prefix: mijasensor_gen2
update_interval: 120