Casting a dashboard via automation?

Hi all wonder if anyone can help

From the front end media player i can cast a dashboard every time and it works perfect.

But from an automation, it is unreliable and rarely works

The Automation looks like this:

The dashboard url is : https:///dashboard-test/0

Im fairly certain its the url, if i try and cast dashboard-path : lovelace it loads the default home assistant dashboard fine from an automation.

All the guides online say the dashboard path is /lovelace/ but newer dashboards don’t have this url format.

Im confuzzled, is there a way to see the URL the media player is casting?