Hi,
Just a newbie with HA looking for some help to connect to MQTT
I have my server running on a Virtual Machine in my QNAP NAS.
I just tried to discover a Tasmota device… but nothing showup in the TASMOTA integration.
As the communication goes througth MQTT, I decide to test it a bit…
Following the instructions here:
I am able to to publish an listen the messages… so the server is up an runing…
In Settings-People, I created a
User name:1
and its password:2
Just to avoid typing mistakes and only with local access
I re-started the VM to make sure new user is considered
If I try to connect to the broker qith MQTT explorer, I receive the meesage “Disconected from the server”
Using CMD and Mosquitto for windows, for example:
C:\Program Files\mosquitto>mosquitto_pub.exe -h 192.168.1.16 -t SONOF_POW -m On -p 1883 -P 2 -u 1
receive the following message:
Error: No connection could be made because the target machine actively refused it.)
I don´t think that is a firewall problem of the WM ) I couldn´t find any) as seem that the client is interacting with the broker…
Looking at the logs, I cannot see estrange things:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] mosquitto.sh: executing...
[21:50:45] INFO: SSL is not enabled
[cont-init.d] mosquitto.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[21:50:48] INFO: Starting NGINX for authentication handling...
[21:50:48] INFO: Starting mosquitto MQTT broker...
1661197849: Warning: Mosquitto should not be run as root/administrator.
[21:50:53] INFO: Successfully send discovery information to Home Assistant.
[21:50:55] INFO: Successfully send service information to the Supervisor.