If you just added the integration, you need to restart home assistant.
Also action setoption19 On again.
Do you see in dev tools under <> if you type in switch.sonoff… is it listed? Do you only have one sonoff device?
I restarted home assistant and setoption19 on again. No devices show up in the integrations page nor in the dev <> page.
Yes, I only have one sonoff device for now.
I tried testing MQTT by subscribing to a random topic using mosquitto_sub in debug mode & mosquitto_pub (debug mode) to publish to that topic. Mosquitto_pub publishes the message with no issues but mosquitto_sub never received the message.
Would this be a cause as to why the devices are not being discovered?
if you can’t send a direct mqtt message from ha to topic cmnd/sonoff/power with payload “toggle” and see the power toggle in the tasmota console means not everything is connected to your mqtt broker or the acl settings are not correct
I know this is a very old topic but it’s the one that appears high in google. So might be of some use to others that are struggling to get their devices discovered.
I have just spent hours trying to get my tasmota plug to be discovered by home assistant.
Turns out I had the “lite” version of the firmware installed, upgraded to the full version (not lite) and the plug was instantly discovered.
Piling on for anyone who finds this via a google search - if you click Information in the Tasmota main menu you can see the version, and if it says (lite) you should do a firmware update. Thanks to Sleeps’ comment, I was able to get my devices discovered.
Home Assistant support is not built in to tasmota-lite.bin. Use the standard tasmota.bin or other binaries that include Home Assistant support.
There’s important additional information on that page explaining that the preferred way now is to use Tasmota’s method of auto-discovery and not Home Assistant’s method, namely MQTT Discovery (in fact, the Tasmota project will eventually drop support for Home Assistant’s MQTT Discovery).
That’s happened to me as well and it stated it prominently after the failed upgrade, so it was easy to confirm the installed version wasn’t the full one. Of course, none of that matters if one hasn’t read Tasmota’s warning that the Lite version doesn’t include support for Home Assistant. Without that knowledge, one might just try (and fail) to get it working with Home Assistant.
What do you mean by Home Assistant not supported in Tasmota Lite version? I can see that the discovery configuration message is issued by Tasmota Lite and the device appears in Home Assistant with MQTT integration.
Thanks for pointing out this. I always tried to avoid “official” Tasmota integration into HA, for it was too excessive and used auto discovery feature instead. Now it seems to be deprecated and Tasmota integration (not included into Lite) will be the only option. Pity, but that was expected. I already has stripped down all (unstable) Tasmota features to its Lite version adding all needed support as a custom code like this. Fortunately, Tasmota is still very useful and handy solution to many problems.