# HOME ASSISTANT

## Automatically add this device to your Home Assistant though the MQTT discovery.
Refer to the official documentation on how to enable it for the HA instance.

Discovery
Enabled Publish discovery messages after establishing MQTT connection and when birth message is received.
MQTT
Prefix Should be the same as Discovery Prefix in HA instance configuration.
Birth topic
Birth payload By default, Home Assistant sends 'online' and 'offline' to `homeassistant/status`. Instead of sending discovery message only when device makes MQTT connection, also publish it every time this topic receives the specified payload.
See MQTT integration documentation for more information.
Retain Whether to set Retain flag on outgoing MQTT messages. When enabled, published discovery messages for the current state are be persisted by the broker and would be received by subscribers even when the device is offline.
Publish & Clear
Manually trigger discovery messages for the configured prefix
`<prefix>/<component>/espurna-123456/config`