Closed Zer0x00 closed 3 years ago
I recognize that this is confusing and might have some undesirable behavior, but I expect this to be happening.
Under the hood, Milight's protocol uses a 0-100 scale which is not 1:1 with mireds. That's how the state is being recorded. It's translated into mireds dynamically if that's how state is configured.
Describe the bug
When sending an update to color_temp via MQTT or HTTP it results sometimes in a slightly lower value. If you've set 345 it will become 344. If you've set 360 it will become 359 and so on.
//Edit: Not directly related to this topic but why are MQTT updates for hue & saturation sent when ColorTemperature is updated?
Steps to reproduce
PUT request to
http://milight-hub/gateways/0x1/fut089/2
with the following body:Expected behavior
If you've set color_temp = 345 it should be and stay 345.
Setup information
Firmware version
1.10.6 (nodemcuv2)
Output of http://milight-hub.local/about
Output of http://milight-hub.local/settings