Hello all,
My first post, and first endeavor in home automation.
I’ve installed a fresh install of HassIO on an NUC I had lying around. So far so good. It sees my existing Hue lights and they show up in the devices.
No for a first challenge I wanted to set up an automation where the lights come on when I pause a movie on my nVidia Shield - and I’m not getting it to work.
Here’s what I did so far:
Install ADB, and set the following in the ADB config.
{
"devices": [
"192.168.178.133"
],
"reconnect_timeout": 90,
"log_level": "info"
}
I also enabled the debugging on the Shield.
In the configuration.yaml I added this:
media_player:
- platform: androidtv
host: 192.168.178.133
name: "ShieldCinema"
adb_server_ip: 127.0.0.1
adb_server_port: 5037
It’s not clear to me whether after a restart of HassIO I the Shield should be visible in the devices, but the only thing that’s there is the Chromecast target - which was already there before taking the above steps.
In Automation I used this as a trigger:
entity_id: media_player.ShieldCinema
from: playing
platform: state
to: paused
But when I play something in Netflix or another player, and pause it, nothing happens.
The ADB log says this:
Add-on version: 0.5.5
You are running the latest version of this add-on.
System: HassOS 3.7 (amd64 / intel-nuc)
Home Assistant version: 0.103.6
Supervisor version: 193
[14:08:27] INFO: Starting the Android Debug Bridge server...
[14:08:27] INFO: Connecting to device: 192.168.178.133...
connected to 192.168.178.133:5555
And the HassIO service log says this:
Could not connect to ShieldCinema at 192.168.178.133:5555 using ADB server at 127.0.0.1:5037
Thanks for any guidance or hints as to where to look for solutions.
Best,
Barend