I ran python -m pip install homeassistant, it ran through its little installation and I tried running hass --open-ui which gave me this error
C:\Users\mrvog>hass --open-ui
c:\users\mrvog\appdata\local\programs\python\python35\python.exe: can’t open file ‘C:\Users\mrvog\AppData\Local\Programs\Python\Python35\Scripts\hass’: [Errno 2] No such file or directory
So I tried python -m homeassistant --open-ui which gave me this error
Unable to find configuration. Creating default one in C:\Users\mrvog\AppData\Roaming.homeassistant
Traceback (most recent call last):
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant_main_.py”, line 388, in
sys.exit(main())
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant_main_.py”, line 380, in main
exit_code = setup_and_run_hass(config_dir, args)
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant_main_.py”, line 289, in setup_and_run_hass
config_file = ensure_config_file(config_dir)
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant_main_.py”, line 110, in ensure_config_file
config_path = config_util.ensure_config_exists(config_dir)
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\config.py”, line 135, in ensure_config_exists
config_path = create_default_config(config_dir, detect_location)
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\config.py”, line 166, in create_default_config
location_info.longitude)
File “C:\Users\mrvog\AppData\Local\Programs\Python\Python35\lib\site-packages\homeassistant\util\location.py”, line 78, in elevation
return int(float(req.json()[‘results’][0][‘elevation’]))
IndexError: list index out of range
yeah I am running command with admin rights. I noticed on the youtube windows install video there was like 3 other people with the same error. I created a configuration file based on the file daniel pointed me to, and at first it had errors regarding longitude and lat, so I put in my long and lat, it then didnt try to create a file, but it had a huge list of errors and still wouldnt launch the program
I started as you did. But the debugging is intensive, and if you run on linux I think (at least it was for me) you get better answers from the forum members
While I am not expert at it, would be nice if you could post the relevant portion. I am aware that it all gets flooded. Preferably put it in a text file and attach (if possible). No harm having a look, I guess.
Configure suggested by Daniel has things like !include, which you may not have.
I suggest you use one given here. Modify later after you succeed.
I am not running it continuously, but have been running it without issues on Windows 10 for over a month now.
My plan is to have a fairly complete config on PC where I am comfortable and then migrate the whole stuff onto RPi for continuous running with battery backed power supply.
I can confirm that the first command doesn’t work, at least in the environment I have. I am getting following error:
c:\users\comp\appdata\local\programs\python\python35\python.exe: can't open file 'C:\Users\comp\AppData\Local\Programs\Python\Python35\Scripts\hass': [Errno 2] No such file or directory