Restore last dim level after restart of HA

I’m having a problem with dim levels.

For example, I have a light that I turn on, set dim level to 55% from lovelace. I turn off, then turns on again. As I expect the dim level is set to 55%. Fine.

But, if I restart HA, and then turns on the lights, it turns on with 100%.

Is there a way to automatically, without setting a scene, restore the last level after restart?