Set Light Swtich Default Dim to Highest

I have some dimmable light switches and would like to create an automation to reset them to the brightest level at night (without turning on the lights). I’ve tried creating an automation similar to what’s shown below without any luck. Is there a way to do this?

- id: '1691512512445'
  alias: Basement Rec Lights - No Dim
  description: ''
  trigger:
  - platform: time
    at: 01:45:00
  condition: []
  action:
  - device_id: 0af826f3dfcef0da5dda5bd99a723e8d
    domain: number
    entity_id: bf4ce6f42e423675a1e5e894d6aaef35
    type: set_value
    value: 254
  - device_id: 1430cb8a14c97ffc57bb618a451b43d4
    domain: number
    entity_id: 1af8a0b4acdbb3de41cded9bc9bd4ce6
    type: set_value
    value: 254
  - device_id: f3c5879a225a63878b4a1d9456de5889
    domain: number
    entity_id: 4b648358eb8f90b7e62401f5d707ec82
    type: set_value
    value: 254
  - device_id: ca756015a9a661f286361a503da9974f
    domain: number
    entity_id: 78ea83d64da84cb914ce2490ea3dfd3f
    type: set_value
    value: 254
  - device_id: 3db8e6e57d0609e51547f8360c1bb6a8
    domain: number
    entity_id: 19a9f3672c1362fc63af51bafe54d0d1
    type: set_value
    value: 254
  mode: single

The service call to set a light entity’s brightness value is called light.turn_on. It cannot be used to set brightness without also turning on the light.

So would the only way be to turn on the light, adjust the brightness, and then turn off?

When you turn on one of your lights, is it automatically illuminated to 100% brightness or to whatever level it had the last time it was on?

If it turns on with its previous brightness level then the technique you described will probably work. However it means that the automation will briefly turn on the lights at 01:45.