First Tasmota flash. "Entity does not have a unique id" Ds03

I flashed my first device Ds03 fan/dimmer switch.

I followed a guide and template Ds03 template

However the device does show in home assistant but the fan shows up as a light and no dimmer function to the fan like it should have. I added this from the template site to my configuration.yaml, but I get “This entity (“light.guest_bedroom_dimmer”) does not have a unique ID” for both the light and switch for this new enties for the light and dimmer.
I think I went wrong somewhere.

fan:
  - platform: mqtt
    name: "Guest Bedroom Fan"
    state_topic: "stat/Treatlife-DS03/POWER1"
    command_topic: "cmnd/Treatlife-DS03/POWER1"
    speed_state_topic: "stat/Treatlife-DS03/speed"
    speed_command_topic: "cmnd/Treatlife-DS03/TuyaSend4"
    qos: 0
    payload_on: 'ON'
    payload_off: 'OFF'
    payload_low_speed: '3,1'
    payload_medium_speed: '3,2'
    payload_high_speed: '3,3'
    availability_topic: tele/Treatlife-DS03/LWT
    payload_available: Online
    payload_not_available: Offline
    speeds:
      - low
      - medium
      - high
light:
  - platform: mqtt
    name: "Guest Bedroom Dimmer"
    state_topic: "stat/Treatlife-DS03/POWER2"
    command_topic: "cmnd/Treatlife-DS03/POWER2"
    availability_topic: "tele/Treatlife-DS03/LWT"
    brightness_state_topic: "stat/Treatlife-DS03/RESULT"
    brightness_command_topic: "cmnd/Treatlife-DS03/Dimmer"
    brightness_scale: 100
    brightness_value_template: "{{ value_json.Dimmer }}"
    qos: 1
    payload_on: "ON"
    payload_off: "OFF"
    payload_available: "Online"
    payload_not_available: "Offline"
    retain: false

hi there…Did you config mqtt in the tasmota device?

See the FAQ.

If you use the Tasmota integration instead of manually creating the entities this shouldn’t happen.

or you can add unique id to your device definition manually.
Also you can ignore this message. once you took manual control on device definition - it is not needed anymore

Late reply been sick so I haven’t checked back. I have to manually assign the entity for the fan or else it shows up as a light with no dimmer function.
I do not have the tasmota integration so I’m gonna try that and see if it gets me anywhere instead of assigning the platform as mqtt would i need to change that to tasmota or would that be handled by tasmota and I wouldn’t need to change my entity configuration?

I got into the tasmota console and set option 19 as 0 to disable the mqqt discovery then the device showed up in tasmota 1 device 10 entities. now I’m back to where i have no dimmer function of the fan from the entities tasmota created. the fan shows up as a switch.

I figured it out. I set the topic in the yaml as the treatlife dso3 but didn’t change the topic within tasmota to match it. once I set them the same it shows up fine without issues

1 Like