Configuring multiple Tasmota devices

Newbie here.

I’ve successfully configured Home Assistant to access a Tasmota device. It’s running on an ESP microcontroller to access 4 relays using the generic setting. I now want to add more similar devices. When I try to ‘add integration’ I get ‘Already configured. Only a single configuration possible’.

I’ve also got Kasa devices, and I’ve added nine of these, no problem.

Can I really only have one Tasmota device, or am I missing something?

Any assistance greatly appreciated.

The Tasmota integration supports multiple devices (for example, I have 16).

Devices are added automatically via Tasmota’s native MQTT discovery protocol.

You will need to restart HA and it should discover the new devices. Make sure you have the mqtt fields filled out in tasmota.

FWIW, I didn’t need to restart Home Assistant in order for the Tasmota integration to discover new devices.

The new device publishes its discovery information (unless this function isn’t enabled or misconfigured on the device) to the MQTT broker. Home Assistant’s Tasmota integration detects the published discovery data and uses it to create an appropriate device and entities.

I haven’t added any devices in a while. Next time I’ll have to see how to do that automatically without restart.

From the documentation, here are the key requirements to automatically discover Tasmota devices.

  • Tasmota devices’ MQTT setting configured to communicate with the MQTT broker.
  • Tasmota devices flashed with version 9.2, or later (tasmota-lite.bin does not support this integration).
  • Tasmota devices configured for native discovery (SetOption19 0).
  • Although the Tasmota integration supports custom fulltopic it is strongly suggested to leave fulltopic at its default, Tasmota does not prevent setting an invalid or non-unique fulltopic, for example a fulltopic without the %prefix% or %topic% tokens.
1 Like

Many thanks for the suggestions!

In the end I changed the topic name on both devices and rebooted the HA server and it has picked them up. No idea why it did not do this before.

Regards,

Phil

What was it originally and what did you change it to?

I used the default names originally (tasmota_%06X etc) and changed them to TasmotaBox1 and TasmotaBox2. Can’t see why this should work, but it has!

That’s the client_id.

The device logs into the MQTT broker using whatever username and password you configured. All devices can use the same username/password but use client_id to distinguish one for the other.

The %06X gets replaced by a unique hexadecimal value. For example: tasmota_912FE3

Changing it to a hard-coded value is permissible as long as they’re unique to each device. The only way changing it helps to fix something was if you had devices with identical client_id values. If you didn’t then changing it was merely incidental to whatever else was done (like restart something).