Current Brightness Conditional Dimmer Automation

I thought I had this sorted but either something broke or my habits changed after setting up the automation.

High level goal for the automation. Slowly dim the lights on a clock schedule, but if I already have turned the brightness down below a set brightness do nothing instead of increasing the brightness.

What I had created was a conditionally execute if set time, light is on, and Numeric state attribute brightness was above X value. Then “Turn on” the light to X value.

I’m using Kasa smart dimmers (HS220), so it’s possibly a limitation of that dimmer not reporting the brightness correctly. Though I am able to manually see the current brightness and adjust the brightness.

Please share your automation configuration YAML correctly formatted for the forum by using the </> button (sometimes hidden under the settings cog post menu item).