place in automation.yaml.
change tab spacing if placing in configuration.yaml
not my weblink but it was known good link playable on chromecast used for testing (havent used in a while)
- alias: 'Motion at Front Door' trigger: - platform: state entity_id: binary_sensor.frontdoorcam from: 'off' to: 'on action: service: media_player.play_media data: entity_id: media_player.audiocast_bedroom media_content_id: http://www.noiseaddicts.com/samples_1w72b820/3709.mp3
Sorry, misread…LIVE VIDEO NEEDED
from here. https://www.reddit.com/r/Chromecast/comments/50o9yo/rtsp_streaming/
He converts RTSP to playable format
I'm using ffmpeg to convert it to a HLS stream: ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]/live/ch1 \ -acodec copy \ -vcodec copy \ -hls_wrap 40 \ -flags -global_header \ /var/www/html/cam/cam.m3u8 I happen to already have a web server running on my PC, so any other client on the LAN (e.g. the Chromecast) can now access http://192.168.0.2/cam/cam.m3u8 I use Web Video Cast to send that HLS stream to the Chromecast.