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

HTTPS issues with local-only home assistant #12

Closed
hermannsblum opened this issue Nov 3, 2018 · 9 comments
Closed

HTTPS issues with local-only home assistant #12

hermannsblum opened this issue Nov 3, 2018 · 9 comments

Comments

@hermannsblum
Copy link

Is HTTPS supported for the connection? I get 404 even tough password and url are working in the browser.

@alanfischer
Copy link
Owner

HTTPS is supported. If you want you could email me directly your url and I could try to reproduce the 404 error.

@hermannsblum
Copy link
Author

Hi! Thanks for the offer, but my hass is configured to only connect via local wifi
Is there any debug interface I where I could find out what‘s the connection problem?

@alanfischer
Copy link
Owner

Are you running this from an actual Garmin device, or just in the simulator? If its on a device, is your phone connected to your local wifi?

@hermannsblum
Copy link
Author

hermannsblum commented Nov 7, 2018

running on the vivoactive 3 when the phone is in the local wifi

@alanfischer
Copy link
Owner

Are you connecting by ip? What url do you have in the host field? You could also try by disabling cell data on your phone as an experiment and see if that makes it work, forcing it to use the lan connection. I admit I have not experimented much with a local only Hass instance.

@hermannsblum
Copy link
Author

Just to let you know that I have not forgotten this: I will try to debug the network requests coming into my hassio to see what is the request incoming and response outgoing and where this issue is rooted.

@Voz-DeCarabas
Copy link

Voz-DeCarabas commented Feb 2, 2019

Love the idea of this. I’m using a forerunner 235
Can you confirm the account that the password should be for? I’m getting 401 errors and then the following in the log on Home Assistant
Login attempt or request with invalid authentication from 192.168.1.95 8:24 PM components/http/ban.py (WARNING) You need to use a bearer token to access /api/states/group.all_switches from 192.168.1.95 8:24 PM components/http/auth.py (WARNING)

UPDATE: I realised that the issue was I hadn't explicitely defined a password for the API in my configuration.yaml. I set that as a parameter for http: and it all works! I can now switch on and off my Sonoff devices from my watch! I don't feel I have used enough exclamation marks !!!

@alanfischer
Copy link
Owner

The latest version of HassIQ has been uploaded to the connect iq store, and now supports the updated Home Assistant authorization method.

@hermannsblum
Copy link
Author

Just as a documentation in case anybody get's the same problems:
You cannot connect with the garmin watch to a server that uses a self-signed certificate. Therefore, you cannot connect to local instances like https://hassio.local/.

Using a reverse proxy like the hass.io nginx addon you can enable both https and http connections and then connect from the watch using http.

Works like a charm now, Thanks for this app :)

@hermannsblum hermannsblum changed the title Connection Issues HTTPS issues with local-only home assistant Mar 9, 2019
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

3 participants