Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] implement new OAuth user login from 0.73 #37

Open
KroniK907 opened this issue Aug 24, 2018 · 10 comments
Open

[feature request] implement new OAuth user login from 0.73 #37

KroniK907 opened this issue Aug 24, 2018 · 10 comments

Comments

@KroniK907
Copy link

As of home assistant 0.73 there is now a user management system with OAuth authentication. If this is enabled the app can no longer connect to the home assistant server.

I would love to use this app with a user system implemented as I use hassio for my small company's building and I like having user control wherever possible.

@klopotnik
Copy link

need this as well please

@rafal-krypa
Copy link

rafal-krypa commented Sep 4, 2018

Now with Home Assistant 0.77 enabling new authentication by default, this app stopped connecting altogether.
Please support connections to the newest hass version!

@barrymossel
Copy link

barrymossel commented Sep 10, 2018

Why isn't this feature implemented?

@wizzor
Copy link

wizzor commented Sep 10, 2018

Although I am not the maintainer of this project, I may be able to weigh in on the issue.

I assume your question is about why this project and the core Home Assistant are not developed in the same cadence, Home Assistant released a new authentication flow and this project has not been updated at the same time, even though the upcoming changes to the auth system were known in advance.

The reason is, that there is really no maintainer for this project at all. Last commits were made when it was open sourced by the author. In his message he indicated he did not have the time required to keep up development and hoped the community would take over.

If you have the knowledge and time, please do help.

@klaasnicolaas
Copy link

Possibly if the author of the code can give some guidance on how to import the github code to android studio and get started, it might be a little more impetus for others.

I would really like to continue with the development

@wizzor
Copy link

wizzor commented Oct 4, 2018

Hi @klaasnicolaas, glad you'd like to help! I tried getting the app to run on my machine, here are my notes which should be helpful.

I tried getting the project to run:

  • Clone repository to some directory
  • Install Android studio (I installed via Ubuntu Software Center)
  • Upon startup, select "Open existing Android studio project" and select the folder
  • Wait for the first prompt, I was asked to upgrade Gradle, which I updated
  • Next prompt asked to install Build Tools v 28, by clicking the link offered, which I did,
  • Accept the license agreement for Android Build Tools
  • Wait for Gradle to install all of the dependencies (takes a while depending on your network speed)
  • Next set of errors informs that we need to change the version of Build Tools again, do so by clicking the link
  • Next error informs about incompatible Kotlin version and Gradle version. Change Kotlin version Homeassist project build.gradle file on line 4 to 1.2.51 and then gradle version to 1.25.4 in App build.gradle file
  • Select run -> Run App from top menu
  • Select create new virtual device in the appearing prompt
  • Select Oreo Api level 25 -> Download
  • Click next once the download finishes
  • Next screen shows an error about no access to /dev/kvm. In my case this is due to missing qemu package, in terminal:
sudo apt install qemu-kvm
sudo adduser $USER kvm
  • I needed to reboot my machine to get the vitrual
  • Click finish to complete virtual device creation
  • Try running the project again
  • Next prompt requires installation of Platform SDK version 25, install it
  • Running next time introduced an error:
    Emulator: libGL error: unable to load driver: i965_dri.so
  • Changing graphics to 'software' in AVD Manager from automatic fixed this issue, emulator now starts
  • Try running the app again, app now starts, I don't have a HA-installation available where I'm now, so can't do end-to-end test, but at least app launches as normal.

@klaasnicolaas
Copy link

Will see what I can do. Do not have much experience yet but it would be a shame if this app ever disappears or is out of date.

@klaasnicolaas
Copy link

@wizzor see #40

Anonym-tsk added a commit to Anonym-tsk/homeassist that referenced this issue Oct 5, 2018
@clach04
Copy link

clach04 commented Oct 11, 2018

I was about to post that the http API mechanism can be enabled (for the time being) as a workaround but someone already posted that to #38 (comment) :-)

@Frits1980
Copy link

What is the current status of this? Last update in the play store is 12 feb 2019. But no login possible yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants