esphome / esphome/feature-requests

Tuya Dimmer support cwww style light

Open
#2,143 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

I have a light using a tuya mcu, which has separate lights for cold white and warm white. This is currently implemented as two separate tuya dimmers. I'd like to be able to combine these to create a cwww light.

**Please describe your use case for this integration and alternatives you've tried:**

I've tried using the tuya dimmers as outputs to a cwww light, but that fails with the error `ID 'tuya_light_cold' of type light::LightState doesn't inherit from output::FloatOutput. Please double check your ID is pointing to the correct value.`

I've also tried creating output templates which when written to change the values of the appropriate tuya light. This works in one direction, but if I change the light via the button on the device, I cannot get the updated values back to the cwww light. When I try to use an automation to do this I end up with an infinite loop that crashes the device.

**Additional context**
My work so far is based on the excellent work of @billchurch, who documented converting a tuya celing fan/light to esphome [here](https://1projectaweek.com/blog/2022/2/8/converting-a-carro-home-dc-fan-to-esp-home)

And I'm using his [config](https://gist.github.com/billchurch/2feb716ef30f03df775da81822f59b12) as a starting point.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.