Can i start a specific cast stream, on a specific device, using one button?
Pretty straight forward question.
I wanna start the TV, and then start a stream. Using one button.
Please
Can i start a specific cast stream, on a specific device, using one button?
Pretty straight forward question.
I wanna start the TV, and then start a stream. Using one button.
Please
Donβt know if you still need it, but yes you can
This code will send a given stream or audio/video file to say a defined chromecast.
yet i donβt have a clue on starting your tv first but this should get you started:
type: button
tap_action:
action: call-service
service: media_player.play_media
service_data:
media_content_type: audio/mp3
entity_id: media_player.woonkamer
media_content_id: https://stream.slam.nl/web16_mp3
extra:
metadata:
metadataType: 3
title: Housuh in de Pauzuh
artist: Slam!
images:
- url: https://i1.sndcdn.com/artworks-000673655746-ai737z-t500x500.jpg
name: Slam! Housuh in de Pauzuh
Just change the target device-id and off you go.
For more info on different options for video and audio: Google Cast - Home Assistant