Home assistant – how to setup MQTT

Intro

MQTT is a very important protocol within smart home and allows to send messages back and forth to a broker. see here.

In this tutorial I will show how to set it up within home assistant.

Setup MQTT

First you need to go to your supervisor, addon store and search for “mos” the Mosquitto broker will pop up; click that

Home assistant supervisor

Click install.

Mosquitto install screen

After the install navigate to the configuration tab.

Mosquitto configuration

Within the configuration tab you will need to set-up your users and other settings.

logins: 
  - username: test
    password: testpass
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
MQTT configuration settings

After your configuration is set, navigate to the info tab and press the start button therefore your logs will fill and the grey dot will go green.

Go to Configuration > integration to add the Mosquitto broker to home assistant. Press the configure button.

configure MQTT

Press enable discovery, submit and then finish

finish MQTT cofiguration

You’re now done; If you have further question please comment down below.

Dennis

Related Post

Leave A Comment

Name

Website

Comment