Turn off the TV screen

Hi,

Kind of new still, so this might be a dumb question.

Is it possible to use Home Assistant to turn off my TV screen? All I have is a ‘dumb’ LED with a Chromecast (CEC) plugged in. It is possible to turn the TV screen off with a command from Google Assistant (‘Turn off TV’), I would like to automate this feature.

I’ve tried calling the service media_player.turn_off in Home Assistant but this will only turn the Chromecast in standby, still showing pictures of landscapes and animals on my screen.

I’ve been struggling to find answers to this question. I mostly come across topics from about 4-5 years ago concluding there is no solution yet. So is it still not possible today or am I missing something really obvious?

Edit: Also, the turn off button in the device screen in Home Assistant does the same thing as media_player.turn_off (probably the same command even).

Well yes and no.
You probably don’t have play store as this is older tv. You can check online how to enable debug mode on you tv. With debug mode enabled you can try to connect to your tv and try to control it with adb commands.
For me this worked unstable making tv to freeze from time to time.

I use a Tuya plug and shut mine down with that via Localtuya integration. Probably not what you’re looking for but it works.

Thanks, unfortunately my TV is really nothing more than a big screen. It literally cannot connect to anything itself and only has a couple of HDMI- and USB-ports. It must be controlled via an external source.

Thanks, that could be a good backup idea. I’ve got a couple of Tuya plugs connected via Localtuya already.

Maybe you can check this.
It’s relatively cheap but it maybe might be what you are looking for.

No internet connection on the screen either I’m afraid. Thanks for the suggestion though :slight_smile:

No, this is what I had in mind. It connects to wifi and should be able to control tv. I don’t know will it turn tv on/off as I don’t have it.

Ah yes, that makes sense. Kind of pricy when only using the off function :stuck_out_tongue:
I’ll try to figure out how to mimic the currently functioning Google command in HA first.

This is no longer maintained and archived. It still shows up in addons I think…

I think you can use it to send “voice commands” as text via an automation.

I am assuming that’s how you have been doing it via chromecast.

“Hey google, turn off my dumb led tv”

You could also probably do it as a Google routine in Google home.

Will look into this and let you know if I got it working!

Personally I just use an esp8266 with an IR emitter for my TV that doesn’t have CEC. Although that works better if there is separate on and off IR commands.

I never really looked into the google relay because I don’t think the voice command to turn off TV’s existed when I looked. That was probably 3 years ago though.

Hi,

I solved the issue with the Google Assistant SDK integration. I followed the instructions in this video:

Thanks and bye!

2 Likes

Hello, not sure how you sorted this out with the SDK integration. If I indicate the right google device, it shuts down this device but not the underlaying TV. Can you please share the commands you used to get this done ?
Thanks,
Jens

If your tv supports hdmi cec, you could try this

I bought the stuff and tried it without success. I am however slowly without options besides replacing the TVs
I have a streamer/android tv on each of these tvs. The remote it provides allows to turn on and off the tv. So it should be possible to use these. Just not seem to find how

Really? For me only my panasonic tv didn’t work probably because it’s an older model that didn’t have hdmi cec support. It wasn’t fetching any hdmi cec logs

i connected it to multiple tvs without success. I connected the right cables but when i ran a command, it just didn’t do anything. Maybe i’m missing something. Maybe can you share your yaml ?

Just the same yaml from the github and connect the correct pins to the esp
Did you get any logs at all when changing anything on the tv?

I’ll try it again this weekend and i’ll let you know.