Unable to connect to Home Assistant

I reinstalled my hassbian, but he can’t run
Unable to connect to Home Assistant!

1 Like

well, what does the log file say?


I can only see this log in my IOS app.

That’s not a log…

look at the LOG file, located in the same directory as your config…

2018-10-01 12:17:15 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don’t require it, remove the ‘api_password’ from your http config.
2018-10-01 12:17:18 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=8 from 2018-10-01 12:17:16.535704)
2018-10-01 12:17:19 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /home/homeassistant/.homeassistant/known_devices.yaml: Config file not found: /home/homeassistant/.homeassistant/known_devices.yaml
2018-10-01 12:17:20 ERROR (Thread-13) [homeassistant.components.notify.ios] The notify.ios platform was loaded but no devices exist! Please check the documentation at https://home-assistant.io/ecosystem/ios/notifications/ for more information
2018-10-01 12:29:17 ERROR (MainThread) [frontend.js.latest.201809270] http://192.168.0.99:8123/frontend_latest/8e4aa70eeb3c943eb4cd.chunk.js:352:24065 TypeError: undefined is not an object (evaluating ‘user.credentials’)
2018-10-01 12:30:28 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.0.246

Delete your browser’s cache and try to login again.

i have try too many times,but it don’t work
http://192.168.0.99:8123/ only can work in IOS APP and IOS safari

try from incognito mode

how can i try it?

huh?

incognito mode on Google Chrome…

i have try it,but it don’t work

you will need to remove the banned_ips file from your config directory before you can connect, if there is a ban on your IP

this is my configuration.yaml
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: 0
longitude: 0
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: UTC
# Customization file
customize: !include customize.yaml
# auth_providers:
# - type: legacy_api_password
http:
api_password: xxxxxxxxx

See the blue box at the top of the forums?

Please use the code blocks for your code.

homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 0
  longitude: 0
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 0
  # metric for Metric, imperial for Imperial
  unit_system: metric
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: UTC
  # Customization file
  customize: !include customize.yaml
#  auth_providers:
#   - type: legacy_api_password
http:
  api_password: xgsrthxfhx
# Show links to resources in log and frontend
introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
#   base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Enables a map showing the location of tracked devices
map:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

# Cloud
cloud:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

get rid of the api_password. It looks like you don’t have anything configured at all.

This is a brand new Hassbian system
I deleted the api, but it still didn’t work.

This error message says ios is enabled in your config, but you don’t have ios in your config?

Are you sure it’s loading from this config file?

I don’t know why it is, but I am sure it is like this.