I have had an automation working for a year or so that suddenly quit. It turns on my Roku TV and then opens YouTube. Now it still powers on the Tv but it will not open YouTube. If I change it to any other app, it opens up that app normally. Seems to be limited to YT only. Anyone else seeing this happen?
Check that the program code didn't change or there is not some login issue or change or things like that if it works for other programs.
Nothing has changed
You didn't change anything, that's a different question.
If
then it would still be working.
Since it is partially working, something with that program HAS changed.
Are you using the source ID in the automation? That is what may have changed. Alternatively, you don't have to use the source ID anymore; you can just add "YouTube" as the source.
Figured that might be the issue. How do I get a list of the application names?
Click your media player in HA and look at the sources, it will look the same as the picture I provided above.
Just had this error show up in the logs:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:330
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:31:02 AM (1 occurrence)
Last logged: 9:31:02 AM
[140324168454592] Error handling message: Timeout communicating with Roku API (home_assistant_error) Randy from 127.0.0.1 (Mozilla/5.0 (Linux; Android 11; KFTUWI Build/RS8338.3339N; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/142.0.7444.236 Safari/537.36 Home Assistant/2026.2.1-20142 (Android 11; KFTUWI))
If you're getting timeout issues, restart your roku by turning it off and on. If you have the pro, just unplug it from power. If you have a stick, unplug the stick and replug in the stick.
I've power cycled it many times but I think I'll unplug it for a few and see.....
Did you verify the source? Have you checked that the IP/hostname is the same?
Yup. And if I change it to Prime Video (for example), it works. Seems to be only happening to YouTube
Oh and I forgot to mention that it is happening on more than one Roku TV
Go to developer tools -> states page, look at your media player source list and post it here. Make sure attributes column is turned on.
source_list:
- Home
- All Screen Receiver
- Amazon Music
- Apple TV
- Aquatic Life
- Atari
- Backdrops
- BritBox
- Curiosity Stream
- Downloader
- HBO Max
- Jellyfin
- "Live\_TV"
- NFL SUNDAY TICKET
- Nebula
- Netflix
- Pandora
- Prime Video
- RaspberryPI
- Redbox.
- Roku Media Player
- Roku TV Intro
- SHOWTIME
- Showtime Anytime
- Tasty TV
- VLC IPTV Player
- Xfinity
- Xfinity Stream
- YouTube
- YouTube TV
- iHeart
Alright, post the automation you're using
alias: Workout
description: ""
triggers:
- event_type: Workout
trigger: event
- device_id: e2be57a2bfeb02e3ed32dd61bb061b64
domain: zha
type: remote_button_short_press
subtype: remote_button_short_press
trigger: device
conditions: []
actions:
- data:
title: Open Roku
message: Tap to open the Roku app.
data:
url: roku://
action: notify.mobile_app_fizz_phone
- type: turn_on
device_id: fb34e87ef61fc87140fbe2c9466010db
entity_id: 47912e52bd1e0753b6e5f1d1fd3c1410
domain: remote
- action: media_player.volume_mute
metadata: {}
data:
is_volume_muted: true
target:
device_id: fb34e87ef61fc87140fbe2c9466010db
- data:
source: YouTube
target:
device_id: fb34e87ef61fc87140fbe2c9466010db
action: media_player.select_source
mode: single
type or paste code here
Weird that this worked fine for over a year (maybe 2?) and now is broken only for YouTube
And there's no errors in your raw logs when you try to execute this action:
- data:
source: YouTube
target:
device_id: fb34e87ef61fc87140fbe2c9466010db
action: media_player.select_source
