Prerequisite:
Scenario #1 (working):
Scenario #2 (NOT working):
Could you please check why this is happening? The bulb turns on in both cases but through MQTT a "state = OFF" is reported when using the new "brightness_percent" attribute.
Just tested with latest DEV commit e21bfc156790515d5244f95f3aec75e4d019bcaf but still the same issue.
Can you check if this has been fixed in the dev branch?
Yes, this is fixed now.
Thanks for reporting!