Files
bt-mqtt-gateway/config.yaml.example
Marcel Hoppe 8fbf3540bd Discovery (#74)
* add support for Home Assistants MQTT discovery

* add format_topic a flexible separator

* add mqtt discovery for miflora

* add mqtt discovery for mithermometer

* add mqtt discovery for thermostat

* add unit to illuminance in miflora

* switch to 'away_mode_command_topic' instead of 'away_command_topic'

* revert changing the date format

* add mac to ientifiers and change the id generation

* add mac to ientifiers and change the id generation on thermostat

* add mac to ientifiers and change the id generation for mithermometer
2019-06-21 12:25:27 +02:00

96 lines
2.5 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:
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
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
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