-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems turning off the TV #10
Comments
Same here. Home Assistant Core release: 0.107.4 |
Looking log seems that KEY_POWER command is sent in any case, but I discover a possible issue in the power status check. |
I've just updated to v0.1.15 and retried, but without success: media_player.toggle doesn't switch off TV (even if the TV entity status is 'on' - checked from dev tools states tab), while calling the media_player.play_media > send_key service shuts down the TV correctly. |
Command sent to the TV with Does all the other control work properly (volume, play pause etc.) |
I just noticed. If the TV is on and I push the power button on my lovelace card the power button color turns as if the TV is off, but the TV is still on. If I then push one more time on the power button the TV turns itself off, but the power button is colored as if the TV is on. And then takes like a minute to detect that it's off and then goes to grey. |
When you push the power off buttom, the status is forced to off and then start a delay of 20 sec. because normally the TV continue answer to ping for this time. During this period, if you send again a power command, a KEY_POWER is sent again to turn the TV back on. So it seems that you need to send the KEY_POWER 2 times to have the TV answer to the command. |
Just to recap:
|
The only difference between The local check is the faster and more reliable way to check the TV status. Health check via SmartThings is also done, but status update at SmartThings side obviosly take longer than local. |
Thanks so much! Its working just perfect for me now. I've always used an IR blaster but this will replace that for this use case. |
Good to hear. |
Thanks @ollo69, now all seems working fine! |
The problem
When I try to switch off my TV from Home Assistant nothing happens on my TV. If I call directly the services media_player.turn_off or media_player.toggle the problem persists, if I send directly the KEY_POWER using the service media_player.play_media it always work perfectly.
Environment
configuration.yaml
:Traceback/Error logs
Calling media_player.turn_off service >> NOT WORKING
Calling media_player.toggle service >> NOT WORKING
Sending KEY_POWER directly >> WORKING
The text was updated successfully, but these errors were encountered: