I got myself this bulb or a very similar one (you never really know what you get):
I found a reference to a very similar bulb here:
I did not plan to use the tuya cloud to control it. So I used tuya-convert to flash it with tasmota.
After playing around with MQTT and not really falling in love for that option, I decided to move over to ESPHome as that just appears to be the better option for my HomeAssistant setup.
I had to flash to a tasmota-minimal.bin first but was then able to flash an ESPHome bin that I compiled on guessing = platform: ESP8266; board: esp01
I did select the ESP8266 platform and I am quite sure that should fit here but how can I identify the correct board? The bulb is closed and sealed. I can connect with ESPHome and flash different settings but none have worked so far. Here is my current .yaml for a starting point:
substitutions:
devicename: mylight
esphome:
name: $devicename
platform: ESP8266
board: esp01
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable logging to ESPHome
logger:
# Enable Home Assistant API
api:
password: !secret api_password
# Setup OTA password
ota:
password: !secret ota_password
# Define output pins
output:
- platform: esp8266_pwm
id: output_red
pin: GPIO4
- platform: esp8266_pwm
id: output_green
pin: GPIO12
- platform: esp8266_pwm
id: output_blue
pin: GPIO14
- platform: esp8266_pwm
id: output_warm_white
pin: GPIO13
- platform: esp8266_pwm
id: output_cold_white
pin: GPIO5
# Define a light entity
light:
- platform: rgbww
name: $devicename
id: $devicename
red: output_red
green: output_green
blue: output_blue
warm_white: output_warm_white
cold_white: output_cold_white
cold_white_color_temperature: 6200 K
warm_white_color_temperature: 2800 K