-
Great work on Tuya Local! I'm writing a device file for a Feit OneSync Under Cabinet LED that is white only, with five different temperatures from 2700K to 5000K, and four different brightness levels, no other color but white. It's working in that I can turn the light on and off, select the temperature and the brightness, but I'm struggling to get the Home Assistant device to reflect that it is white only. The device controls display a color picker and a set of favorite colors. I'm certain my configuration is wrong, but I'm stumped. I've attached the tinytuya output, the device yaml file, and a screenshot of the HA device. Can you offer some coaching? Thanks in advance! `name: OneSync Under Cabinet Smart Bridge
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
If you have "hs" as an option in the color_mode, it will be expected that the hue and saturation can be set in that mode. Most lights just reuse that from the standard tuya lightbulb definition, but don't actually support it. Try renaming the dp to something else (like work_mode) so the integration calculates a single supported color mode based on the dps that are available instead. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I changed that section to the following, and deleted and re-added the device but there was no change in HA.
- id: 21
type: string
name: work_mode
optional: true
mapping:
- dps_val: white
value: White
- dps_val: colour
value: Color
- dps_val: scene
value: Scene
- dps_val: music
value: Music
… On Nov 30, 2024, at 8:13 PM, Jason Rumney ***@***.***> wrote:
If you have "hs" as an option in the color_mode, it will be expected that the hue and saturation can be set in that mode. Most lights just reuse that from the standard tuya lightbulb definition, but don't actually support it. Try renaming the dp to something else (like work_mode) so the integration calculates a single supported color mode based on the dps that are available instead.
—
Reply to this email directly, view it on GitHub <#2576 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHGOIXGY7NS43RFWKWZWCO32DJPCZAVCNFSM6AAAAABSYVDRFCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBSGU3TSMA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Strange, there should be no color support any more, did you restart Home Assistant after changing the config? But before you do that, the color_temp mappings should be to 2700, 3000, 3500, 4000, 5000 rather than values between 0 and 1000. |
Beta Was this translation helpful? Give feedback.
Strange, there should be no color support any more, did you restart Home Assistant after changing the config?
But before you do that, the color_temp mappings should be to 2700, 3000, 3500, 4000, 5000 rather than values between 0 and 1000.