Hi, I was trying to get my Nvidia Shield to turn off when my Samsung TV is switched off i.e. my wife not turning off my Shield when she turns the TV off. My automation yaml is as below but when I switch the TV off and it goes into Off state, nothing happens with the Shield? I’m running ADB bridge and the TV is connected via wifi dongle, both showing as media players? If I trigger the automation the shield turns off though.
If anyone is able to point me in the right direction, it would be appreciated. Was wondering whether to dust off my harmony hub but seems odd that HA is detecting changes in both so assume it’s more likely to be an issue with me not configuring the automation correctly?
Thanks so much for this, was able to get working based on your code. I added an action to return to the Home screen then Sleep so that when the Shield is turned back on, it is already at the Home screen.
Cool. You can also use Android TV to detect your apps on the Shield. I have mine set up so that when Plex launches, it first announces that Plex has launched (on my google home hub) using TTS. It then will cast a custom lovelace view with Plex information of what is currently playing and also plex specific media controls. This uses the new home assistant cast component.
With the latest release of HA, the app detection is spotty for Android TV, but I recently read that a fix is coming in the next couple of releases.
I’m connecting Shield TV 2015 version with an LG TV bought same year. Whenever I turn off LG TV, the Shield is off automatically too, even without any interaction through HA or hub. I guess it is because of HDMI CEC settings on both devices.