1. MQTT structure
2. Install mosquito MQTT broker on home assistant
Configuration:
logins:
- username: mqtt
password: '123'
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
Note: username and password just replace by yourself.
3. MQTT communication
4. MQTT communication test
Configuration-->Devices & Services --> Mosquitto broker "CONFIGURE"