MQTT
MQTT (aka MQ Telemetry Transport) is a machine-to-machine or “Internet of Things” connectivity protocol on top of TCP/IP. It allows extremely lightweight publish/subscribe messaging transport.
Your first step to get MQTT and Home Assistant working is to choose a broker.
Configuration
Adding MQTT to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the sidebar click on Settings.
-
From the configuration menu select: Devices & Services.
-
In the bottom right, click on the Add Integration button.
-
From the list, search and select “MQTT”.
-
Follow the instruction on screen to complete the set up.
Advanced broker configuration
Some broker configuration options can’t be set via the user interface, but require changes of your configuration.yaml
file.
This includes configuring SSL certificate options.
Additional features
- Certificate
- Discovery
- Publish & Dump services
- Birth and last will messages
- Testing your setup
- Logging
Event event_mqtt_reloaded
Event event_mqtt_reloaded
is fired when Manually configured MQTT entities have been reloaded and entities thus might have changed.
This event has no additional data.