HassWP icon indicating copy to clipboard operation
HassWP copied to clipboard

Unable to login to Home Assistant Windows Portable

Open vanhelsing02 opened this issue 3 years ago • 4 comments

After installing hass thru Windows cmd script I am taken to the sign up page and get thru the process to Home Assistant. It discovers numerous devices and my network and seems to work as it should. I have installed an Insteon integration connected to one of their hubs successfully and setup numerous Insteon devices. My issue occurs after my connection becomes lost or I've logged out and closed my browser. When I signed in the 1st time and logged out and went to re login I bookmarked the page in my browser. The next day when I open my Browse and click n the bookmark for Home Assistant it hangs at initializing and eventually says it can't connect and it timed out but if I reload it says connection refused. If I reinstall it through the Windows cmd script I can go through the same entire process, duplicate the username and login without it suggesting that the user name and so on ever existed or an account was created. I must be doing something wrong and would like to know why this is recurring?

vanhelsing02 avatar Apr 20 '22 19:04 vanhelsing02

Just delete Hass folder and unpack zip archive again. If you can't remember you account

AlexxIT avatar Apr 21 '22 16:04 AlexxIT

I remember my account! It never opens to the login page.

vanhelsing02 avatar Apr 22 '22 23:04 vanhelsing02

It hangs at initializing and a login page is never produced. How do I get to the login page other than the one that I bookmarked when the account was created. What is the web address I should enter?

vanhelsing02 avatar Apr 22 '22 23:04 vanhelsing02

Might be related to javascript mimetypes https://github.com/home-assistant/core/commit/64bcd6097457b0c56528425a6a6ce00a2bce791c

You can try adding the following to hass_win/__main__.py

import mimetypes
mimetypes.add_type("text/css", ".css")
mimetypes.add_type("application/javascript", ".js")

dcoder42 avatar Apr 26 '22 11:04 dcoder42