Simple Configuration Yaml used to work but then I moved to a new server

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

Please correct your post per the top of the page.

your group: config is incorrect. Try like this:

group:
  default_view:
    name: 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
1 Like

Good catch and thanks very much! I corrected and the configuration checker isn’t hanging anymore. I noticed had a typo as well: sensor.pws.pressure_mb -> sensor.pws_pressure_mb.

There’s still something wrong with the group: as my display just present Home with a blue bar.

group:
  default_view:
    name: 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

If you go to the left sidebar and click on the “<>” at the bottom, what does it show for those two groups (group.daily_forecast & group.weather_overview)?

Thanks for the reply. I have a spare ubuntu VM so I loaded HA on it and copied the configuration.yaml file to it and it works perfectly. I should have mentioned the other server was a windows 10 vm and it continues to have problems.

I compared the two <> for both as you directed and they’re identical. All the data is actively being captured by both but the windows vm just won’t render a presentation whereas the ubuntu vm renders perfectly.

So I dumped the windows 10 vm and I’ll stick with ubuntu.

I really do appreciate your help as it did sort out a problem with the group: section.

mike

I’m not sure why there would be a problem in a win 10 vm compared to an Ubuntu VM as far as group frontend displays go but I’m glad you got it working.

Maybe all that was required was a clearing of the browser cache (ctrl-F5 in chrome) to get the display to show properly. I’ve needed to do that before after some config changes to get things showing up correctly. Maybe you can pop back to your windows VM and try that just to see if that was the problem just as a future FYI.

For a sanity check I copied the working yamls from the Ubunu VM back to the Win10 VM and it’s still not rendering properly. Both HA environments are brand new installs.

I checked <> on the Win10 VM and the data is there just not rendering as noted. I also tried Chrome Firefox and Edge but nothing.

But the Ubuntu VM is working perfectly so I’m good.

Again thanks for the help!

mike

very strange…:thinking: