unfoldedcircle / integration-androidtv

Android TV integration for Remote Two
https://www.unfoldedcircle.com/
Mozilla Public License 2.0
1 stars 5 forks source link

adb for Android TV possible #49

Open Kat-CeDe opened 1 month ago

Kat-CeDe commented 1 month ago

Description

Android TV for Media Player is almost perfect but a lot of features for TV sets based on Android TV have a lot of missing features.

Additional context

Last week I did my first steps with the core-api and it seems that the remote has 2GB RAM and 4GB FLASH so there is quite some space.

With adb my Philips TV can directly switch the different inputs and also the different sound outputs like ARC, BlueTooth or internal speaker. adb only needs USB debug enabled, the IP (which the integration already has), port 5555 and a string. The string could be made configurable as a source input like the http-get integration does it.

thomasm789 commented 1 month ago

@Kat-CeDe If you have Home Assistant you could use scripts as they show up as entities that can be used in activities or buttons.

That being said, I do have a fork that I use that has ADB support for Android. I might contribute it here should there be any appetite for it.

Kat-CeDe commented 1 month ago

I am not asking for me. I have it already running but not with HAss instead with IP Symcon. I am asking for people which have not the skills and/or equipment to have a home automation running.

I do not know if HAss also can switch audio output? If not here is a tip: "adb -s " . $ip . ":5555 shell settings put global hdmi_system_audio_control_enabled 1"; will enable ARC on my Philips TV.

btw. thank you kennymc.c for the Swiss army knife HTTP-Post integration.

Ralf

Kat-CeDe commented 2 weeks ago

BlueTooth seems to be on the way. For FireTV I think there will be either no or only a limited amount of commands to directly start an App. Here adb would be a great help. So instead of integrating it into AndroidTV it makes more sense to have a separate adb integration imho.

Ralf