ok 192.168.1.6 is the IP address of the broker? And you have a Mosquitto user defined as a Home Assistant user? (and password)?
When you don’t define a user/password in the broker it uses a home assistant user to authenticate. That needs to be configured in Tasmota as well.
The accesscontrollist should also have this user. I did find I also had to add homeassistant as a user as well.
Also, what makes you think that servce mqtt.publish will do anything at all??? I asked you to do it in the Tasmota Console for a reason - to see if the sonoff is connecting to the broker.
I have mosquito user with password as a home assistant user. (I know I spelled it wrong, sorry).
I think I am not defining a home assistant user/password in the broker, because the Logins: [] brackets are empty. Is that what needs done? I’ve tried it both with “mosquito” and without.
You are saying Tasmota also needs no user and password? I have it configured to the mosquito user.
Access control does have mosquito user. I have now added homeassistant and restarted the broker.
I was following the MQTT Testing page that I linked.
That is the default. no user defined but active set to true. The Broker will then use a Home Assistant user to authenticate.
In my Tasmota it looks like this:
The only thing suspicious in my settings are the accesscontrollist. I have it like this:
user mosquito
user homeassistant
topic readwrite #
Now I rebooted Hass.io so it will be down for an hour. I’ll change the file in the morning.
The next thing I’m going to try is the largest hammer I can afford after I buy HomeSeer. I will never look back at the shattered parts of HomeAssistant.
David, please if you can: you need to edit the mosquitto setup page because it is not correct. There are many things out of sequence for this process that is very delicate. The ACL is wrong.
Thanks for nothing Tom! As I said to you already, I did set up ACL exactly as indicated in the document you linked, and the document is wrong. Do you understand that yet? You must because you’re asking me to submit improvements to that very document.
If you’re just responding to make yourself feel better for not helping then stop wasting my time and your own.
As I said there are links at the top of every document that enable you to submit edits for consideration. Even if the document only requires updating for clarity you may submit a pull request.
This is an open source project and keeping the documents up to date in particular are an easy way to get involved.
The link has moved slightly to the left but these instructions remain valid:
Hi all, i having the same problem but failed to resolve it. Should i continues this post or create new one ?
Using Hassio on Pi
Install MQTT from Hassio Add On
Perform Configuration > Integration > MQTT with Discovery.
My newly flash tuya smart plug with power monitor with tasmota able to connect MQTT and i saw feedback on MQTT explorer to confirm tasmato is communicate with MQTT.
Can’t see my plug show on HA UI. Inside Configuration > Integration > MQTT show “this intergration has no devices”
No additional code in configuration.yaml. As i suppose if you use above method HA should be able to detect and auto add the device right? Or if is working, i should be able to add the device from Configuration > Integration > MQTT (saw few youtube it work easily) but mine
spent almost 24 hours on this keep find read/watch forum & youtube but still can’t fix the problem. Anyone can help ? thanks
Problem resolved ! thanks @DavidFW1960 for the help. Turn out is due to the Tuya-Convert firmware does not suppose auto discover. So have to manually update the firmware to sonoff.bin after complete tuya convert.
Did all what Merlin indicated and still couldn’t get this after beating my head against a wall for a week. d3vilsim post was the final fix for me, I was running sonoff basic and needed to update to sonoff.bin. Didn’t realize this as everything else seemed to work, it ‘accepted’ the setoption19, etc. finally my switches show up, all via discovery. thanks.
Did you flash the FULL Tasmota after the updrade? The tasmota-lite.bin Tuya uses is not compatible with discovery. You must load firmware that allows discovery so just flast tasmota.bin and it will work.
I did not flash the full Tasmota firmware after using Tuya-Convert and that was the issue. Now I have flashed the full firmware it is working as expected. I should of read the Tuya-Convert documentation again. Thanks for your help.