axzae / homeassist

HomeAssist
Apache License 2.0
135 stars 41 forks source link

Login in HomeAssist app Android #38

Open Deki60 opened 6 years ago

Deki60 commented 6 years ago

Dear all, Sorry but for me impossible to login in app...

Always the same message : password failed

and in home assistant server i view failed connexion frome mobile device.

idea ? need add someone in configuration ? thank you for helping

wizzor commented 6 years ago

Home Assistant has changed the authentication flow in v 0.77, which is the likely culprit.

This issue is probably a duplicate of #37.

The issue remains, only way I can offer to fix it, is to implement the OAuth flow yourself :(

Deki60 commented 6 years ago

thank you for your reply so, application is dead....

mchurichi commented 6 years ago

in the meantime you can set the the HTTP API password and use that to login in the app https://www.home-assistant.io/components/http/

Deki60 commented 6 years ago

Thank you work fine and your application is top!!! Thank you for your work hope you continu and update app again Best regards.


De : Maximiliano Churichi notifications@github.com Envoyé : mercredi 26 septembre 2018 18:10:23 À : axzae/homeassist Cc : Arkan; Author Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

in the meantime you can set the the HTTP API password and use that to login in the app https://www.home-assistant.io/components/http/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-424771844, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyYJDkU3KHcZPqXq4qMjQUiizLuDmks5ue6bvgaJpZM4WhBiX.

clach04 commented 6 years ago

@Deki60 I recommend you close this ticket down as it is a duplicate of #37 (where a fix has been posted).

payano commented 5 years ago

Hello, i applied the patch on my branch: https://github.com/payano/homeassist-ng

Deki60 commented 5 years ago

Dear thank you for information. Could you explain who it work please ? And how download for android !? Thank you. Best regards.


De : Johan Svensson notifications@github.com Envoyé : jeudi 20 décembre 2018 20:27:57 À : axzae/homeassist Cc : Arkan; Mention Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

Hello, i applied the patch on my branch: https://github.com/payano/homeassist-ng

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-449109761, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyXv453mVd-vDQr23mYJWSIG1kq-cks5u6-S9gaJpZM4WhBiX.

wizzor commented 5 years ago

Hi @Deki60, so far @payano has not made a dev build available, so you would need to compile the app yourself. This is not hard if you have some time, but I uploaded my build from today here: http://s000.tinyupload.com/index.php?file_id=19597725772560943776

This is his clone, built from the master branch. If you feel uneasy about installing a random stranger's build uploaded to a random file hosting service (and you should), you can install the android dev env and run the build yourself.

You'll need to have unknown sources enabled in your phone's developer settings before you can install it. To install, simply copy the file to your phone, and open it with a file manager.

If you already have an older version of homeassist installed, you may have to remove that first, for me the update did not work.

Deki60 commented 5 years ago

Hi Axzae thank you for your reply

I have try your build but impossible to connect in HA app say invalid password but password is good because work fine with you application :) No problem i wait an official build.


De : Visa Parviainen notifications@github.com Envoyé : vendredi 21 décembre 2018 21:45:21 À : axzae/homeassist Cc : Arkan; Mention Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

Hi @Deki60https://github.com/Deki60, so far @payanohttps://github.com/payano has not made a dev build available, so you would need to compile the app yourself. This is not hard if you have some time, but I uploaded my build from today here: http://s000.tinyupload.com/index.php?file_id=19597725772560943776

This is his clone, built from the master branch. If you feel uneasy about installing a random stranger's build uploaded to a random file hosting service (and you should), you can install the android dev env and run the build yourself.

You'll need to have unknown sources enabled in your phone's developer settings before you can install it. To install, simply copy the file to your phone, and open it with a file manager.

If you already have an older version of homeassist installed, you may have to remove that first, for me the update did not work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-449494091, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyX_LCKm--bdze5MHTF8oMX9XJrNIks5u7UhhgaJpZM4WhBiX.

payano commented 5 years ago

Hello @Deki60 and @wizzor , i have created a release apk file and have published it to google play now, i am waiting for a confirmation if the app has been published, i will let you know. I would recommend going to my repo to discuss this matter further, because the development will be done on that repo: https://github.com/payano/homeassist-ng

Cheers :)

payano commented 5 years ago

The app is now on google play: https://play.google.com/store/apps/details?id=com.payano.homeassistant

Deki60 commented 5 years ago

Dear Johan, thank you for this good new :) But i have allway problem for connection application say password is wrong but my legacy password is good i dont understand why app or HA refuse connexion. Best regards. Dejan


De : Johan Svensson notifications@github.com Envoyé : samedi 22 décembre 2018 14:21:48 À : axzae/homeassist Cc : Arkan; Mention Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

The app is now on google play: https://play.google.com/store/apps/details?id=com.payano.homeassistant

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-449569818, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyWTlRq7rmEdffQ99Rtaer5AdveKJks5u7jHsgaJpZM4WhBiX.

payano commented 5 years ago

Hello @Deki60, i would like to further investigate why you are not able to log in. Could you sent me your configuration file with sensitive information washed out, so i can try to reproduce it on my development environment.

Cheers.

Deki60 commented 5 years ago

Hi here my configuration.yaml :

homeassistant:

Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: 49.354622 longitude: 2.405152

Impacts weather/sunrise data (altitude above sea level in meters)

elevation: 0

metric for Metric, imperial for Imperial

unit_system: metric

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: UTC

Customization file

customize: !include customize.yaml

Show links to resources in log and frontend

Enables the frontend

frontend: themes: !include devices/themes.yaml

Enables configuration UI

config: http: api_password: superdeki

base_url: https://dekiqnap.pw:8123

ssl_certificate: /share/CACHEDEV1_DATA/.qpkg/Home-Assistant/CONFIG_DIR/devices/certificate.pem

ssl_key: /share/CACHEDEV1_DATA/.qpkg/Home-Assistant/CONFIG_DIR/devices/privkey.pem

Uncomment this if you are using SSL/TLS, running in Docker container, etc.

http:

base_url: example.duckdns.org:8123

Checks for available updates

Note: This component will send some information about your system to

the developers to assist with development of Home Assistant.

For more information, please see:

https://home-assistant.io/blog/2016/10/25/explaining-the-updater/

updater:

Optional, allows Home Assistant developers to focus on popular components.

include_used_components: true

Discover some devices automatically

discovery:

Allows you to issue voice commands from the frontend in enabled browsers

conversation:

Enables support for tracking state changes over time

history:

View all events in a logbook

logbook:

Enables a map showing the location of tracked devices

map:

Track the sun

sun:

Weather prediction

sensor:

Text to speech

tts:

remote:

vacuum:

xiaomi_aqara: discovery_retry: 5 gateways:

Input boolean to mute gateway sound

input_boolean: mute_gateway_sounds: name: Mute icon: mdi:volume-off

Scripts to play gateway sounds

script: play_sel_sound: alias: "Loop Play Sound" sequence:

Input slider to control loop delay

loop_delay: name: "Loop Delay" initial: 1 min: 0 max: 15 step: 1 icon: mdi:loop

Input select to select sound to play

input_select: gateway_sound: name: Ringtone options:

weather :

sensor:

ifttt : key:

light:

group: !include groups.yaml automation: !include devices/automations.yaml script: !include scripts.yaml switch: !include devices/switches.yaml sensor: !include devices/sensor.yaml input_number: !include input_number.yaml


De : Johan Svensson notifications@github.com Envoyé : samedi 22 décembre 2018 23:28 À : axzae/homeassist Cc : Arkan; Mention Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

Hello @Deki60https://github.com/Deki60, i would like to further investigate why you are not able to log in. Could you sent me your configuration file with sensitive information washed out, so i can try to reproduce it on my development environment.

Cheers.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-449601376, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyb0mNExQ70Y3o_UgPNuVTRvVqCe7ks5u7rH8gaJpZM4WhBiX.

payano commented 5 years ago

I needed to have the trusted network enabled to make it to work. It is indeed a bug, i will create a new issue on my repository and start working on it. New issue: #6 on HomeAssist-ng This is my configuration which i made it to work:

homeassistant: name: Home latitude: 0 longitude: 0 elevation: 0 unit_system: metric time_zone: UTC customize: !include customize.yaml

auth_providers:

http: api_password: password123 trusted_networks:

websocket_api: introduction: frontend: config: updater: discovery: conversation: history: logbook: map: sun: sensor:

tts:

cloud: group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml

Deki60 commented 5 years ago

Thank you :) is a good new and you make good work !!!!

Question : possible you add a solution to work with google home maybe ? Best regards. Dejan


De : Johan Svensson notifications@github.com Envoyé : dimanche 23 décembre 2018 19:42:12 À : axzae/homeassist Cc : Arkan; Mention Objet : Re: [axzae/homeassist] Login in HomeAssist app Android (#38)

I needed to have the trusted network enabled to make it to work. It is indeed a bug, i will create a new issue on my repository and start working on it. New issue: payano/homeassist-ng#6https://github.com/payano/homeassist-ng/issues/6 This is my configuration which i made it to work:

homeassistant:

Name of the location where Home Assistant is running

name: Home

Location required to calculate the time the sun rises and sets

latitude: 0 longitude: 0

Impacts weather/sunrise data (altitude above sea level in meters)

elevation: 0

metric for Metric, imperial for Imperial

unit_system: metric

Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

time_zone: UTC

Customization file

customize: !include customize.yaml

auth_providers:

**http: api_password: password123 trusted_networks:

websocke api

websocket_api:**

Show links to resources in log and frontend

introduction:

Enables the frontend

frontend:

Enables configuration UI

config: updater:

Optional, allows Home Assistant developers to focus on popular components. include_used_components: true Discover some devices automatically

discovery:

Allows you to issue voice commands from the frontend in enabled browsers

conversation:

Enables support for tracking state changes over time

history:

View all events in a logbook

logbook:

Enables a map showing the location of tracked devices

map:

Track the sun

sun:

Sensors

sensor:

Weather prediction

Text to speech

tts:

Cloud

cloud:

group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/axzae/homeassist/issues/38#issuecomment-449656085, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AF3pyeAJDa-UtnJoi-jxbn3EJqByzxDzks5u786EgaJpZM4WhBiX.

payano commented 5 years ago

The thing is that HomeAssist is currently using legacy_auth which is going to be obsolete in the near future. I will implement the websocket as the default authentication method instead.

Please, lets go to my repository instead, create a new issue with google home and what the issue is regarding that.

Best regards, Johan

alvesjc commented 5 years ago

Hi.

Made it work adding:

This way you can connect from anywhere.

Thanks for the app!

pedrommvv commented 5 years ago

Hi.

Made it work adding:

  • 0.0.0.0/0 to trusted_networks

This way you can connect from anywhere.

Thanks for the app!

I'm wondering if that's safe?

alvesjc commented 5 years ago

Hi. Made it work adding:

  • 0.0.0.0/0 to trusted_networks

This way you can connect from anywhere. Thanks for the app!

I'm wondering if that's safe?

For me it's ok, I don't allow access through Internet, only local LAN.

cheers