Home Assistant Community Add-on: ADB - Android Debug Bridge

You have to send a “real” ADB command. The androidtv.adb_command service maps "SLEEP" (for example) to input keyevent 223. See here for more info: https://github.com/JeffLIrion/python-androidtv/blob/39c0c0a6710d21f941755dc063fd2244f4d8c9c3/androidtv/constants.py.