Component: Time based mapping of remote buttons

Wondering if a component exists that maps remote control buttons to automations based on the time of day.
For example, RF wall panels: it would be cool to map one function to each button 8n the morning but have the function change to something else in the afternoon.

Wondering if there is ant work done on this already and how people have implemented this with automations.

Thinking about how to write a component that does the scheduled function mapping

sounds easy enough… I am not the best with templates but have a few automations which could be modified to suit what you are trying to acheive.

my example which selects between 3 scripts based on the button click type is below. If someone can help change the click type to a set of time parameters then you would be done.

automation:
  - alias: Ensuite Remote Button
    initial_state: 'on'
    trigger:
      - platform: event
        event_type: xiaomi_aqara.click
        event_data:
          entity_id: binary_sensor.switch_158d00016bf679
          click_type: single
      - platform: event
        event_type: xiaomi_aqara.click
        event_data:
          entity_id: binary_sensor.switch_158d00016bf679
          click_type: double
      - platform: event
        event_type: xiaomi_aqara.click
        event_data:
          entity_id: binary_sensor.switch_158d00016bf679
          click_type: long_click_press

    action:
      - service_template: >
          {% if trigger.event.data.click_type == 'single' %}
            script.ensuite_button_single_click
          {% elif trigger.event.data.click_type == 'double' %}
            script.ensuite_button_double_click
          {% elif trigger.event.data.click_type == 'long_click_press' %}
            script.ensuite_button_long_press
          {% endif %}

You would have a single trigger (for your RF button) and then you need to swap the trigger.event.data.click_type for a time of day… Then you call the script you want based on time of day and ‘allocate a button function’ in the script action