* Helpful utils that will allow to reduce common code * Update config with new options for blescanmulti * Default values for blescanmulti if not provided by config file * Allow to configure scan behavior * Allow to configure returned payload * Initial version of saving last state * Support class that will remember last status of device * Add docs for available options * Move scanner to instance, this will prevent recreating it each time it is required to scan * Use items instead of values. We require here to have pair of key and value, not just value * Make sure that mac address is in lower case * Optimize searching for devices, use hash maps * Remove unused method * Because YAML is already doing some conversions this change will allow to always get proper value * Fix issue. Mac address and name was provided in wrong order * Use worker to format topic * Send also RSSI info
71 lines
1.7 KiB
Plaintext
71 lines
1.7 KiB
Plaintext
mqtt:
|
|
host: 192.168.1.1
|
|
port: 1883
|
|
username: user
|
|
password: password
|
|
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:
|
|
topic_subscription:
|
|
update_all:
|
|
topic: homeassistant/status
|
|
payload: online
|
|
workers:
|
|
mysensors:
|
|
args:
|
|
port: /dev/ttyUSB0
|
|
baudrate: 9600
|
|
topic_prefix: mysensors/out
|
|
thermostat:
|
|
args:
|
|
devices:
|
|
bedroom: 00:11:22:33:44:55
|
|
topic_prefix: thermostat
|
|
topic_subscription: thermostat/+/+/set
|
|
update_interval: 60
|
|
miscale:
|
|
args:
|
|
mac: 00:11:22:33:44:55
|
|
topic_prefix: miscale
|
|
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
|
|
update_interval: 300
|
|
|
|
mithermometer:
|
|
args:
|
|
devices:
|
|
living_room: 00:11:22:33:44:55
|
|
topic_prefix: mithermometer
|
|
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
|