Setup a MQTT Broker
Overview
MQTT stands for Message Queuing Telemetry Transport. It is a simple and lightweight protocol that works on the publish-subscribe principle. and transports messages between devices. It is based on TCP/IP, however, any network protocol that provides bi-directional, lossless, and ordered connections can support MQTT. This protocol is highly useful when the network bandwidth is limited or when low-power sensors are used. (Further reading)
Steps
- In Home Assistant click on "Supervisor" -> "Add-on Store" -> search "Mosquitto broker" -> click "Install" -> click "Start"
- Go to "Configuration" -> "Integrations" -> click on "Configure" on the "MQTT" integration -> click "Submit" -> click "Finish"
- Open up your "File Editor" to modify your "configuration.yaml" file
- Add the lines somewhere in the file, update the IP address of your Home Assistant server:
mqtt:
broker: 192.168.1.13
- Click "Save" and restart your server
No Comments