Is it possible to link a state attribute with an input_slider "initial" value?

If I refresh my home assistant web page (F5), my input_slider will automatically jump back to its fixed initial value. Is it also possible to link this initial value to a state attribute? For example the brightness of my lights?

Or is it possible to create an automation with a page refresh trigger to set the input_slider to the appropriate brightness level?