Switch Tab in Dashboard in Skript as Action or Building Block

Hallo
I’d like to add a function to a script that, after I’ve turned the lights on the way I want, the music starts playing my chosen playlist. Specifically, I want to switch to a different Tab in Dashboard. The default tab is “Home,” and then there’s “Music.” So, when I switch to “Music” mode, after the lights and music have turned on, the display should switch to the “Music” tab (red arrow in the image).

So, when I press the disco ball icon, a script starts. First, certain lights turn on, then a Sonos speaker starts playing. And then it should switch to the music tab dashboard.

How can I do this? Is there an action, a building block, or some code I can use?

Please help. Thanks.

one way to achieve this is by using browser_mod:

  - action: browser_mod.navigate
    metadata: {}
    data:
      path: /lovelace/your_tab_name

you’ll need to install browser_mod via hacs if you don’t use it already.

you can’t use it like that, I just provided the action part for use in an automation or script, the rest you need to add yourself.