"white" vs "temperature" attribute

  • This is a partial Duo and mqtt question.

    I am able to successfully send mqtt messages to turn my Duo on and off. I can also select temperature as either 2700 or 6500, but nowhere in between (4500, 5612, etc). I saw in the docs (https://shelly-api-docs.shelly.cloud/#shelly-duo-light-0) a comment that the temp attribute is derived from the white attribute. Is there some calculation I should be doing to send a certain white attribute between 0...100 along with tewmp 2700...6500?

    Again, the turn and brightness attributes are working just fine. I was thinking of asking in the mqtt forum, but this seems more Duo-specific. Thanks!

  • Expanding on this a little. The following commands work:

    Code
    mosquitto_pub -h 192.168.0.101 -m "{\"turn\":\"off\"}" -t shellies/ShellyBulbDuo-D168FC/light/0/set
    mosquitto_pub -h 192.168.0.101 -m "{\"turn\":\"on\"}" -t shellies/ShellyBulbDuo-D168FC/light/0/set
    mosquitto_pub -h 192.168.0.101 -m "{\"temp\":2700}" -t shellies/ShellyBulbDuo-D168FC/light/0/set
    mosquitto_pub -h 192.168.0.101 -m "{\"temp\":6500}" -t shellies/ShellyBulbDuo-D168FC/light/0/set

    The behavior is odd. 2700 gives me the nice and warm. 6500 give me the cool. If I set it to 2700, then set to anywhere from 2701-6499, there is no change (stays on 2700). If I have it set to 6500, then set to anywhere from 2701-6499, it goes all the way to 2700. This leads me to believe I need to include the white attribute, but I can't seem to figure out a working combination. Thanks for any assistance!