house-of-abbey / GarminHomeAssistant

Garmin application to provide a dashboard to control your Home Assistant
https://community.home-assistant.io/t/home-assistant-app-for-garmin/637348
MIT License
71 stars 12 forks source link

Question: Internal http access not working #112

Closed janlang closed 6 months ago

janlang commented 6 months ago

Hi,

very nice implementation! I have a question how can I use an internal connection without https. I dont want to make the homeassistant instance accessible from the internet. The clock only needs the internal connection via http. At the moment that does not seem to work. This is true for the api as well as the Menu.json file. Cheers Jan

JosephAbbey commented 6 months ago

Hi @janlang,

Due to limitations of the ConnectIQ SDK, we cannot offer support for HTTP in the app.

Documentation

It is important to note that your Home Assistant instance will need to be accessible via HTTPS with public SSL or all requests from the Garmin will not work. This cannot be a self-signed certificate, it must be a public certificate. You can get one for free from Let's Encrypt or you can pay for Home Assistant cloud. (You can install a local Nginx proxy server to manage Let's Encrypt certificates.)

.. Joseph

philipabbey commented 6 months ago

You can do (almost) the same as we have done in our Trouble Shooting guide. Create a proxy that forwards HTTPS to Home Assistant HTTP. If you use Nginx as the web server you can then use Let's Encrypt for free certificates. Next you need to make sure that the hostname in the certificate can be resolved locally. E.g. adding ther hostname to your local DNS.

I am aware that another user has done something similar and got it working. See the end of this conversation trail.

janlang commented 6 months ago

Ah, I was not aware of the ConnectIQ SDK limitation. The trouble shooting thing I have seen. I hoped that there is an easier solution. Thanks for the answers!