Convert Bazz Downlight from Tasmota to ESPHome

Hi friends,

I just figured Tasmota out, and now I’m reading ESPhome might actually be a bit more efficient. I have one ESPHome device but programming it was just copying and pasting. I’m not sure how to create a bin for this light:

I see in the top right of that page a breakdown for all the GPIO stuff. I just don’t know what all needs to be in my yaml. Is there a Guide somewhere on how to do this?

It should be easy. There are only five different PWM signals (Template components in Tasmota 416-420, GPIO 4, 12, 14, 5, 13)

At ESPHome, this should match:

You have to add that five times with different names and pins.

Very important. Add wifi including ap (Access Point) and ota (Over The Air Updates) for devices where you do not want to open it again or resolder if an update is needed. With wifi, ap and ota you will keep access even if your wifi is no longer reachable (pw change, hardware replacement etc.) because it will then start its own Wifi as fallback.

I can not see details what the five PWMs are for. I think they will be RGBWW or something like that.
Perhaps you will need to try and error.

1 Like

Here’s a screenshot of the config. Does that detail it better? It does look like it’s PWM.

How does it look at the homepage of Tasmota?

Got it!


  device_name: office_spare
  friendly_name: office_spare

  name: $friendly_name

  board: esp01_1m

# Enable logging

# Enable Home Assistant API
    key: "<key goes here"

  password: "<password goes here>"

  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
    ssid: "Downlight Fallback Hotspot"
    password: "<password here>"


#Web Server for manual access

  - platform: esp8266_pwm
    pin: GPIO13
    id: out_ct
  - platform: esp8266_pwm
    pin: GPIO5
    id: out_ctbrightness
  - platform: esp8266_pwm
    pin: GPIO4
    id: out_red
  - platform: esp8266_pwm
    pin: GPIO12
    id: out_green
  - platform: esp8266_pwm
    pin: GPIO14
    id: out_blue

  - platform: rgbct
    name: $friendly_name
    id: $device_name
    red: out_red
    green: out_green
    blue: out_blue
    color_temperature: out_ct
    white_brightness: out_ctbrightness
    cold_white_color_temperature: 6000 K
    warm_white_color_temperature: 3000 K
    color_interlock: true