This example message gets sent from my MQTT light after I set it this way using the UI:
{
"state":"ON",
"color":{
"r":0,
"g":0,
"b":0,
"c":212,
"w":0
},
"brightness":4095,
"effect":"Solid"
}
The light updates and everything works well, including the brightness which stays at the correct value. However after approximately 3 seconds the state inside the UI jumps back to 50 for cold white brightness, 50 for warm white brightness and 50 for colour brightness. It does the same when I ask for RGB colour values. No other messages are being sent on any other MQTT channel. Does anyone know what could cause this behaviour?
#MQTT light resets state after a few seconds
1 messages · Page 1 of 1 (latest)
I guess HA isn't recognizing that state update, and after changing the light when the entity state doesn't change, it reverts back to previous value, assuming the update failed.
What are the light entity attributes before and after you change the value in UI?
I thought I saw someone recently asking something about 10-bit brightness, which I wasn't aware if we supported. Was that you?
That was me
Interesting, My state message looks like this:
{
"state":"ON",
"color":{
"r":255,
"g":2,
"b":44,
"c": 0,
"w":0
},
"brightness":4095,
"effect":"Solid"
}
entitiy states says: "rgbww_color: null"
And brightness: 255
Let me try removing that scaler
This message doesn't seem to update the light