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