aio-androidtv is a Python 3.7+ package that provides state information and control of Android TV and Fire TV devices via ADB.
Be sure you install into a Python 3.7+ environment.
pip install aio-androidtv
ADB Intents and Commands¶
A collection of useful intents and commands can be found here (credit: mcfrojd).