Can you call the media_player.play_media service with that data and successfully play that content?
If so you could write an automation using an input boolean as the trigger and the call that service with that service data in the action.
- alias: Play Netflix Show
trigger:
- platform: state
entity_id: input_boolean.what_ever
to: 'on'
action:
- service: media_player.play_media
data_template:
entity_id: media_player.chromecast
media_content_id: "https://www.netflix.com/browse?jbv=81026478&jbp=1&jbr=3 2"
media_content_type: video/netflix
- service: homeassistant.turn_off
entity_id: input_boolean.what_ever
Then when you turn on the switch (input boolean) in HA it will play the content and turn the switch back off ready to play it again the next time itâs turned on.
Iâve accomplished this by remote controlling a spare Android phone. It seems to be the only way currently (Since remote controlling Chrome does not allow casting), but it works quite well actually for a work-in-progress. So, we could have this in Home Assistant soon!