-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HSB color_temp publish over or under values as documented values #9843
HSB color_temp publish over or under values as documented values #9843
Comments
What is the temp range given by the bulb? https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#_3-adding-converter-s-for-your-device |
@Koenkk I think this is because the color_mode is set to hs, so we're calculating the color_temp based on the hue/saturation values. Not sure what the correct thing to do here is, do we clamp them to the support colorTemperature range when color_sync=true or do we stick to what we have now which is probably a close approximation of what the actual color is? I'd be inclined to clamp them to the actual support colorTemperature range, because we do pass this information along using expose. |
Agree |
I'm pretty busy at the moment, but if you don't get to it before weekend after next, I should be able to look at this. |
I had a quick look during my break, looks like we do not have access to 'entity' in https://github.com/Koenkk/zigbee-herdsman-converters/blob/05f0795cbf3742a17d59152bbe2186ec6bc8a48e/lib/color.js#L644
That should be fine for toZigbee but it doesn't look like we have entity available in fromZigbee? e.g. https://github.com/Koenkk/zigbee-herdsman-converters/blob/19339d14b3dc56a071c62ff322b232cf8081874d/converters/fromZigbee.js#L542 |
I don't know how to help here. I don't know the real limitation of bulb. |
@sjorge for fromZigbee, the device and endpoint can be accessed through |
Vers: 1.21.2
![grafik](https://user-images.githubusercontent.com/18314278/137759720-c5b94e5e-cabc-43bf-8b48-d58158a03df1.png)
![grafik](https://user-images.githubusercontent.com/18314278/137761003-4e09748c-b138-49a7-b1dd-e79d6aac5d29.png)
![grafik](https://user-images.githubusercontent.com/18314278/137764083-71cd3515-2c99-43e8-b09e-6444290a3339.png)
![grafik](https://user-images.githubusercontent.com/18314278/137764189-b4c00a84-4210-4cca-91a1-f0814de59f9a.png)
Müller Light RGBW
Command you see at debug.
I get values under 153 or over 556 as documented:
https://www.zigbee2mqtt.io/devices/404000_404005_404012.html#light
Via Frontend:
The text was updated successfully, but these errors were encountered: