androidtv is a Python package that provides state information and control of Android TV and Fire TV devices via ADB. This package is used by the Android TV integration in Home Assistant.
pip install androidtv
To utilize the async version of this code, you must install into a Python 3.7+ environment via:
pip install androidtv[async]
ADB Intents and Commands¶
A collection of useful intents and commands can be found here (credit: mcfrojd).