The Web API (which spotipy uses) can't access the local network. Only devices that are already connected to an account.
However, some Spotify speakers allow you to reconnect to them if you were the last one to use them. Even outside the network. Check the Web API Reference to see if your Chromecast is listed as a device.