Skip to content

Configure MQTT in Home Assistant

aderusha edited this page Mar 3, 2021 · 4 revisions

In order for Home Assistant to work with MQTT, you'll need to setup two things:

  1. An MQTT "broker" - this is the service which all MQTT devices will communicate with to send and receive messages
  2. MQTT Integration for Home Assistant

MQTT Broker

If you're running a standard Home Assistant installation, you can use the Mosquitto Broker from the Home Assistant Add-on Store.

  1. Navigate in your Home Assistant frontend to Supervisor -> Add-on Store.
  2. Find the "Mosquitto Broker" add-on and click it.
  3. Click on the "INSTALL" button.

Otherwise, if you're using a "core" installation of Home Assistant (python venv or similar) you can refer to this page for information on some available options. Most users will want to deploy the Mosquitto MQTT broker.

MQTT Integration for Home Assistant

Once you have an MQTT broker available, you can follow this guide to configure Home Assistant to utilize the new broker. Be sure to enable MQTT discovery!

Continue to the next step

Once Home Assistant is configured for MQTT support, you can proceed to setup your HASP device for WiFi and MQTT.