Several conditions in rule for input select

Looked through the examples but couldn’t find a rule to make several forks of actions based on condition.

I have na input select for the home theater with options radio, movie e.t.c
What i would like to do is that one selects an option movie - the rule first checks time of the day (day/evening/night) and depending on that sets the volume and other options (like late night option).
What is the simplest way to that other than writing more than 3 of the same rules with different conditions?

Currently the only way i can think off is use of sensors and scripting - like below. But that still sounds overcomplicated

  - platform: template
     sensors:
       Night_movie:
         friendly_name: 'Night_movie'
         value_template: >-
             {%- if states('sensor after 12') 
                 Call script A
             {%  elif states('sensor before 12') 
                 Call script B
        {%- endif %}

https://github.com/Instagraeme/Home-Assistant-Configuration/
Check the code @Start Streaming Radio on Chromecast in /includes/automation/chromecast_radio.yaml

He has two different input options linked together, so you could possibly adapt that to work like:

First selector - Day, Evening, Night
Second selector - Radio, Movie, etc

Would that work?

Yes thank you!
Looks extremely promissing. At first the selector will set everything in automation which is particular for both like switch.on, set source, set listen mode and than at the end we call a template script which will fork depending on the state of selector day, night, guests. Sounds excellent and hope it works

At first wanted to do it with input select and then write some automation rules. Than rembebered that it can be don way better by using the template sensor.

For sure my noob setup won’t be that interesting but finished up like this

Sensor data:

  - platform: template
    sensors:
      day_night:
        friendly_name: 'Day or Night'
        value_template: >-
            {%- if now().hour > 20 and now().hour < 24 %}
                Night
            {%  elif now().hour > 0 and now().hour < 7 %}
                Night
            {% else %}
                Day
            {%- endif %}

Part of automation:

- alias: Onkyo movie
  trigger:
    platform: state
    entity_id: input_select.theater
    to: "Movie"
  action:
  - service: media_player.turn_on
    data:
      entity_id: media_player.onkyo
  - service: media_player.select_source
    data:
      entity_id: media_player.onkyo
      source: XBMC
  - service: script.turn_on
    data_template:
      entity_id: >
        {% if is_state("sensor.day_night", "Night") %}
          script.onkyo_night
        {% else %}
          script.onkyo_day
        {% endif %}