MQTT Device not found

Hi All,

So I bought a new Sonoff Wifi Switch and loaded a custom firmware (tasmota). So far so good. Now I want to use it as MQTT device in my home assistant setup.

Unfortunately I am not able to get the device to show up. I see in the tasmota logs that the device connected to my home assistant server and I also see in the Mosquitto broker logs that the device connected. But I am not able to see this as device in the integration section no can I find the entity anywhere.

I also set the commands “SetOption19 1” but nothing.

Additionally I installed the MQTT Explorer and successfully connected to my home assistant system. Here I also see the device and can toggle the switch, but I can not see it in HA?!

I also tried to add the device manually in the configuration yaml and entered the commands there, but for some reason I was not able to trigger the switch.

I assume the subject has been discussed before but I could not find any solution to my issue.

Any idea what else I could try ?

Thanks,
mcb

What firmware did you flash on the Sonoff ? If you flashed tasmota lite, autodiscovery does not work. You have to upgrade your device to tasmota.bin for autodiscovery to work.

Thanks I did not thought of the limitation through the firmware I selected. I am using the basic version.
If I understood correctly, a few features are not supported:

  • MQTT_HOST_DISCOVERY
  • USE_DISCOVERY
  • USE_HOME_ASSISTANT

But I am not sure if they would be required in order to work. I see the device connect to HA and I also see the device in the MQTT explorer, therefor I thought it should also work in HA.

If the discovery is not supported, as it seems, how would I use the device then, via YAML configuration?

Yes. See: Home Assistant - Tasmota

1 Like