Automation, by input_select to switch on lights

Hello to everyone.

In my HA configuration, i have a input_boolean with “winter” option,


When is switched on, then execute and automation that says to switch on light at 9 p.m:

alias: Activar Luz_Pasillo_Noche_Invierno
hide_entity: False
initial_state: 'on'
  - platform: state
    entity_id: input_boolean.invierno
    to: 'on'
  - platform: time
    at: '21:00:00'
  - service: homeassistant.turn_on
    entity_id: automation.luz_pasillo_noche_mov_sasha
  - service: homeassistant.turn_on
    entity_id: automation.luz_pasillo_noche_mov_hab1
  - service: homeassistant.turn_on
    entity_id: automation.luz_pasillo_noche_mov_pasillo

Exist a way with lastest versions of HA, where i can convert the constant value (21:00:00) to a variable, that take the value of time selected in the input_select value?