Time automation with input_text

hi all,

trying to configure timer for several switches. each switch will have enable timer schedule toggle with input time for ON and OFF booleans, using input_text boolean.

# timer 1   
input_text:
  on_timer:
    name: ON timer
    initial: '16:00'
    pattern: '^[0-9]{1,2}:[0-9]{1,2}$'
  off_timer:
    name: OFF timer
    initial: '18:00'
    pattern: '^[0-9]{1,2}:[0-9]{1,2}$'

input_boolean:
   on_timer_active:
    name: Activate On timer
    initial: off
    icon: mdi:calendar
   off_timer_active:
    name: Activate Off timer
    initial: off
    icon: mdi:calendar
   active_timer_tuya:
    name: Activate timer for tuya switch
    initial: off
    icon: mdi:bulb
   active_timer_genie1:
    name: Activate timer for genie1 switch
    initial: off
    icon: mdi:bulb
   active_timer_genie2:
    name: Activate timer for genie2 switch
    initial: off
    icon: mdi:bulb

Now trying to config the automation in the GUI HASSIO, but having hard time define the time trigger for the time definition.
as now i have input_text.on_timer with HH:MM text time- how can i use it in the “At” definition in the time trigger?


probably can’t use entity directly

Will appreciate any help how can use input text or variable number as time for the trigger.

Many thanks
Jaim

That’s not possible with the UI, i think.
You can use the template trigger with the Time & Date Sensor.

automation:
  - alias: Input Text Time template trigger
    trigger:
      platform: template
      value_template: "{{ states('input_text.on_timer') == states('sensor.time') }}"
    action:
      - service: persistent_notification.create
        data_template:
          message: "Its {{ states('sensor.time') }}."
          title: "Message from HA"