Chromecast in Home Assistant

Is there a way to get home assistant to know when s chromecast device is casting something? I would like to have certain lights turn off when I start casting a TV show or movie to certain chromecast devices. Any help is appreciated.