AlexxIT / HassWP

Portable version of Home Assistant for Windows (no need to install)
https://github.com/AlexxIT/Blog
586 stars 76 forks source link

Unable to login to Home Assistant Windows Portable #44

Open vanhelsing02 opened 2 years ago

vanhelsing02 commented 2 years ago

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?

AlexxIT commented 2 years ago

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

vanhelsing02 commented 2 years ago

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

vanhelsing02 commented 2 years ago

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?

dcoder42 commented 2 years ago

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")