Tasmota; devices not seperately controlable

Just started with HA, have some issues, one of which are my Tuya based smart plugs.

Flashed the plugs with tasmota and set the MQTT server (runs on a different pi). On Domoticz my plugs work fine, in HA I used the TasmoAdmin addon to discover the devices. It found them and added them with the correct names etcetera.

The issue I have is when I switch one of the devices they are are all toggled… In tasmota ui config is set to posts to homeassistant topic with full topic being set to use the device id. Am I missing something here?

You need to set a separate topic for each device.

Hello… Can you share your code ? Mine is as following (two switches with additional led lights).

  - platform: mqtt
    name: "Hall Etage AV"
    state_topic: "cmnd/hall_av/POWER1"
    command_topic: "cmnd/hall_av/POWER1"
    icon: mdi:lightbulb
    retain: true

  - platform: mqtt
    name: "Hall Etage AV Led"
    state_topic: "cmnd/hall_av/POWER2"
    command_topic: "cmnd/hall_av/POWER2"
    icon: mdi:lightbulb
    retain: true

  - platform: mqtt
    name: "Hall Etage AR"
    state_topic: "cmnd/hall_ar/POWER1"
    command_topic: "cmnd/hall_ar/POWER1"
    icon: mdi:lightbulb
    retain: true

  - platform: mqtt
    name: "Hall Etage AR Led"
    state_topic: "cmnd/hall_ar/POWER2"
    command_topic: "cmnd/hall_ar/POWER2"
    icon: mdi:lightbulb
    retain: true

As previously mentionned by Tom, the topics must be different if you want to control them separately.

Have no code, lovelace auto added to dashboard when tasmoadmin found them:

In domoticz the topic was also homeassistant but they were individually controlable.

Settings show topic and full toppic (not my pic):

1 Like

That’s what I figured, will try that and let you know :+1:

@tom_l thx for the tip, was pretty obvious so a big duhhhhhh moment for me :woozy_face:

1 Like