Return google display to home after cast

I have an automation that has an action :
add action, media player, play media… I select my google display, pick media, dashboards and finally select a dashboard to cast.

  - service: media_player.play_media
    target:
      entity_id: media_player.living_room_display
    data:
      media_content_id: shed-wallbox
      media_content_type: lovelace
    metadata:
      title: Home
      thumbnail: https://brands.home-assistant.io/_/lovelace/logo.png
      media_class: app
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: lovelace
          media_content_id: ""

How do I set how long to cast for? ie How do I get my google display to return to its home screen? I presume I need to add another action to do this… but what should that action be?

Thank you!