Mqtt light - state to update card

I see. It depends on how you installed home assistant. If you have the supervisor, the easiest way is to use the addon Home Assistant Community Add-on: Node-RED

It integrates node red and home assistant, so you can (in your example) set node red to turn the light on to 50% brightness, so that would work for any light entity, not just a mqtt light.