Control Your Smart Home with Ease: Android TV Remote Integration with Home Assistant

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • May release of Home Assistant (2023.5) has brought new integration called Android TV Remote. While it only shows as single entity, there is a hidden gem that makes this very useful integration - if you of course do have Android TV with Remote.
    We will look at how you can use it to start your favourite app on Android TV device.
    Link to community forum:
    community.home-assistant.io/t...
    00:00 - Intro
    00:34 - Setting up Android TV Remote integration
    02:40 - What else can you do?
    05:49 - Examples of service calls for apps
    Don't forget to give this video thumb up if you liked it, subscribe if you still haven't and I'll see you next time!
    Have fun!
    Bearded Tinker
    ____________________________________________________________
    👕☕Awesome merchandise? Sure - here it is!
    ▶ shop.beardedtinker.com/
    ____________________________________________________________
    🧡 If you would like to support me and this channel, you can JOIN and become RUclips channel member! 🙏 ruclips.net/user/BeardedTinker...
    ____________________________________________________________
    📣Follow me on other platforms📣
    ✅Twitter: @BeardedTinker
    ✅Instagram: @2BeardedTinker
    ✅Discord: / discord
    ____________________________________________________________
    (*) if any, should indicate links that are affiliated links. They don't cost you anything extra but provide small income to get this channel going, and finance future projects I make.
    #homeassistant #androidtv #googletv
  • НаукаНаука

Комментарии • 86

  • @dougbas3980
    @dougbas3980 11 месяцев назад

    Just found you thru the HA Android info. This can be very helpful. I handle 3 remotes now to use my home entertainment system. That is very hard for my wife. We have Echo-dots and I would like to allow my wife to watch her favorites with a verbal command to Alexa. It sounds like this may be enough to achieve that. BTW, I enjoy you humor and you are a good teacher as well. I have subscribed. Thank YOU!

  • @Claudiu.
    @Claudiu. Год назад +2

    So weird that just yesterday I noticed my TV asking me that code after clicking 'configure' the new device and didn't realize what I was doing. Thank you again for how detailed your explanations are. Like the engineering style.

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Thank you :)
      There is a example in documentation on how to add remote to UI also, but I haven't shown that. Usually it's faster to pick the remote than use any UI (web or phone).

    • @Claudiu.
      @Claudiu. Год назад +1

      @@BeardedTinker I would see the need for it through services and in a scene or automation. But good to know. I did notice it in the video.

  • @jmr
    @jmr Год назад +1

    Great video. I recently figured out I could do something like this with the FireTV which in many ways is just an Android TV device. I came upon your video researching the idea just now. I decided to use the FireTV stick without a monitor. I plan to use a Bluetooth speaker for audio which seems to work well so far. I believe I can grab button push information and have home assistant do things based on those button pushes. Since it uses a voice remote I also have access to Alexa.

  • @SmartHomeJunkie
    @SmartHomeJunkie Год назад +2

    Thanks Andrej! Nice info again!

  • @necrobot2262
    @necrobot2262 Год назад +3

    "I don't judge you.... yet" 🤣🤣🤣🤣

  • @catcam
    @catcam Год назад +1

    Thanks for that !

    • @BeardedTinker
      @BeardedTinker  Год назад

      You're welcome and thanks for the comment Nikša!

  • @ronm6585
    @ronm6585 Год назад +1

    Thanks B.T.

  • @MrToup
    @MrToup Год назад +1

    Really interesting thanks for the video as usual.
    What is the difference with the Android Debug Bridge integration? If I remember good I could start applications with it no?

    • @BeardedTinker
      @BeardedTinker  Год назад

      Thank you! :)
      ADB integration should allow more control of the device than Remote integration. For example you can upload/download files via ADB that I don't think you can do with Remote integration.

  • @louisviciedo
    @louisviciedo Год назад +3

    Great video, has anyone found the URL for Hulu?

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Haven't seen it so far. Did you try to find it yourself? It's actually not that hard. Takes about 10-15 minutes total time.

    • @louisviciedo
      @louisviciedo Год назад

      @@BeardedTinker thanks, but I did try and was not successful

  • @music_master12
    @music_master12 Год назад +2

    I would love for you to see how to add to the remote control
    Mouse pad option
    and the possibility of adding space to write via mobile

    • @BeardedTinker
      @BeardedTinker  Год назад

      For that you would need to use ADB integration but I haven't played with keyboard and input fields there.

    • @music_master12
      @music_master12 Год назад

      do you have guide for that?@@BeardedTinker

  • @JoshFisher567
    @JoshFisher567 Год назад +1

    Android TV still works via the ADB add on, I was having issues at first after the latest uodate but figured out what qas wrong. If you are running the ADB add on (which is deprecated) you just have to delete the AndroidTV folder under the custom-comoonts folder and reset it up and everything starys working again. At least it did for me.

    • @BeardedTinker
      @BeardedTinker  Год назад

      I'm not using AddOn. Instead I've been using internal ADB (Android TV) Integration.

  • @kfash5198
    @kfash5198 Год назад

    Is there anyway to be able to read the state/activity of google tv? For example, how can i know when the TV is on netflix app or HBO max. I want to use this state to run different automations based on what is showing on the TV. Meaning even if i use the google remote to change apps, i should be able to know which app it is on home assistant so that i can run my automations based on the app

  • @JazJonFL
    @JazJonFL 2 месяца назад +1

    How do we get the On Off button to show up Apple home kit? The on off button works inside home assistant but I’m not seeing any new accessories to add in the iOS Home app for HomeKit.

    • @BeardedTinker
      @BeardedTinker  2 месяца назад

      Really not sure on how to add it. I'm not using HomeKit that much and most of the controls are done through HA, not through HomeKit.

  • @Badg0r
    @Badg0r Год назад +2

    On our old chromecast we had an automation to turn on a dimmed light scene when the chromecast started playing, and to brighten the lights after we have pressed play. This stopped working properly with the chromecast with Android tv. Hopefully this will work again too.

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      I still have that working - I use trigger for media_player.google_tv and test when it's in the state playing to trigger it.

    • @Badg0r
      @Badg0r Год назад

      @@BeardedTinker thank you for your answer. I'll try that. I've removed it a few months ago but still used the chromecast states instead of Google tv states. Maybe that will do the trick

  • @timdaeleman
    @timdaeleman Год назад +1

    Just wondering, would you be able to use the Chromecast TV remote for Home Assistant instead of the Android TV dongle? I already use my Harmony to operate the Android TV dongle.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Not sure I get the question? This integration is used to create virtual Android TV remove. Chromecast dongle doesn't have Android TV firmware. SO if that was the question, than no.

  • @bryonhulcher851
    @bryonhulcher851 11 месяцев назад +1

    Is there a way to get the assistant button on the CCGTV remote into home assistant ? I tried using the sdk send text command service to get youtube tv on this device to switch channels ( fox, cbs, nbc, etc) but it doesnt work. I can only get the youtube tv app to open. When i physically use the black assistant button on the remote, I can tell it to turn to CBS on RUclips Tv. any suggestions for channel changing ?

    • @BeardedTinker
      @BeardedTinker  11 месяцев назад

      I've seen some using ADB integration and send_command for that (on community forum), but never tried it to be honest.

  • @alondinbar6193
    @alondinbar6193 Год назад +1

    great video - but the tv turn on (chromecast) to the window i need to choose which profile (google profile). how to overcome it?

    • @BeardedTinker
      @BeardedTinker  Год назад

      This depends also on TV settings. I had to enable "allow hdmi cec" for this to work.

    • @alondinbar6193
      @alondinbar6193 Год назад

      @@BeardedTinker already with this setting. I control the tv with chromecast physical remote /: any other ideas? Not matter which app i try, first window is to choose which google profile to use.

    • @BeardedTinker
      @BeardedTinker  Год назад

      I only have one profile on it, maybe that's the difference. Do you have multiple profiles?
      Also, what android TV device are you using?

  • @SmartLifeEnthusiast
    @SmartLifeEnthusiast Год назад +1

    I already have a Chromecast integration.
    Does this replace that integration, or does it add anything extra?
    By the way: Chromecast integration often incorrectly reports which app is open. E.g. When I open RUclips (Kids) via the remote and later open a different app via the Home menu, it still shows that RUclips video. Also detecting when something's playing doesn't work fully, so my lights don't always dim correctly.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Chromecast or Android TV? Chromecast integration usually just exposes media_player integration. Android TV (now called ADB) and Android TV Remote allow you to control (start/stop apps) and Remote also allows you to navigate Android TV.

    • @SmartLifeEnthusiast
      @SmartLifeEnthusiast Год назад

      @@BeardedTinker Chromecast 4K with Google TV

    • @BeardedTinker
      @BeardedTinker  Год назад

      @@SmartLifeEnthusiast same as me. I have both internal ADB and Remote integration. ADB takes a bit of time to get update, while Remote is faster in that regard.
      But none of them from what I've seen will do it instantly.
      As for lights, I catch playing state of Google TV media player and that one usually responds in first 1-2 seconds when I start to play. Also stopping or pausing will turn the light back again, and same it takes about 1-2 seconds for it to respond.

  • @BenWilson24
    @BenWilson24 Год назад +1

    I had created this before this new integration and was limited on the frequency at which I pressed a button; I believe it would only respond to a given button one time per second. Is that still the case here?

    • @BenWilson24
      @BenWilson24 Год назад +1

      Nevermind, answered my own question. This works great!

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Check also documentation if you want to use arrows.

  • @VALEK2001
    @VALEK2001 Год назад +1

    Great video, but can someone tell my why in my case I cannot turn ON the TV - remote entity is inactive 🙄

    • @BeardedTinker
      @BeardedTinker  Год назад

      Remote entity or TV entity? I haven't seen that in 10 days I've been testing this. Remote hasn't gone unavailable (except for a second or two).

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Also, try to power cycle device. Some devices (such as Shield) have issues until you fully power cycle them - unplug/plug again.

    • @clairerovic
      @clairerovic Год назад +1

      Thanks as always very enjoyable

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Thank you Claire!!!

  • @EsotericArctos
    @EsotericArctos Год назад +1

    Did you find any issues with turning off the TV? If I say "Hey Google, turn off the living room tv" then it all turns off fine, using the remote: turn off in Home Assistant turned the Google TV thing off, but the TV stayed powered on a blank screen.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Haven't tested turning TV off. But also, I remember there was a setting on older Android TV box that allowed to specify if you want to also turn off TV when turning box off.
      Can't remember if I had same setting on Google TV.

    • @EsotericArctos
      @EsotericArctos Год назад

      @@BeardedTinker Mine turns on and off the TV if I use voice commands, just wouldn't turn off the actual TV via HA. I mihgt have to play and see if there is another setting or something :)

    • @MS-gn4gl
      @MS-gn4gl Год назад +1

      To do this you need to have a setting turned on to allow arc to turn on the TV when it's off.

    • @MS-gn4gl
      @MS-gn4gl Год назад +1

      And i mean on your tv itself not on the Chromecast etc.

  • @yerunski
    @yerunski 20 дней назад

    I feel the video is incomplete. Sure, the calls service works fine. But then what's next? Quite tidious to use call service all the time just to switch on RUclips or Netflix in HA. Or maybe I missed something?

    • @BeardedTinker
      @BeardedTinker  19 дней назад

      Add them to automation or script - why would you run them by hand...
      When motion is detected in living room, turn to Netflix if it's 21:30, for example.

  • @chris_piss
    @chris_piss Год назад +1

    Did your TV come with that remote? I love that remote but haven't seen someone control their tv with it before

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      No, that remote is from Google for Google TV.

    • @chris_piss
      @chris_piss Год назад +1

      @@BeardedTinker gotcha. How do you feel about that? I tried one when they first came out and found it to be extremely slow once it had more than 4 or 5 apps installed

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      @@chris_piss well, they could have used better/faster HW and definitely more memory. But it has improved with latest updates and is a bit snappier than before.
      I only have streaming apps installed (Netflix, Disney, HBO + Emby & Jellyfin).

    • @chris_piss
      @chris_piss Год назад

      Nice, appreciate the info!

  • @syukrishahabuddin4618
    @syukrishahabuddin4618 Год назад +1

    after integration with android tv and mi tv stick. anytime it those device go into deep sleep. i would lose the integration and need to remove and repeat the process once they are auto discovered. any advice to solve this?

    • @BeardedTinker
      @BeardedTinker  Год назад

      Does it maybe change the IP address? If yes, that could be the problem. I had MI TV Stick previously and it didn't show those issues. But also, you couldn't wake it up from within Home Assistant

  • @ice_ryda
    @ice_ryda Год назад +1

    When i hit configure. I don't see pin on my tv

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Do you have ADB (USB debugging) enabled on your Android TV and is it on same network as Home Assistant? Nothing else for now pops on my head.

    • @ice_ryda
      @ice_ryda Год назад +1

      @@BeardedTinker 🙌🏿 that was it. You've solved my problem I'm was able to get the pin when USB debugging was enabled. Thank you 🙏🏿

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Glad it works and have fun with the integration!

  • @asopoku
    @asopoku Год назад +1

    When my TV is off I cannot turn it on from Home Assistant.

    • @BeardedTinker
      @BeardedTinker  Год назад

      Depends on TV. Have you enabled HDMI control of your TV? Sometimes you need to enable those settings in your TV

    • @asopoku
      @asopoku Год назад

      @@BeardedTinker yeah I have

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      @@asopoku than it could be issue with Android TV device. From what I've tested, some like Mi TV Stick go in deep sleep after they've been turned off and you can't wake them up via network. Maybe that's the case here.

  • @zeal514
    @zeal514 8 месяцев назад +1

    This is backwards. Controlling a TV with home assistant isn't that needed. There are tons of remote apps, and remote options, the last thing we need is another poorly optimized remote app. We need the exact opposite of this. We need home assistant, and home assistant widgets/cards on Android TV. I should be able to go to the home page on my android TV, and select a widget or automation, that sets my lights to a certain configuration. I should be able to make a whole row of certain automations, pending my needs. I am shocked this isn't already a feature.

    • @BeardedTinker
      @BeardedTinker  8 месяцев назад

      I do understand what you would like. There are ways to get companion app on 3rd party boxes - sideloading.
      But here we have a problem of UI with navigation, as most of the boxes have simple remote that would make scrolling and selecting entities very hard.
      I use it on Oculus VR - sideloaded app and it works nice, but that's much easier to navigate due to hand tracking.

    • @zeal514
      @zeal514 8 месяцев назад

      @@BeardedTinkerEdit: the app is called TV quick actions pro. And my theory seems to check out. I was able to create a "channel" on android TV. Now i am in the process of making a webhook, and seeing if it calls the automation properly. which seems like it will do that perfectly. -end edit-
      I think i found a way. I just gotta do some research, see if my theory is possible. But there is a app, that creates 'apps' which act like buttons on androidTV. It costs $3.99, and you can have it go to a website. If i am understanding webhooks properly, Im thinking i can create various webhooks, to activate certain automations, turn them into specific buttons, create a Row in my projectivy launcher for smart home for the buttons, than have it control the house in anyway that i may need. Its all theory at this point, and I am making a huge assumption on webhooks, and this apps capability. But if it works like how I am imagining it working, it should be pretty flawless.

    • @BGraves
      @BGraves 8 месяцев назад

      @@BeardedTinker sorry, but he's right. Fortunately we have web browsers for our TV. There are plenty of Android TV apps that have complex menus which can be navigated with the arrows on the remote. Also, any person who is likely to set up home assistant also would consider a Bluetooth keyboard with a touchpad mouse a viable input device

  • @sur0x
    @sur0x Год назад +1

    it doesnt show the pin on my mibox4

    • @BeardedTinker
      @BeardedTinker  Год назад

      Check that mibox has this app installed too -play.google.com/store/apps/details?id=com.google.android.tv.remote.service

    • @sur0x
      @sur0x Год назад

      @@BeardedTinker It has, already checked.

    • @BeardedTinker
      @BeardedTinker  Год назад

      @@sur0x I've tried this on Mi TV stick and it worked. Not sure what could be the problem here.

    • @sur0x
      @sur0x Год назад

      @@BeardedTinker is it the first older one or the second generation one?

    • @BeardedTinker
      @BeardedTinker  Год назад

      @@sur0x I think it's first.

  • @ABnSuItan
    @ABnSuItan Год назад +1

    i just want to navigate right and left, why is google making this so hard :(

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      Try this, if it works:
      action: call-service
      service: remote.send_command
      data:
      command: DPAD_LEFT (or DPAD_RIGHT)

    • @ABnSuItan
      @ABnSuItan Год назад +1

      @@BeardedTinker wow and it's even fast, couple of years ago similar integration took forever for each command to execute
      thanks a lot

    • @BeardedTinker
      @BeardedTinker  Год назад +1

      @@ABnSuItan awesome! Glad it's working for you!!!