Input Slider: Get inital brightness?

Is it possible to get the current brightness of a light’s brightness attribute? How would I call a variable? I couldn’t see this anywhere in the documentation. Thanks

input_slider:
input_lr_fl_bri:
name: “Brightness”
initial: 0 <—can I use a variable here like ‘state.light.floorlamp.attributes.brightness’?
min: 0
max: 255
step: 1

@Jer78

A template sensor should work.

Thanks! I’ll give it a try

Did you manage to get it working?

No, not the initial brightness.