# Android TV integration

**URL:** <https://community.gladysassistant.com/t/integration-android-tv/8229>\
**Category:** Développement\
**Created:** [June 25, 2023, 8:49pm UTC](https://community.gladysassistant.com/t/integration-android-tv/8229 "2023-06-25T20:49:42Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [October 29, 2023, 1:35pm UTC](https://community.gladysassistant.com/t/integration-android-tv/8229/41 "2023-10-29T13:35:27Z")

</div>

I added handling for Google error codes; it seems OK with a fake MQTT device.  
An up-to-date image is generated.

---

<div class="post-metadata">

**Author:** ![bertrandda](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bertrandda/32/5929_2.png) [@bertrandda](https://community.gladysassistant.com/u/bertrandda)\
**Post date:** [January 18, 2024, 10:31pm UTC](https://community.gladysassistant.com/t/integration-android-tv/8229/42 "2024-01-18T22:31:17Z")

</div>

Back to the topic of controlling Android TV via Gladys. Since the PR was closed for inactivity and overwrote the original branch, I had to recreate a PR — here it is

> <https://github.com/GladysAssistant/Gladys/pull/2004>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!
> 
> Add Android TV service to control smart TV

Thanks to @GBoulvin I was able to add applications to the mapping for a more accurate display in Gladys. Gwenaël, don’t be surprised, I only kept the important apps (mainly media) in the mapping. Those used, for example, by support such as feedback messaging, Google Mobile Services… seem less relevant to me, and we risk multiplying requests for additions for each TV manufacturer.

As for your request about automatic IP detection, I won’t be able to do it (at least for the time being). I use Google’s emulator for developers to run Android TV on my development machine, with port forwarding on certain ports to make the command work from Gladys, and unfortunately network detection doesn’t seem to work properly in that case. I’ll think about a solution

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 20, 2024, 2:15pm UTC](https://community.gladysassistant.com/t/integration-android-tv/8229/43 "2024-01-20T14:15:17Z")

</div>

And if we follow the current trend, is it conceivable to do a «&nbsp;silent&nbsp;» release without automatic detection?  
The user must declare the Android TV’s IP for this v1, then we report the bugs and v2 could be released «&nbsp;with much fanfare&nbsp;» with fewer bugs and automatic detection?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 23, 2024, 9:17am UTC](https://community.gladysassistant.com/t/integration-android-tv/8229/44 "2024-01-23T09:17:27Z")

</div>

Totally 🙂

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [January 24, 2024, 9:09am UTC](https://community.gladysassistant.com/t/integration-android-tv/8229/45 "2024-01-24T09:09:15Z")

</div>

Consider yourself warned @bertrandda 😁

[Previous page](https://community.gladysassistant.com/t/integration-android-tv/8229.md?page=2)
