home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.3k stars 636 forks source link

Home Assistant Android with Wear OS app with basic features (lights and switches) #1706

Closed hkusulja closed 3 years ago

hkusulja commented 3 years ago

**Is your feature request related to a problem? Issue when trying to turn on/off light or switch, from wear os smartwatch.

Describe the solution you'd like

Existing Home Assistant Android application, should support to be installed also from Google Play store but for Wear OS (watches), and should be easy to have Tiles on a watch, for turning on/off lights, switches etc.

Describe alternatives you've considered, if any

I did not find any good alternatives at all.

Additional context

Since now Wear OS by Google 3.0 has been released for new smartwatches (like Samsung Galaxy Watch 4) , new features are requested for existing Google Play Store applications, and that is to support the app to be installed on a watch.

imonlinux commented 3 years ago

I would like to see this enhancement as well. I have a cumbersome work around where I installed Domoticz (which has a wearos app) as a vm on Hassio and then added the switches that I want to control on wearos to Domoticz via MQTT.

dshokouhi commented 3 years ago

Work has started on the standalone wear OS app but its going to take some time before its ready. Right now there is no functionality and there are some PRs open to add authentication to HA.

hkusulja commented 3 years ago

Thank you for confirmation. I do not understand or see reason why this would be a seperate Android app, instead one with all features and central GIT Repo like this one. If there is some work, or PR's, can you reference them by link? Thank you

dshokouhi commented 3 years ago

Thank you for confirmation. I do not understand or see reason why this would be a seperate Android app, instead one with all features and central GIT Repo like this one. If there is some work, or PR's, can you reference them by link? Thank you

You are free to explore GitHub to look at the work done, it's all in this repo. The decision was made for a stand alone app so the wear app can work even when the phone is not nearby but watch is connected to internet. The watch app will not have a dependency on the phone app meaning you will be able to do everything from the watch directly.

hkusulja commented 3 years ago

@dshokouhi ok, however still does not require it is separate app. Most watches use Bluetooth to Phone to access internet. Also if watch has direct internet, and is fully standalone, meaning it has to have lot of configurations (URL's, authentication etc.). Anyway, with direct internet or not, still not clear, why is this not part of the same app, since (as I understand) is just manifest that specifies different behavior for watch, also maybe some things can be shared. Example is Microsoft Outlook for Android (which is not best example but still - one app on store, for both phone and watch use, direct or indirect internet). I found PR - https://github.com/home-assistant/android/pull/1691

dshokouhi commented 3 years ago

Did you miss the wear folder on GitHub? It's part of the same code base.

hkusulja commented 3 years ago

No, I have found, just thinking, should it be, one manifest for one app supporting both device types (like Spotify and others does https://play.google.com/store/apps/details?id=com.spotify.music)

https://github.com/home-assistant/android/blob/master/app/src/main/AndroidManifest.xml https://github.com/home-assistant/android/blob/master/wear/src/main/AndroidManifest.xml

dshokouhi commented 3 years ago

@hkusulja we have already made our decision and moved forward. You are more than welcome to look at the merged PRs to look at that discussion and the decision that was already made.

hkusulja commented 3 years ago

ok, seem that I am too late, and all discussion and decision were made. Any ETA for publishing this another app for wear os on google play store?

dshokouhi commented 3 years ago

there is no ETA, it will be ready when its ready. There is no functionality now. Also keep in mind it will still be able to share data wiht the phone and it shares a code base with the app. Standalone is just terminology from google saying this app can work on its own without the requirement of a phone app. That means a user can install the app and do everything they need to do without needing the phone, the phone can still be used to make things easier like sharing URLs but the wear OS device needs its own authentication and should also be treated like its own device in HA. I am pretty sure you will get everything out of the app you expect once its ready. Our goal is that if your watch is online and your phone is not around and you need to make any change to watch settings you can do it, dont need your phone to make that change.

More on standalone wear apps here: https://developer.android.com/training/wearables/overlays/independent-vs-dependent#identify

hkusulja commented 3 years ago

Yeah, i read the docs on given link. Thank you. Leaving this github issue for feature request on light and switch on/off setting through wear os - Tiles.. i understand it is early. Thank you all for contribution.

hkusulja commented 3 years ago

@JBassett i see you closed this github issue, can you please confirm that Home Assistant - Android WareOS is available on Google Play store, so my users can install it and test it ? Thank you

JBassett commented 3 years ago

It is currently released as part of the beta program or you can manually install it via the APK. It's still early days so there are known issues and limitations.

hkusulja commented 3 years ago

my android phone is stuck in "joining beta" for existing home assitant app, hope this will be resolved. So please confirm, this will be this app, and not a new / separate app? https://play.google.com/store/apps/details?id=io.homeassistant.companion.android

JBassett commented 3 years ago

Yes it is published with the existing application.

hkusulja commented 3 years ago

Thank you, since related communication stated that it was decided that it will be standalone app, separate from current one. Anyhow, now I am part of new Beta program on Google Play store, for this one/only app. And successfully installed on my Galaxy Watch 4 / Wear OS 3 and connected.

However, @JBassett , I think this GitHub issue should be still opened since:

dshokouhi commented 3 years ago

We shouldn't combine multiple requests into one. Lights have been added in the latest beta that is not on the play store yet. Every Saturday night the latest beta will be pushed to the play store like the phone app. I believe there is some work bring done on tiles but that is separate from just asking for light control.

hkusulja commented 3 years ago

Ok, tx for clarification why i do not see Lights yet in beta on Google Play store.. Also, original request is for Tiles also, we can have this in separate github issue for wear os tiles, but i do not see it, therefore i thought better to reopen existing request.

JBassett commented 3 years ago

The beta on the play store is only updated weekly due to the play store review policy. Issues are closed when they have an associated Pull Request merged and they are available for sideloading.

hkusulja commented 3 years ago

Ok, clear, but again, this issue is not resolved:

Chaphasilor commented 2 years ago

Ok, clear, but again, this issue is not resolved:

Making lots of small issues for each feature, like you did now, is generally better for prioritizing and managing the workload :)
So closing this issue (as the foundation for Wear OS support and "basic" features), while opening new ones for specific features, actually makes a lot of sense!

hkusulja commented 2 years ago

@Chaphasilor depends on how dev team prefers, ok, will do for the future.