Undelete MQTT device in Home Assistant

I deleted an MQTT device (Sonoff switch running Tasmota) in Home Assistant. Now I want to undelete it. I have tried changing the devices name & MQTT topic. I can see the MQTT messages in MQTT Explorer. Any idea how to undo my own dumb? Cheers Team!

Try issuing SO19 0 and then SO19 1 in the Tasmota console

Thanks @Tediore, unfortunately no change :frowning: It’s still not showing up but visible in the MQTT explorer. Where is that setting stored? Is it in the db or a yaml somewhere?

It’s stored on the Sonoff. What version of Tasmota do you run?

@DavidFW1960 8.5.1. Should I reset the configuration?

I would be inclined to:
on the device tasmota console setoption19 0 (disable discovery)
in HA remove the MQTT integration and restart HA
when restarted ass MQTT integration again
on the device tasmota console setoption19 1 (enable discovery)
it should then pop up in HA immediately.

1 Like