Thanks for this first test!
Could you give me more info about the issues you had when connecting? The code displays but doesn’t work, the code doesn’t display…
Yes, it’s not very clear. You have two options: either you use a widget (to turn the TV on/off and volume only) or you can enable the functions equivalent to the remote control buttons via a scene (you run a scene with a sound that you send through a speaker; for example you can use the MUTE function to trigger your speaker and when it’s finished « send back » the MUTE to reactivate the sound on your TV)
What model of TV do you have? Is it Android TV or Google TV?
On my side I do everything via the emulator available in Android Studio so there may be differences between a real TV/TV box and the emulated system.
You’ll also see that among the features there is one in text format that reports the currently used application. By default it’s the app’s package name so I made a mapping between the package name and the app name Android TV remote service by bertrandda · Pull Request #1829 · GladysAssistant/Gladys · GitHub
If you have other apps installed can you tell me the packages that are displayed by this feature?
For now, this service only allows controlling the TV. But indeed in Home Assistant, they have a service for notifications Notifications for Android TV / Fire TV - Home Assistant so it should be possible to reproduce the equivalent in Gladys