Light Brightness - depending on time of day

I’m trying to create some automations that will link into my current ones for controlling the lights. I’m wanting to add in some more time parameters similar to what I have below.

For example,
Between 09:00am and 19:00 I want the brightness to be 100%
Between 19:00 and 23:00 the brightness to be 50%
Between 23:00 and 09:00 the brightness to be 25%

Each ‘Start’, ‘End’ and percentage time will be a number slider (based on a Helper)

I already have something similar below.

I’m struggling to come up with a way to make the automations look at the time of day and determine which percentage to turn the light on to… then apply this to all my lights.

This is my automation for ‘telling time’ with the Rhasspy text-to-speech software. It’s not light control, but it does illustrate obtaining and parsing the current time values, which I believe will provide the assistance you seek.

- alias: Time
  id: '0062'
  trigger:
  - event_data: {}
    event_type: rhasspy_GetTime
    platform: event
  condition: []
  action:
  - data_template:
      target: "{% if trigger.event.data._intent.siteId == \"Listener1\" %}\n    192.168.1.36\n\
        {% elif trigger.event.data._intent.siteId == \"Listener2\" %}\n    192.168.1.32\n\
        {% elif trigger.event.data._intent.siteId == \"Listener3\" %}\n    192.168.1.37\n\
        {% endif %}"
      payload: "{% set hour = now().hour %}  {% set minute = now().minute %}  {% set\
        \ ampm = \"AM\" %}  {% if hour > 12 %}\n    {% set hour = hour - 12 %}\n \
        \   {% set ampm = \"PM\" %}\n{% endif %}  {% if minute < 30 %}\n    The time\
        \ is now {{minute}} minutes after {{hour}} {{ampm}}\n{% elif minute == 30\
        \ %}\n    The time is now {{hour}} {{minute}} {{ampm}}\n{% elif minute > 30\
        \ %}\n    {% set minute = 60 - now().minute %}\n    {% set hour = hour + 1\
        \ %}\n    {% if hour > 12 %}\n        {% set hour = hour - 12 %}\n    {% endif\
        \ %}\n    The time is now {{minute}} minutes before {{hour}} {{ampm}}\n{%\
        \ endif %}\n"
    service: rest_command.rhasspy_speak

Hrmmm, that was formerly nicely indented for readability. Apparently, the H A automation editor re-wrote it, embedding a LOT of backslashes and \n newline characters. Apologies for that, if it appears run-on. But the gist of it is what you want from the payload: item.

Look into using the “choose:” action in your automation.