openhab / openhab-android

openHAB client for Android
https://play.google.com/store/apps/details?id=org.openhab.habdroid
Eclipse Public License 2.0
599 stars 315 forks source link

Openhab Android app compatability with AndroidAuto #3041

Open lb4207 opened 2 years ago

lb4207 commented 2 years ago

It appears the Openhab Android App is not Android Auto compatible as it doesn't appear in available apps in the Android Auto Launcher.

I have a garage door opener configured in Openhab and I can open my garage door from the app on my phone but now that I have a car with Android Auto I would like to be able open it from the console in the car or even program a steering wheel button to open the door.

mueller-ma commented 2 years ago

Seems like a valid feature request, but will probably not fulfilled soon. PRs are welcomed, but thoughts on the implementation should be shared in this issue before.

felixschndr commented 1 year ago

An alternative is to use Google Assistant. That's how I control my smart home devices while driving. Since my steering wheel has a button for calling Google Assistant this is pretty convenient

maniac103 commented 3 months ago

Since I recently got a car with AA capability, I had an initial look at what's needed to support it, and got discouraged pretty soon:

Given that, I'm not sure whether it's actually useful to pursue this? Personally I wanted to look into implementing this to get access to my garden gate and garage door opener, but how could one control such things without buttons?

felixschndr commented 3 months ago

Given that, I'm not sure whether it's actually useful to pursue this?

I agree. I mean a full fletched openhab sitemap in the car would be nice to have but is not necessary at all (imo). When I want to control something from not at home (which is not often) I usually just use Google assistant with voice commands or just use the app on the phone quickly. For something like a garage door opener it would be cool, but there might be different approaches to that as well (Homescreen shortcut, shortcut in quick settings, Google assistant voice commands, open/close depending on location/wifi of device).

Moreover, opening/closing is one of the (imo) very few use cases where AA integration would be useful. Maybe turning all lights off or something... what do the others think about this? Do you have an idea/usecase where an AA integration this limited could be worth implementing?

mueller-ma commented 3 months ago

AA introduction is here, it looks like we'd fit into the POI category well

What about the IoT category? Description of that is "Examples include controlling the state of certain devices, such as opening a garage door, flipping home light switches, or enabling home security.", so exactly what openHAB can be used for.

The available template parts are documented here - we'd probably want to use a list template

The grid template should work as well. Here's also a screenshot from a smart home app: https://developers.google.com/cars/design/create-apps/apps-for-drivers/templates/grid-template One could configure Sitemaps that only have switches without mapping (or a maximum of 2 mappings). That's a quite limited set of widgets, but should be enough for some basic tasks, like opening the garage door.

maniac103 commented 3 months ago

What about the IoT category?

Oops, that was a typo/thinko. I actually meant to say 'we'd fit into the IoT category well'.

Another thought for section switches and selections: present them as text only first (in normal list), and upon click, present a new list (or grid) showing the 'buttons' (switches with mappings) or selectable values (selection). Setpoint could probably also be handled similarly.