Nvidia Shield Integration Best Practice

I recently switched from a Fire Stick to Nvidia Shield Pro. So far I’m really happy with the Shield but I’m struggling with the Home Assistant integration. I’ve tried using the same Android Debug Bridge integration that I’ve used for the fire stick but I’m running into two problems:

  1. The source app is often listed as “Failed to write while dumping service window: Broken pipe”
  2. I keep seeing a status of Playing when the Shield is in a menu (either the app or the main menu).

I also tried the Google Cast integration which is great when it’s working, but then it will not update for long periods of time.

Has anyone found a good way to get play/pause/idle states from the Shield?

I agree. The ID seems to change often and then you have to go in front of every TV, wait for the prompt, and then agree to allow it access.

I got it to work for me by manually setting state configuration rules in the ADB configuration. I set this for any apps that were showing as “playing” when they were idle (including ‘Failed to write while dumping service window: Broken pipe’):

- playing:
    audio_state: playing
- paused:
    audio_state: paused
- idle

I still need to do some testing but so far this has things working pretty closely to how the fire stick did.