What's changed in the latest MQTT discovery light entity implementation?

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

Hello Perini Davide,

First make sure that is actually unique… (change it to something random, it’s not meant to be human readable anyway)

Next the topic path starts with light. I suggest using the whole path including homeassistant or else probably will not auto-discover.

Did you look with mqtt-explorer or something to see if the topic is correct?

Troubleshooting MQTT? MQTT-Explorer can help you be successful!
If you have Add-ons available, try adding this Add-on repository to your Add-on list. GitHub - GollumDom/addon-repository.
With this you can see that the broker sees and likely find the bug.