As title.
What’s changed in the latest MQTT discovery light entity implementation?
I use this json to create a light entity using MQTT Auto discovery.
{
"name":"Switch",
"device":{
"identifiers":"Luciferin",
"manufacturer":"DPsoftware",
"model":"Luciferin",
"name":"Luciferin",
"sw_version":"Glow Worm Luciferin",
"configuration_url":"http://GW_ESP32_S3.local"
},
"schema":"json",
"effect":true,
"brightness":true,
"rgb":true,
"optimistic":true,
"icon":"mdi:google-circles-communities",
"brightness_state_topic":"lights/glowwormluciferin",
"brightness_value_template":"{{ value_json.brightness }}",
"supported_color_modes":[
"rgb"
],
"unique_id":"Switch",
"state_topic":"lights/glowwormluciferin",
"command_topic":"lights/glowwormluciferin/set",
"effect_list":[
"GlowWorm",
"GlowWormWifi",
"Bpm",
"Fire",
"Twinkle",
"Rainbow",
"Slow rainbow",
"Chase rainbow",
"Solid rainbow",
"Rainbow colors",
"Meteor",
"Color waterfall",
"Random marquee",
"Rainbow marquee",
"Pulsing rainbow",
"Christmas",
"Solid"
]
}
it worked well for years but now it doesn’t understand what is the correct brigthness.
The state of the light is like this:
{
“deviceName” : “GW_ESP32_S3”,
“state” : “ON”,
“brightness” : 63,
“MAC” : “DC:54:75:D5:FE:E0”,
“lednum” : “112”,
“framerate” : “60.00”,
“wifi” : “100”
}
with a brightness of 63. but HA shows the brightness as if it is zero.
this is an issue that happened since the last update of HA