Reproduce Google cast commands

Hey everybody,
I have a app that plays and casts Portuguese tv to any Chromecast device.
I want to use home assistant to cast the programs, without having to get my phone and open they app. I was thinking if is possible to get the Cast command sent from the app to the Cast device, and replicate that command from home assistant.
Is this possible?