HD+ - Android Auto Support

I'm starting this thread as a companion to the much larger one (HD+) since the audience is likely smaller and it'll make it easier to search.

This one is just about HD+ supporting Android Auto

Requirements

  • To start, this feature requires a car that supports Android Auto and an Android device connected via USB or wirelessly
    • NOTE: There's something similar called Android Automotive or Android Auto OS.. this is when a car runs a full Android OS and can install apps which can be run without a connected phone.
    • I might look into supporting Android Auto OS in the future if there's enough demand
  • You'll also need the HD+ app. The production version can be found here but today you'll also need to subscribe to the beta version since I haven't released it to production yet.
    • Make sure you have version 1.0.1984 or greater
    • NOTE: Android Auto requires the app to be installed from Google Play so you won't be able to use the sideloaded apk version

Usage

  • First, make sure you can login to HD+ with your phone and that you have some devices displayed
    • If you've never used HD+ there's a getting started page here. You'll need to add "MakerAPI" app to Hubitat and make sure it's available remotely.
  • Next, connect your phone to your car (USB or wirelessly)
  • You should see HD+ show up as an app. Open it!
  • By default, HD+ will only show device types that can be controlled or viewed in a car interface -- switches, lights, locks, doors, HSM, thermostats.

image image
image image

Configuration

  • Once your device has been connected to an Android Auto car, a new setting shows up in HD+ called "Android Auto". This lets you control what devices and what order they should display in.
  • To add or remove devices from the list, use the little red "+" button
  • You can also re-arrange devices by touching and dragging the little icon on the right side

Links

Notes

  • I'm only supporting (showing) devices that I can display in some way with the very limited options that I have. Generally speaking any kind of switch or sensor.
  • By default I'm showing all switches and sensor-type devices but you can configure it using the phone app
  • I don't handle every possible device type just yet. I started with the simple ones (lights, switches, valves, locks and similar)
  • I'll try to handle any other useful device type one by one.. for example, HSM lets you 'arm' or 'disarm'; The thermostat device type lets you send UP/DOWN commands
  • It'll continue to evolve.. my wife's car has Android Auto support but I don't so I won't be using it that often.. so feel free to give feedback or suggestions!

Support

  • For most questions or issues, feel free to post to this thread.. I'll see those first.
  • You can take screenshots of your car's display using your connected phone
  • In some cases, device logs are very useful for me to figure out what's going on:
    1. enable debug mode in HD+ first and then try to reproduce the issue.. that's going to put more info in the logs
    2. send device logs to me at joe.page.software@gmail.com or attach them to a DM here
14 Likes

Hey @jpage4500

Been following along for years. Just downloaded your app and install was a breeze. Literally a few clicks and boom my devices were there.

Looking forward to the ride home from work and seeing it on the AA display. Lol not exactly sure how much i will use it but its fun to have stuff like this working.

Thank you for all your efforts on this.

1 Like

Awesome job Joe. Your dashboard just keeps getting better and better. To think I can now use my cars screen as my garage door opener. Cant wait to see some of the other interesting ideas come off this.

1 Like

Wow it just worked. Well done @jpage4500. Looking forward to seeing how this shakes out.

Many thanks fornthe efforts.

version 1.0.1987 (beta)

  • Android Auto: remove Tab support until the UI is ready (requires car API 6+)

I got a log from someone where the app was trying to use the Tab layout. I didn't know any cars even supported that yet. I had coded for it but then when testing realized that the emulator doesn't support API-6 yet. But, I left some of that code in which makes me think some cars actually do support it!

Anyway, this just removes that code so no need to update if you don't have any issues.

For anyone else who's interested, this is what the Tabbed layout looks like. It's in the AA developer guide but only available to Car API 6+

To configure all of the tabs, the HD+ AA setup screen would also have tabs and lets you set the icon and tab name.. plus pick devices for each tab. It's almost ready to go -- I just need to be able to test it :slight_smile:


On a side-note - does anyone know an easy way to figure out what 'car api' level AA supports? It's barely mentioned anywhere outside of developer docs. It'd be nice to say -- the 2018 Volvo XC90 supports API X but i've never seen anything like that before. Or, even an 'about' screen in the car that lists this

It may have been me. I believe this tabbed layout is referring to cool walk that i mentioned before. In my screenshot above you see the button fornthe tabbed layout in the bottom right. Pushing it didnt work for hd+ I do think it is becoming more widely available. Google was rolling it out in chunks adding support for different head units.

I am not sure how to tell what the car api is unfortunately.

It was someone who e-mailed me with device logs

Speaking of crosswalk though, I haven't really figured out any more about that. I see that icon you're talking about. What's supposed to happen when you push it? Does the app get put into split-screen mode on the left or right with some other app like music or navigation?

There might be something in the device logs which says what's happening if you're able to send them to me.

I am not sure how to tell what the car api is unfortunately.

The app (HD+) can query it.. I'll save it and display it in the auto setup screen somewhere

1 Like

Sorry the featire is called coolwalk. And yes it just gives a tabbed view allowing more apps to be on the screen at once. Similar to carplay interface from what i understand.

android-auto-coolwalk-now-available-and-heres-how-to-try-it-out-203626-7

Edit to add. I just sent my logs.

If I understand correctly, coolwalk and AA tabs are two different things. Didn't know my car supports these tabs, and to be honest, never heard before about that feature in relation to Android Auto before.

BTW, I sent the logs to @jpage4500 by email, as he mentioned before.

Thanks @jpage4500 for your hard work. HD+ is amazing and is getting better and better.....

1 Like

Is there any way to get the HD+ app to show in the top (or bottom) frame of the split portion of AA screen? The lower frame seems to be reserved for media players.

@jpage4500 Fantastic work on this app and integration.

As @jnosa899 mentioned I now can open my garage door from my car's screen!

The base HSM tile on AA does not reflect the current HSM status. After tapping the AA HSM tile it only gives Arm and Disarm Vs Disarmed, Armed Away/Home/Night on the phone screen, and does it not update (for me) when the HSM status is changed. It works correctly from the phone screen.

HSM Tile on AA Screen (System is Disarmed)

AA screen after HSM button tapped

HSM Tile on Phone Screen (System is Disarmed)

Phone screen after phone's HSM button tapped (System is Disarmed)

@jpage4500 1.0.1987 without tab code is now working for me as well. Still interested to support testing the tabbed AA. Please let me know.

1 Like

I was just able to test AA in a car for the first time today and I noticed a similar issue. In my case I hit disarm and it said the command was sent (that's always displayed btw -- i should change it to wait until the command was actually sent and received by the Hub)

The other (more important) issue was the HSM status never changed. I hopefully have the logs I can pull from my device and see what happened.

I'll get it figured out

1 Like

I can put in an option to use the tabbed UI. I'll put the option in the phone settings (vs the car screen) so you can disable it if it doesn't work. I still need to figure out how to test it somehow.

When it (tab UI) is working.. would it make sense to detect support for it and show a little 'tab' icon on the car UI? (see the "[+]" button in the image below)

I don't know if having the button always there is worth is for something that isn't probably worth changing often

1 Like

Not really sure about the tab icon. I agree with you, in not being sure if it's worth. The idea to add an option for the tabbed UI seems to be awesome.

Please let me know when you are at that point

version 1.0.1991 (beta)

  • Lots of Android Auto changes
  • Improved Life360 support (discussed more in the main HD+ thread)

Android Auto

I added a bunch of new things here:

  • I'm displaying the Car API (see the "CarAPI 5" below) in the app. Version 6+ supports a tab layout so this is 1 way you can check if your car supports that or not
  • I'm loading custom images now for devices; right now you'll probably see the default icon show up for a second and it'll be replaced with the custom image. I'll see if I can improve that but my goal was NOT to delay the UI for some image that needed to be loaded over the web
  • fix HSM icons and state
  • some tweaks to thermostats
  • devices should now update to their correct state while the car UI is running -- even if the android app isn't
  • IF you have car API 6+ you can now enable tab support (disabled by default)
  • The tab UI is completely untested (I have no way to test ATM) so no guarantees it'll work.. but, if it does break you should be able to disable it in the app to get the normal version again.
    • NOTE: you can change the tab name and icons in the app but I haven't implemented everything in the car UI yet.. just hoping to get it working first!

Car UI

Settings


2 Likes

Hey @jpage4500 what is the version number for this? I think im on the latest but not showing the new features.




It looks like Google Play is taking longer than usual for this update (not sure why). I did read that they are supposed to do a longer review for any auto updates so maybe this explains it..

2 Likes

Didn't receive the update either

Just got the update!
Regarding the Android Auto tabs - is that setting available now via the car screen? I cannot see it on the HD+ app on the phone

1 Like