Skip to content
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

Fix colorTemperature data and homekit ui demonstrate mismatch #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XiaoTonyLuo
Copy link

@XiaoTonyLuo XiaoTonyLuo commented Oct 26, 2021

当前版本灯具注册给Homebridge的set回调中,在解析ColorTemperature参数时,Homebridge的参数范围是140(白光)~500(黄光),而涂鸦iot平台中灯具类目的色温参数范围是0(黄光)~1000(白光),故存在在homekit app中设置白光时,插件将数据值解析为涂鸦平台的黄光,反之亦然。此处修改数据解析规则,从将原数据映射后加上最小值的计算方法修改为从最大值减去映射后的原数据值。本地测试成功。

animation.mp4

#136

Copy link

@boris-dimitrov boris-dimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you - this looks like a clear improvement - although it still doesn't address the units mismatch (Mired vs Kelvin, see notes in #135)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants