I made a basic Android Auto app for use in my car. It uses a group to determine what items to show. It supports switches and rollorshutters for control and strings as a read only status. The openHAB server configuration is done on the phone and the items show up as a grid on the car screen. I published it to google play for open testing. Let me know if it works or if you have any issues.
the phone has the settings, you can configure it for a local server URL or it can be used with https://myopenhab.org/. Then in openHAB make a group called “AndroidCar” or similar and put the switch items you want to show up. Put that group name in the app settings and click test to see if the items appear.
I generated now a new Group called “Android Auto”
Addtional I edit my three favorite Items, and added them addtional the new group “Android Auto”
I can list now in the App, the new group, and my three favorite Items are shown.
There was an need to give them a new “label” e.g. change from “Betrieb” to “Gartentor_Betrieb”
In principle in works, but I would love to stay the OH things, items, etc as they are from naming point of view, and only select them which I want to use from the app.
BTW: I’m doing all with a active VPN tunnel. The tunnel gets started, when the Headunit connects via BT with the phone, then I start via the “Tasker App” a rule which activate my VPN tunnel. If the Headunit disconnects the Mobile, the VPN Tunnel will be stoped.
I have found now a new way, that the Semantic Model in not impacted.
So I created for each item which I need a new one under each channel and added this new item which the label which I want to have under the new group. I my case called Android_Auto.
I released a new version(1.6) with most of the requested features. On the phone main screen you can now move items up and down to create a custom item order that will be used on the car screen. I added number Item support(read only ATM). For string items it will get the available commands and display a list to call them. I added support to change dimmer values, due to no native dimmer item in Android Auto it is just a list of redefined values to see. If you have any issues let me know.
Very, very nice. Arrangements from the icon works, as well as I have added a item with information about temperature in the Garden at home for an example.
Very cool…
See here the screenshot from Headunit Emulation App.
As my used switches go off by timer after 1,5 sec, how does the app get the current status from the switches? Is there a push for status change in the App?
Thank you for your Work! I had no time to test it because I’m in vacation
Are there also the notifications from openhab integrated? I would love it to get it on the Screen, and it would amazing If the notification will ne shown until the Button etc. which ist configured in the rule hast been pressed
I use a cert for https that I created myself, and I get Connection failed: java.security.cert.CertPathValidationException: Trust anchor for certification path not found. error when I press the Test Connection button.
I am able to accept the risk with the official openHAB app, can you please add similar support to the app?
I must be missing something… I put my myopenhab credentials into the app. When I press “Test Connection” I get an error “Connection failed: HTTP 401”. I can access myopenhab successfully from a browser on my phone, so I don’t believe there’s a connectivity issue.