Hi, I hope someone can advise what is causing errors in my simple weather configuration.yaml. When I check the configuration in the UI, the yaml file seems to crash python and lists a long stream of python errors.
The Yaml followed by the errors are presented below.
Thanks in advance and let me know if more information is required!
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: 51.1387
longitude: -114.2015
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 1239
# metric for Metric, imperial for Imperial
unit_system: metric
# Timezone
time_zone: America/Edmonton
# 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:
# the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# 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:
panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: http://192.168.0.124:3218
# Example Weather Underground configuration.yaml entry
sensor:
- platform: wunderground
api_key: <....>
pws_id: ICALGARY99
monitored_conditions:
- observation_time
- temp_c
- feelslike_c
- relative_humidity
- temp_high_1d_c
- temp_low_1d_c
- precip_1d
- wind_kph
- pressure_mb
- weather_1d_metric
- weather_1n_metric
- weather_2d_metric
- weather_3d_metric
- weather_4d_metric
group:
default_view: "Home"
view: yes
entities:
- group.daily_forecast
- group.weather_overview
daily_forecast:
name: Today
view: no
entities:
- sensor.pws_observation_time
- sensor.pws_temp_c
- sensor.pws_feelslike_c
- sensor.pws_relative_humidity
- sensor.pws_temp_high_1d_c
- sensor.pws_temp_low_1d_c
- sensor.pws_precip_1d
- sensor.pws_wind_kph
- sensor.pws.pressure_mb
weather_overview:
name: Forecast
view: no
entities:
- sensor.pws_weather_1d_metric
- sensor.pws_weather_1n_metric
- sensor.pws_weather_2d_metric
- sensor.pws_weather_3d_metric
- sensor.pws_weather_4d_metric`Preformatted text`
= = = = Errors = = = =
2018-09-22 14:14:29 INFO (MainThread) [homeassistant.components.http.view] Serving / to 192.168.0.149 (auth: False)
2018-09-22 14:14:30 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.0.149 (auth: False)
2018-09-22 14:14:37 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/customize/config/sensor.pws_feelslike_c to 192.168.0.149 (auth: True)
2018-09-22 14:14:43 INFO (MainThread) [homeassistant.components.http.view] Serving /api/config/core/check_config to 192.168.0.149 (auth: True)
2018-09-22 14:14:43 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\web_protocol.py", line 390, in start
resp = await self._request_handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\web_app.py", line 366, in _handle
resp = await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\aiohttp\web_middlewares.py", line 106, in impl
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\static.py", line 66, in staticresource_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\real_ip.py", line 34, in real_ip_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\ban.py", line 67, in ban_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\auth.py", line 68, in auth_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\real_ip.py", line 34, in real_ip_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\ban.py", line 67, in ban_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\auth.py", line 68, in auth_middleware
return await handler(request)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\http\view.py", line 113, in handle
result = await result
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\components\config\core.py", line 24, in post
errors = yield from async_check_ha_config_file(request.app['hass'])
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\config.py", line 793, in async_check_ha_config_file
check_ha_config_file, hass)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\scripts\check_config.py", line 347, in check_ha_config_file
config = component.CONFIG_SCHEMA(config)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 381, in validate_mapping
cval = cvalue(key_path, value)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 811, in validate_callable
return schema(data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 381, in validate_mapping
cval = cvalue(key_path, value)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\validators.py", line 204, in _run
return self._exec(self._compiled, value, path)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\validators.py", line 284, in _exec
v = func(path, v)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 811, in validate_callable
return schema(data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 381, in validate_mapping
cval = cvalue(key_path, value)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\validators.py", line 204, in _run
return self._exec(self._compiled, value, path)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\validators.py", line 249, in _exec
return func(path, v)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\voluptuous\schema_builder.py", line 811, in validate_callable
return schema(data)
File "C:\Users\mikem\AppData\Local\Programs\Python\Python37\lib\site-packages\homeassistant\helpers\config_validation.py", line 162, in entity_ids
return [entity_id(ent_id) for ent_id in value]
TypeError: 'bool' object is not iterable