esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
418 stars 26 forks source link

Create a virtual/soft cct feature to simulate RGBWW/RGB-CCT with just RGBW #1131

Open mew1033 opened 3 years ago

mew1033 commented 3 years ago

Describe the problem you have/What new integration you would like Basically this feature of Tasmota: https://tasmota.github.io/docs/Lights/#virtual-ct. I just got some Teckin SB60 bulbs, and I set them up with Tasmota first, then moved to ESPHome. While I was using Tasmota, I enabled the Soft-CCT feature as per here: https://templates.blakadder.com/teckin_SB60.html#soft-cct-setup. It worked quite well, all things considered. It sounds like tuya was doing it as well. Either way, it'd be awesome if ESPHome could do something similar.

Please describe your use case for this integration and alternatives you've tried: I'd like to simulate having both a warm white and cool white LED, even though I only have one. The other RGB LEDs should be able to help.

ryan-ronnander commented 8 months ago

My initial journey with ESPHome has led me here. I have been on a mission to get SYLVANIA Smart+ WiFi bulbs working with full local control and free from Tuya's cloud (particularly LEDVANCE/SYLVANIA's rebranded Tuya app/cloud).

These bulbs are Tuya based using the (WB8P) and work great with Home Assistant using either tuya local or local tuya. They have a CRI > 90, color temp adjustable from 2700-6500K, they're from a name brand manufacturer with a 2-year warranty, and are only roughly $5 per bulb (4-pack prices).

It wasn't apparent until ripping one of them open (to pave the way for tuya-cloudcutter) that these bulbs were technically RGBW bulbs the whole time:

image

The WBP8/BK7231T disqualifies Tasmota, leaving two options for custom firmware:

Tasmota has its Virtual CT option, OpenBeken has Flag 24 - [LED] Emulate Cool White with RGB in device with four PWMS (not perfect with these particular bulbs, but it "works"). From what I can see there have been some attempts to bring similar functionality into ESPHome with some attempts made, but nothing has been merged into the codebase.

I have no idea how many other manufacturers are doing this with RGBW bulbs in circulation. I just wanted to post this here as an example of a manufacturer using emulated color temperature in their firmware with an RGBW bulb. Getting this to work in ESPHome is more about getting full 100% stock functionality after flashing to ESPHome versus giving every RGBW light a bonus/hidden feature.