1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Support Tuya light color temperature control (#1412)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Ryan Mounce
2021-06-02 07:02:16 +09:30
committed by GitHub
parent f968713be8
commit c3938d04f3
4 changed files with 78 additions and 0 deletions

View File

@@ -133,6 +133,17 @@ light:
rgb_order: GRB
default_transition_length: 0s
color_correct: [50%, 50%, 50%]
- platform: tuya
id: tuya_light
switch_datapoint: 1
dimmer_datapoint: 2
min_value_datapoint: 3
color_temperature_datapoint: 4
min_value: 1
max_value: 100
cold_white_color_temperature: 153 mireds
warm_white_color_temperature: 500 mireds
gamma_correct: 1
display:
- platform: addressable_light