## MQTT Client Component ##
|
|
## https://esphome.io/components/mqtt.html
|
|
mqtt:
|
|
# Set to 0s to disable switch reboot if no MQTT connection exists
|
|
reboot_timeout: 15min
|
|
broker: ${mqtt_broker}
|
|
username: ${mqtt_username}
|
|
password: ${mqtt_password}
|
|
discovery: false
|
|
log_topic:
|
|
topic: esphome/logs/${devicename}
|
|
level: ERROR
|
|
topic_prefix: esphome
|
|
birth_message:
|
|
topic: esphome/state/${devicename}
|
|
payload: online
|
|
will_message:
|
|
topic: esphome/state/${devicename}
|
|
payload: offline
|