@ -1433,39 +1433,40 @@
< div class = "page" >
< div class = "page" >
< fieldset >
< fieldset >
< legend > Discover< / legend >
< legend > < a rel = "noopener" target = "_blank" href = "https://www.home-assistant.io/docs/mqtt/discovery/" > Discovery< / a > < / legend >
< div class = "pure-g" >
< div class = "pure-g" >
< label class = "pure-u-1 pure-u-lg-1-4" > Discover < / label >
< div class = "pure-u-1 pure-u-lg-1-4" > < input type = "checkbox" name = "haEnabled" tabindex = "14" / > < / div >
< label class = "pure-u-1 pure-u-lg-1-4" > Enabled < / label >
< div class = "pure-u-1 pure-u-lg-1-4" > < input type = "checkbox" name = "haEnabled" / > < / div >
< div class = "pure-u-0 pure-u-lg-1-2" > < / div >
< div class = "pure-u-0 pure-u-lg-1-2" > < / div >
< div class = "pure-u-0 pure-u-lg-1-4" > < / div >
< div class = "pure-u-0 pure-u-lg-1-4" > < / div >
< div class = "pure-u-1 pure-u-lg-3-4 hint" >
< div class = "pure-u-1 pure-u-lg-3-4 hint" >
Home Assistant auto-discovery feature. Enable and save to add the device to your HA consol e.
Home Assistant MQTT discovery. Enable / disable, then save to trigger the updat e.
< / div >
< / div >
< / div >
< / div >
< div class = "pure-g" >
< div class = "pure-g" >
< label class = "pure-u-1 pure-u-lg-1-4" > Prefix< / label >
< label class = "pure-u-1 pure-u-lg-1-4" > Prefix< / label >
< input class = "pure-u-1 pure-u-lg-1-4" name = "haPrefix" type = "text" tabindex = "15" / >
< input class = "pure-u-1 pure-u-lg-1-4" name = "haPrefix" type = "text" / >
< div class = "pure-u-0 pure-u-lg-1-2" > < / div >
< div class = "pure-u-0 pure-u-lg-1-4" > < / div >
< div class = "pure-u-1 pure-u-lg-3-4 hint" >
The prefix for the discovery topic e.g. < code > < strong > < prefix> < / strong > /switch/espurna-123456/config< / code >
< / div >
< / div >
< / div >
< legend > Configuration< / legend >
< legend > MQTT< / legend >
< div class = "pure-g" >
< div class = "pure-g" >
< label class = "pure-u-1 pure-u-lg-1-4" > Configuration< / label >
< div class = "pure-u-1-4 pure-u-lg-3-4" > < button type = "button" class = "pure-button button-ha-config pure-u-1-3" > Show< / button > < / div >
< label class = "pure-u-1 pure-u-lg-1-4" > Retain< / label >
< div class = "pure-u-1 pure-u-lg-1-4" > < input type = "checkbox" name = "haRetain" / > < / div >
< div class = "pure-u-0 pure-u-lg-1-2" > < / div >
< div class = "pure-u-0 pure-u-lg-1-4" > < / div >
< div class = "pure-u-0 pure-u-lg-1-4" > < / div >
< div class = "pure-u-1 pure-u-lg-3-4 hint" >
< div class = "pure-u-1 pure-u-lg-3-4 hint" >
These are the settings you should copy to your Home Assistant "configuration.yaml" file.
If any of the sections below (switch, light, sensor) already exists, do not duplicate it,
simply copy the contents of the section below the ones already present.
Set the < strong > Retain< / strong > flag when sending the messages.
< / div >
< / div >
< / div >
< / div >
< div class = "pure-g" >
< textarea class = "pure-u-1 terminal" id = "haConfig" name = "haConfig" wrap = "off" readonly > < / textarea >
< / div >
< / fieldset >
< / fieldset >
< / div >
< / div >