diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.52k stars 274 forks source link

Option for strictly use of xy color #1024

Open Paalap opened 1 week ago

Paalap commented 1 week ago

I've experienced an issue with some third party devices on the hue bridge, as they would not work with rgb or hsv. A manual entry of strictusexy = true in the light's protocol config allows you to fix this issue.

hendriksen-mark commented 5 days ago

from functions.colors import convert_rgb_xy, hsv_to_rgb is missing in the import section. where does light.protocol_cfg["strictusexy"] come from? its not in the light_types.py or is it added manually to the lights config file?

Paalap commented 4 days ago

@hendriksen-mark : my bad - now it is in; The entry in the protocol cfg is assumed to be done manually (for this was/is ok, as I had the issue only with 2 devices)

hendriksen-mark commented 3 days ago

Its also better to include it in the discovery with False so people dont have to guess where to put it.

hendriksen-mark commented 3 days ago

What is the make and model of the lights you need this for?

Paalap commented 3 days ago

Tuya RGBW Controller or to be detailed: TSO504B / TZ3210_elzv6aia

And yes running on z2m the issue wasn't there but in my particular case I want to run it on the hue bridge.