Using Templates to play different Sonos streams at different times of day

Yeah already tried that as well! Exactly the same issue. Tried this:

sequence:
- service: media_player.sonos_group_players
  data:
    entity_id: media_player.living_room
- service: media_player.volume_set
  data:
    # entity_id: media_player.living_room
    entity_id: group.sonos
    volume_level: "0.13"
- service: media_player.select_source
  data_template:
    entity_id: media_player.living_room
    source: >
      {%- if now().strftime('%H')|int <16%}
        "Absolute Radio"
      {%- elif now().strftime('%H')|int <19%}
        "Radio X UK"
      {%- elif now().strftime('%H')|int >19%}
        "Anything"
      {%- else -%}
      {%- endif %}

Banging my head against a wall! If I use the following it works fine:

sequence:
- service: media_player.sonos_group_players
  data:
    entity_id: media_player.living_room
- service: media_player.volume_set
  data:
    # entity_id: media_player.living_room
    entity_id: group.sonos
    volume_level: "0.13"
- service: media_player.select_source
  data:
    entity_id: media_player.living_room
    source: "Absolute Radio"

I am having the same issue. Any updates on this?