Open n3on4s opened 10 months ago
Hello, Just follow doc (https://www.home-assistant.io/integrations/androidtv_remote) : Some devices, like TCL, become unavailable after they are turned off, unless you activate the Screenless service. To activate it, go to Settings > System > Power and energy > Screenless service, and activate it.
It's work for me,
Regards,
Hi,
Same issue with 50PUS8807/12.
In Google Home the TV was also unavailable when off, but that resolved with these settings. Instellingen - Draadloos en netwerken - Met kabel of Wi-Fi - Inschakelen met Wi-Fi (WoLAN) -> Aan Instellingen - Draadloos en netwerken - Met kabel of Wi-Fi - Inschakelen met Chromecast -> Aan
Below the stats from the integration. Still Google Home can turn the TV on. 22 Philips UHD Android TV became unavailable 3:32:12 PM - 1 second ago 22 Philips UHD Android TV became unavailable 3:32:12 PM - 1 second ago 22 Philips UHD Android TV turned off 3:29:00 PM - 3 minutes ago 22 Philips UHD Android TV turned off 3:29:00 PM - 3 minutes ago 22 Philips UHD Android TV turned on 3:28:13 PM - 4 minutes ago 22 Philips UHD Android TV turned on 3:28:13 PM - 4 minutes ago
Hello, Just follow doc (https://www.home-assistant.io/integrations/androidtv_remote) : Some devices, like TCL, become unavailable after they are turned off, unless you activate the Screenless service. To activate it, go to Settings > System > Power and energy > Screenless service, and activate it.
It's work for me,
Regards,
Hello, I did tried it, however, My TV has no such (Screenless service) setting.
Hello, Just follow doc (https://www.home-assistant.io/integrations/androidtv_remote) : Some devices, like TCL, become unavailable after they are turned off, unless you activate the Screenless service. To activate it, go to Settings > System > Power and energy > Screenless service, and activate it.
It's work for me,
Regards,
I have the same issue with my TCL Android TV. It doesn't even have such a setting.
Such a setting is not available for the Philips 50PUS8807/12. After doing the settings mentioned above, the Google Home is able to turn the TV from off to on at any time. Also after these settings and when the TV is off, the integration keeps switching between off and unavailable.
January 26, 2024 Turned off 9:11:19 AM - 9 minutes ago Became unavailable 9:11:03 AM - 9 minutes ago Turned off 9:09:47 AM - 10 minutes ago Became unavailable 9:09:15 AM - 11 minutes ago Turned off 9:08:14 AM - 12 minutes ago Became unavailable 9:07:43 AM - 12 minutes ago Turned off 9:06:36 AM - 13 minutes ago Became unavailable 9:06:04 AM - 14 minutes ago Turned off 9:00:06 AM - 20 minutes ago Became unavailable 8:59:34 AM - 20 minutes ago Turned off 8:49:19 AM - 31 minutes ago Became unavailable 8:49:19 AM - 31 minutes ago Turned off 8:47:37 AM - 32 minutes ago Became unavailable 8:47:36 AM - 32 minutes ago Turned off 8:44:23 AM - 36 minutes ago Became unavailable 8:44:23 AM - 36 minutes ago
Having the same issue with my TCL tv.
Screen less service setting sometimes shows but other times not.
Keen to see if anyone solves this.
Such a setting is not available for the Philips 50PUS8807/12. After doing the settings mentioned above, the Google Home is able to turn the TV from off to on at any time. Also after these settings and when the TV is off, the integration keeps switching between off and unavailable.
January 26, 2024 Turned off 9:11:19 AM - 9 minutes ago Became unavailable 9:11:03 AM - 9 minutes ago Turned off 9:09:47 AM - 10 minutes ago Became unavailable 9:09:15 AM - 11 minutes ago Turned off 9:08:14 AM - 12 minutes ago Became unavailable 9:07:43 AM - 12 minutes ago Turned off 9:06:36 AM - 13 minutes ago Became unavailable 9:06:04 AM - 14 minutes ago Turned off 9:00:06 AM - 20 minutes ago Became unavailable 8:59:34 AM - 20 minutes ago Turned off 8:49:19 AM - 31 minutes ago Became unavailable 8:49:19 AM - 31 minutes ago Turned off 8:47:37 AM - 32 minutes ago Became unavailable 8:47:36 AM - 32 minutes ago Turned off 8:44:23 AM - 36 minutes ago Became unavailable 8:44:23 AM - 36 minutes ago
Hi, You can increase ping frequency to 5 seconds, that should keep tv available, however for me that is enough atleat it allows to turn on tv.
Such a setting is not available for the Philips 50PUS8807/12. After doing the settings mentioned above, the Google Home is able to turn the TV from off to on at any time. Also after these settings and when the TV is off, the integration keeps switching between off and unavailable. January 26, 2024 Turned off 9:11:19 AM - 9 minutes ago Became unavailable 9:11:03 AM - 9 minutes ago Turned off 9:09:47 AM - 10 minutes ago Became unavailable 9:09:15 AM - 11 minutes ago Turned off 9:08:14 AM - 12 minutes ago Became unavailable 9:07:43 AM - 12 minutes ago Turned off 9:06:36 AM - 13 minutes ago Became unavailable 9:06:04 AM - 14 minutes ago Turned off 9:00:06 AM - 20 minutes ago Became unavailable 8:59:34 AM - 20 minutes ago Turned off 8:49:19 AM - 31 minutes ago Became unavailable 8:49:19 AM - 31 minutes ago Turned off 8:47:37 AM - 32 minutes ago Became unavailable 8:47:36 AM - 32 minutes ago Turned off 8:44:23 AM - 36 minutes ago Became unavailable 8:44:23 AM - 36 minutes ago
Hi, You can increase ping frequency to 5 seconds, that should keep tv available, however for me that is enough atleat it allows to turn on tv.
Hi good afternoon, i have the same issue with my Philips TV, you said something to change the ping frequency. Could you explain where we can change this setting? Just a hand full of user like me experience this behavior and cant get run this integration without the "Became unavailable" issue. Hopefully waiting for a solution orthe final note.
having the same issue, and the device eventually became unavailable. Has anyone found any workaround or alternative ?
I have the same problem with my TCL 75C631.
I have the same problem with my TCL 75C631.
Hi, did you saw the poste from @vvince62550? https://github.com/home-assistant/core/issues/107649#issuecomment-1893516159
January 26, 2024 Turned off 9:11:19 AM - 9 minutes ago Became unavailable 9:11:03 AM - 9 minutes ago Turned off 9:09:47 AM - 10 minutes ago Became unavailable 9:09:15 AM - 11 minutes ago Turned off 9:08:14 AM - 12 minutes ago Became unavailable 9:07:43 AM - 12 minutes ago Turned off 9:06:36 AM - 13 minutes ago Became unavailable 9:06:04 AM - 14 minutes ago Turned off 9:00:06 AM - 20 minutes ago Became unavailable 8:59:34 AM - 20 minutes ago Turned off 8:49:19 AM - 31 minutes ago Became unavailable 8:49:19 AM - 31 minutes ago Turned off 8:47:37 AM - 32 minutes ago Became unavailable 8:47:36 AM - 32 minutes ago Turned off 8:44:23 AM - 36 minutes ago Became unavailable 8:44:23 AM - 36 minutes ago
exactly this with my MiTv4s. This is recent behaviour, wasn't always like that
I solved this problem with my TCL Android TV by activating the following option hidden far away here:
Settings -> System -> Network & Internet -> activate checkbox “Network Standby”
I already have that turned on and am still having the same problem
On Wed, 21 Feb 2024 at 1:26 am, Stefan Marty Schmieder < @.***> wrote:
I solved this problem with my TCL Android TV by activating the following option hidden far away here:
Settings -> System -> Network & Internet -> activate checkbox “Network Standby”
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/107649#issuecomment-1954329233, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVUAIT7SPPBRFIWNOLPRILYUSXCBAVCNFSM6AAAAABBTCVLTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGMZDSMRTGM . You are receiving this because you commented.Message ID: @.***>
Same here on Philips and xiaomi TV
This affects the 2019 Shield TVs also. Any other ideas? There is no "Screenless service" to toggle.
Interestingly, the Cast power controls can turn on the Android TV listed under the "Google Cast" integration, even though they can't turn it off.
If you press the Cast power button again, the Cast interface stops, and the Android TV screen appears.
Then, you can do anything, and use the normal Android TV integration's power switch to turn the Android TV off again.
[!NOTE] Make sure you are using the correct device name for each integration.
The Shield that I tested this with had two different names: for the Android TV service device, and the Google Cast service "device". It may be helpful to rename these, e.g., to
My Shield TV
andMy Shield TV Cast
.
When I tried with Developer Tools > Services, this worked. These are three separate service calls, but maybe you can adapt it into a toggle button.
# Power on
service: media_player.turn_on
data: {}
target: # Android TV device
entity_id: media_player.my_shield_tv
# Go to Android TV (exit the Cast interface)
service: media_player.turn_off
data: {}
target: # Android TV device
entity_id: media_player.my_shield_tv
# Power off
service: media_player.turn_off
data: {}
target: # Cast device
entity_id: media_player.my_shield_tv_cast
If you have HDMI CEC enabled, these will probably handle your actual TV at the same time. It's a usability mess, since there are two power buttons, but it works. :)
Interestingly, the Cast power controls can turn on the Android TV listed under the "Google Cast" integration, even though they can't turn it off.
If you press the Cast power button again, the Cast interface stops, and the Android TV screen appears.
Then, you can do anything, and use the normal Android TV integration's power switch to turn the Android TV off again.
Note
Make sure you are using the correct device name for each integration.
The Shield that I tested this with had two different names: for the Android TV service device, and the Google Cast service "device". It may be helpful to rename these, e.g., to
My Shield TV
andMy Shield TV Cast
.When I tried with Developer Tools > Services, this worked. These are three separate service calls, but maybe you can adapt it into a toggle button.
# Power on service: media_player.turn_on data: {} target: # Android TV device entity_id: media_player.my_shield_tv # Go to Android TV (exit the Cast interface) service: media_player.turn_off data: {} target: # Android TV device entity_id: media_player.my_shield_tv # Power off service: media_player.turn_off data: {} target: # Cast device entity_id: media_player.my_shield_tv_cast
If you have HDMI CEC enabled, these will probably handle your actual TV at the same time. It's a usability mess, since there are two power buttons, but it works. :)
Thanks for it, i just give them a try, unfortunately the same problem with the "Goggle Cast" integration, "Became unavailable" as well
google cast doesn’t help
Hi @tronikos , ist there any activity? Any solution in sight?
I don't think there is anything the integration can do. This is up to your specific TV to provide settings to not fully turn off the device and keep the network active.
I don't think there is anything the integration can do. This is up to your specific TV to provide settings to not fully turn off the device and keep the network active.
would there be any work around / alternative ways to keep the TV woken if there is nothing we can do on the TV side? thanks.
No I don't think so
I have this both on my Xiaomi Android TV (known issue) and Chromecast 4k. Is there a way to keep the Chromecast stick available?
@proohit How do you power the Chromecast 4k?
Via an external power supply. It's not hooked to the TV other than HDMI.
Can the official Google TV or Google Home app connect to it when off? Does the device respond to ping when off? If not, there is no issue with the integration.
Yes Google Home from a phone and the remote work without problems.
I found this article while troubleshooting my junk TCL Android TV that kept going unavailable in HA.
I changed the IP address of the TV temporarily for testing before changing it back, but both IPs were still active on the network. In HA I was able to see Chromecast on the correct IP, but the Android TV Remote integration was still seeing its service at the temp IP.
I realized Chromecast is natively built in to the TCL Android OS (which is why it always works), but Android TV Remote is an app. I updated the app in the Play Store on the TCL and it improved functionality a bit, but it's still pretty unreliable. The TV now alternates between available/unavailable every couple minutes when off, but seems to always work when the TV is on.
The TCL Android implementation is pretty dodgy, I have a feeling it's aggressively memory managing when in standby and killing the Android Remote app.
There's no way I could find to exclude apps from having their service stopped in the TCL's settings, like you usually can in Android.
I wouldn't hold my breath waiting for the budget Chinese TV manufacturers to update Android.
Hi! I don't use HA and doesn't know anything about code, but I known this issue for over 3 years now. Is it up to the developers of Android TV or the manufacturer to fix this? Is this still an issue on new models with Android TV 12?
The TV manufacturers customize Android to run on their TVs, so they would need to update their implementation of Android to fix the issue.
No idea if this is still an issue with newer Android TVs, but I would just avoid the budget Chinese TV brands like TCL and Hisense if this is a problem for you.
The TV manufacturers customize Android to run on their TVs, so they would need to update their implementation of Android to fix the issue.
No idea if this is still an issue with newer Android TVs, but I would just avoid the budget Chinese TV brands like TCL and Hisense if this is a problem for you.
I have a newer Philips TV and the same problem, even the official HA Philips TV integration i cant get it run! My Samsung TV with the HA integration works like a charm, i have no idea why this works and the Philips not.
The TV manufacturers customize Android to run on their TVs, so they would need to update their implementation of Android to fix the issue.
No idea if this is still an issue with newer Android TVs, but I would just avoid the budget Chinese TV brands like TCL and Hisense if this is a problem for you.
OK, good to know. So far this issue seems to exist on Philips, Sony, TCL, Hinsense and a bunch of other brands running Android TV OS.
Hello everyone, after the update to 2024.4.3 I tried again to get the problem under control.
I have done the following things on my Philips TV:
clear data/storage go to settings > Apps > see all apps > show system apps > Android TV Remote Service > delete data
I don't know if this was relevant but I still activated "Allow files and media" under the permission settings, go to settings > Apps > see all apps > show system apps > Android TV Remote Service > Permissions > Allow files and media
reconfigure the TV with Android TV intergration in HA
restart the TV
It looks like the problem is solved, at least for me the TV does not go to unavailable.
Hello everyone, after the update to 2024.4.3 I tried again to get the problem under control.
I have done the following things on my Philips TV:
- clear data/storage go to settings > Apps > see all apps > show system apps > Android TV Remote Service > delete data
- I don't know if this was relevant but I still activated "Allow files and media" under the permission settings, go to settings > Apps > see all apps > show system apps > Android TV Remote Service > Permissions > Allow files and media
- reconfigure the TV with Android TV intergration in HA
- restart the TV
It looks like the problem is solved, at least for me the TV does not go to unavailable.
I tried all of this and more. The TV stopped becoming unavailable for a while and I thought I had resolved the problem, but eventually the problem returned.
When doing the pairing process the HA integration asks for a code from the TV. The TV app seems to eventually forget this code or something, doing the pairing process again resolves the issue temporarily until it forgets it again.
Hello everyone, after the update to 2024.4.3 I tried again to get the problem under control.
I have done the following things on my Philips TV:
- clear data/storage go to settings > Apps > see all apps > show system apps > Android TV Remote Service > delete data
- I don't know if this was relevant but I still activated "Allow files and media" under the permission settings, go to settings > Apps > see all apps > show system apps > Android TV Remote Service > Permissions > Allow files and media
- reconfigure the TV with Android TV intergration in HA
- restart the TV
It looks like the problem is solved, at least for me the TV does not go to unavailable.
I try it now... I come back with a feedback in a couple of days
No, it doesn't work... I've the same problem (Sony Bravia)
Such a setting is not available for the Philips 50PUS8807/12. After doing the settings mentioned above, the Google Home is able to turn the TV from off to on at any time. Also after these settings and when the TV is off, the integration keeps switching between off and unavailable. January 26, 2024 Turned off 9:11:19 AM - 9 minutes ago Became unavailable 9:11:03 AM - 9 minutes ago Turned off 9:09:47 AM - 10 minutes ago Became unavailable 9:09:15 AM - 11 minutes ago Turned off 9:08:14 AM - 12 minutes ago Became unavailable 9:07:43 AM - 12 minutes ago Turned off 9:06:36 AM - 13 minutes ago Became unavailable 9:06:04 AM - 14 minutes ago Turned off 9:00:06 AM - 20 minutes ago Became unavailable 8:59:34 AM - 20 minutes ago Turned off 8:49:19 AM - 31 minutes ago Became unavailable 8:49:19 AM - 31 minutes ago Turned off 8:47:37 AM - 32 minutes ago Became unavailable 8:47:36 AM - 32 minutes ago Turned off 8:44:23 AM - 36 minutes ago Became unavailable 8:44:23 AM - 36 minutes ago
Hi, You can increase ping frequency to 5 seconds, that should keep tv available, however for me that is enough atleat it allows to turn on tv.
How can I change the ping frequency? Thanks
Could it maybe have something to do with changing IP addresses? Maybe devices get a new IP lease and HA is not notified about a new IP after an already registered device changes its IP?
Could it maybe have something to do with changing IP addresses? Maybe devices get a new IP lease and HA is not notified about a new IP after an already registered device changes its IP?
I assign the IP by router. IP doesn' t change :(
Could it maybe have something to do with changing IP addresses? Maybe devices get a new IP lease and HA is not notified about a new IP after an already registered device changes its IP?
My network is all static IPs.
I'd say I have 90% certainty the issue is related to the Android TV Remote app, this is what handles the pairing process between HA and the TV. Look at the reviews for that app on Play Store, it's a buggy mess.
Hello everyone, after the update to 2024.4.3 I tried again to get the problem under control.
I have done the following things on my Philips TV:
- clear data/storage go to settings > Apps > see all apps > show system apps > Android TV Remote Service > delete data
- I don't know if this was relevant but I still activated "Allow files and media" under the permission settings, go to settings > Apps > see all apps > show system apps > Android TV Remote Service > Permissions > Allow files and media
- reconfigure the TV with Android TV intergration in HA
- restart the TV
It looks like the problem is solved, at least for me the TV does not go to unavailable.
I have tried this on my Philip Ambilight TV and it does work for me and have been pretty solid for a few days:
Hello everyone, after the update to 2024.4.3 I tried again to get the problem under control. I have done the following things on my Philips TV:
- clear data/storage go to settings > Apps > see all apps > show system apps > Android TV Remote Service > delete data
- I don't know if this was relevant but I still activated "Allow files and media" under the permission settings, go to settings > Apps > see all apps > show system apps > Android TV Remote Service > Permissions > Allow files and media
- reconfigure the TV with Android TV intergration in HA
- restart the TV
It looks like the problem is solved, at least for me the TV does not go to unavailable.
I have tried this on my Philip Ambilight TV and it does work for me and have been pretty solid for a few days:
Still everythings ok?
Still everythings ok?
yup, has not missed a bit
Guys, I have done the following and it seems to be working for now on my Philips TV.
I don't know if you have to uninstall Android TV remote services or not... You can try without uninstalling and just enabling Screen on when charging.
For me, seems to be working since couple of days
- Second in the TV settings menu, I clicked "Android Settings" > "Device Settings", then Developer Options > Enable screen on when charging (or something like that).
Looks like that was the key! Few hours already without any problem. I will continue to monitor it.
Thank you for your commitment and the search for a solution. I really appreciate it.
Probably found a solution for my Xiaomi P1:
Point is disabling energy save mode for integration on tv. Also it was disabled for Network stack
Probably found a solution for my Xiaomi P1:
- Settings
- Apps
- Special access (or similar)
- Energy save (or similar)
- find Android TV Remote
- Disable
Point is disabling energy save mode for integration on tv. Also it was disabled for Network stack
Dumb question, but where can I find Network Stack? Does it go by another name on TCL TV's? I can't find it in Apps or anything named similar to it.
- Second in the TV settings menu, I clicked "Android Settings" > "Device Settings", then Developer Options > Enable screen on when charging (or something like that).
Looks like that was the key! Few hours already without any problem. I will continue to monitor it.
Thank you for your commitment and the search for a solution. I really appreciate it.
@AssenDimitrov Many days now without problems, runs stable without the device being disconnected! Thank you very much, thank you very much for the crucial hint, the pain is over.
On my Philips I've changed the developer setting, reinstalled Android TV Remote, reconfigured it in HA and disabled power optimization for the remote app. Unfortunately nothing has worked for me.
The problem
So I encoutered problem with my Android TV (TCL), where whenver I shutdown TV, it becomes unavailable in HA:
I did some debuging, and narrowed down problem to android TV itself.
When TV is on, NMAP results:
After TV gets shutdown, by any way remote/HA/auto sleep:
I tried to change every tipe of settings in Android TV and nothing helped.
After some time I tried to wake up TV with WakeOnLan option and at first seems like TV had'nt woke up, however, nmap started responding with OK results, and TV become available (visible as turned off again) in HA again:
I know this happend not to all android TVs, however maybe you could add configuration option to enable, automaticaly resending WakeUpOnLan command, before the Heartbeat request, if tv is in Off/unavailable state?
What version of Home Assistant Core has the issue?
core-2024.1.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Android TV Remote
Link to integration documentation on our website
https://www.home-assistant.io/integrations/androidtv_remote/
Diagnostics information
config_entry-androidtv_remote-369036337b86e55921657a6ff3d5d5b9.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
For anyone looking for fast fix, setting automation every 10s. to send magic wakeup packet, to TV's MAC when TV is off/unavailable fixed the issue for me.