Google Cast devices like Android TVs and Chromecasts will be automatically discovered if you enable the discovery component. There is a issue where Chromecasts can only be discovered if your device is connected to the same subnet as your Chromecast.
Chromecast platform can also be forced to load by adding the following lines to your
# Example configuration.yaml entry media_player: - platform: cast
- host (Optional): Use only if you don’t want to scan for devices.
- ignore_cec (Optional) A list of chromecasts that should ignore CEC data for determining the active input. See the upstream documentation for more information.