Cast as part of media_player platform

Am I the only one who was confused that google cast has its own domain called cast?

I was looking for a solution to stop casting to a google hub and only recently got the solution on discord to use the media_player.turn_off service. That worked! I searched for cast.stop or cast.end in vain. I did try the media_player.media_stop but without any success…

To me it makes more sense to stop casting, I actually don’t turn off the media_player itself when I stop casting.

And as I think about it: it would make much more sense to me to use the media_player domain to start casting. For example: media_player.cast_lovelace_view. In that case I would certainly have tried sooner to end the casting with either media_player.turn_off.

Maybe it’s just me, interested to know what other users think…

it is

if I want to cast PLAY a file you

   - service: media_player.play_media
      data_template:
        entity_id: media_player.cuckoo_clock
        media_content_id: /local/Chime/GrandFatherChime1.wav
        media_content_type: audio/mp4

where /local/ is the www folder

Developer Tools is you best friend

and or

Indeed, so casting to a google device is already part of the media_player domain actually…