Hi All,
I’m facing some weird issues and I really don’t know why and how I can fix it.
Currently I’m running a openHAB solution and wanted to test out the Home Assistant because it really looks nice!
So I took a rpi3 and downloaded the image and flashed the sd card with Etcher. No problem.
After 20 minutes (10 minutes maybe) I was up and running.
The autodiscovery finds some of all my components and everything seems to be fine.
So I headed on and changed some few things in the configuration.yaml file trough notepad++.
I outcommented the autodiscovery and added a few things: ihc controller, a few lights and my TV.
I did also change the time_zone and location and that is about it.
Suddenly under the Log Details I start seeing errors.
Log Details (ERROR)
Wed Aug 29 2018 09:32:43 GMT+0200 (Centraleuropæisk sommertid)
Testing configuration at /config
ERROR:homeassistant.scripts.check_config:BURB
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 207, in check
res['components'] = check_ha_config_file(hass)
File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 328, in check_ha_config_file
del core_config[CONF_PACKAGES]
KeyError: 'packages'
Fatal error while loading config: 'packages'
Failed config
General Errors:
- 'packages'
Successful config (partial)
… and I can’t no longer verify my configuration file - it just spins forever.
I also tried to click on the Serveradministrator and Restart the Home Assistant, but nothing happens. The changes I did in the configuration file doesn’t seem to change and I just get the same “Testing configuration” error.
I have already reinstalled 5 times now, since I thought it could have been the flashing or installation that missed something or I edited the conf file too fast… but no luck!
Here is my full configuration file:
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: XX.XXXXX
longitude: X.XXXXXX
# 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: Europe/Copenhagen
# Customization file
customize: !include customize.yaml
# Whitelist
whitelist_external_dirs:
- /usr/var/dumping-ground
- /tmp
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# 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
# IHC Controller
ihc:
url: http://XXX.XXX.XXX.XXX
username: XXXXX
password: XXXXXXXXX
auto_setup: False
info: True
# WiFi LED
light:
- platform: flux_led
devices:
XXX.XXX.XXX.XXX:
name: Garden_Back_Terrace
XXX.XXX.XXXX.XXX:
name: Garden_Back_Playhouse
- platform: ihc
lights:
- id: 1135197
name: Driveway_Spot
dimmable: False
- id: 711005
name: Front_Spot
dimmable: False
# UBNT NVR
camera:
- platform: uvc
nvr: XXX.XXX.XXX.XXX
key: XXXXXXXXXXXXXXXXXXXXXXXXXX
password: XXXXXXXXXXXXXXX
# Samsung TV
media_player:
- platform: samsungtv
host: XXX.XXX.XXX.XXX
timeout: 1000
mac: XX:XX:XX:XX:XX
# Xiaomi Gateway
xiaomi_aqara:
discovery_retry: 10
gateways:
- key: XXXXXXXXXXXXXXXXX
Heeeeeelp!