various esphome changes
This commit is contained in:
21
esphome/common/mqtt_common.yaml
Normal file
21
esphome/common/mqtt_common.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
#############################################
|
||||
# SYSTEM SPECIFIC VARIABLE SUBSTITUTIONS
|
||||
#############################################
|
||||
substitutions:
|
||||
mqtt_server: !secret ha_mqtt_server
|
||||
mqtt_username: !secret ha_mqtt_username
|
||||
mqtt_password: !secret ha_mqtt_password
|
||||
mqtt_topic: "esphome" #main topic for the mqtt server, call it what you like
|
||||
|
||||
#############################################
|
||||
# MQTT Monitoring
|
||||
# https://esphome.io/components/mqtt.html?highlight=mqtt
|
||||
# MUST also have api enabled if you enable MQTT
|
||||
#############################################
|
||||
mqtt:
|
||||
broker: ${mqtt_server}
|
||||
topic_prefix: ${mqtt_topic}/${devicename}
|
||||
username: ${mqtt_username}
|
||||
password: ${mqtt_password}
|
||||
discovery: false # enable entity discovery (true is default, we don't want two HA Instances)
|
||||
id: mqtt_client
|
Reference in New Issue
Block a user