Templated Automation not working... but no error

Your syntax is wrong: check here for a similair example: https://community.home-assistant.io/t/chromecast-radio-with-station-and-player-selection/12732