@dillon wrote:
Hello,
I am trying to get started with MQTT in Home Assistant, but I am running into trouble. So far I have:
- Installed the Mosquitto MQTT broker add-on
- Set up a new user called “mqttuser”
- Flashed Tasmota on a 3-relay light switch
- Configured MQTT in Tasmota
It seems like it is connecting to Home Assistant, but auto discovery is not working and neither is manually creating a switch entity in the config file.
MQTT Add-On Log:[19:34:49] INFO: Setup mosquitto configuration [19:34:49] WARNING: SSL not enabled - No valid certs found! [19:34:49] INFO: No local user available [19:34:49] INFO: Initialize Hass.io Add-on services [19:34:49] INFO: Initialize Home Assistant discovery [19:34:49] INFO: Start Mosquitto daemon 1590546889: mosquitto version 1.6.3 starting 1590546889: Config loaded from /etc/mosquitto.conf. 1590546889: Loading plugin: /usr/share/mosquitto/auth-plug.so 1590546889: ├── Username/password checking enabled. 1590546889: |-- *** auth-plug: startup 1590546889: ├── TLS-PSK checking enabled. 1590546889: └── Extended authentication not enabled. 1590546889: Opening ipv4 listen socket on port 1883. 1590546889: Opening ipv6 listen socket on port 1883. 1590546889: Opening websockets listen socket on port 1884. 1590546889: Warning: Mosquitto should not be run as root/administrator. 1590546889: New connection from 192.168.1.21 on port 1883. [INFO] found mqttuser on Home Assistant 1590546890: New client connected from 192.168.1.21 as mqtt-explorer-a2fcf87a (p2, c1, k60, u'mqttuser'). 1590546896: New connection from 192.168.1.11 on port 1883. 1590546896: New client connected from 192.168.1.11 as DVES_7F0E2B (p2, c1, k30, u'mqttuser'). 1590546992: New connection from 172.30.32.1 on port 1883. [WARN] Not found homeassistant on local database 1590546993: Socket error on client <unknown>, disconnecting.
MQTT Configuration:
logins: [] anonymous: false customize: active: false folder: mosquitto certfile: fullchain.pem keyfile: privkey.pem require_certificate: false
Tasmota Console (while attempting manual config):
03:34:55 MQT: Attempting connection... 03:34:55 MQT: Connected 03:34:55 MQT: tele/SW_LRoom/LWT = Online (retained) 03:34:55 MQT: cmnd/SW_LRoom/POWER = 03:35:39 MQT: tele/SW_LRoom/STATE = {"Time":"2020-05-27T03:35:39","Uptime":"0T00:50:09","UptimeSec":3009,"Heap":26,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":4,"POWER1":"ON","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"NetworkOT_Downstairs","BSSId":"B6:FB:E4:AB:C9:E3","Channel":11,"RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:03"}}```
Any ideas what I’m doing wrong?
Posts: 1
Participants: 1