Re weatherundground Oliver

what do you mean

Looks like you have it right. Not sure what’s preventing wundergroundpws from being found.

I get this error Logger: homeassistant.bootstrap
Source: util/yaml/loader.py:61
First occurred: 18:33:16 (1 occurrences)
Last logged: 18:33:16

Error setting up integration sensor - received exception
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/setup.py”, line 64, in async_setup_component
return await task # type: ignore
File “/usr/src/homeassistant/homeassistant/setup.py”, line 174, in _async_setup_component
processed_config = await conf_util.async_process_component_config(
File “/usr/src/homeassistant/homeassistant/config.py”, line 826, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 475, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 480, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File “/usr/local/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/wundergroundpws/sensor.py”, line 45, in
load_config = config.load_yaml_config_file(conf_file)
File “/usr/src/homeassistant/homeassistant/config.py”, line 329, in load_yaml_config_file
conf_dict = load_yaml(config_path)
File “/usr/src/homeassistant/homeassistant/util/yaml/loader.py”, line 61, in load_yaml
with open(fname, encoding=“utf-8”) as conf_file:
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.homeassistant/configuration.yaml’

do you have
sensor: on the top of that list to make ha pick it up

what did you mean by Put wundergroundpws in the config/custom_components directory.

also I don’t know what this is Logger: homeassistant.bootstrap
Source: util/yaml/loader.py:61
First occurred: 19:41:24 (1 occurrences)
Last logged: 19:41:24

Error setting up integration sensor - received exception
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 835, in async_forward_entry_setup
result = await async_setup_component(self.hass, domain, self._hass_config)
File “/usr/src/homeassistant/homeassistant/setup.py”, line 57, in async_setup_component
return await setup_tasks[domain] # type: ignore
File “/usr/src/homeassistant/homeassistant/setup.py”, line 64, in async_setup_component
return await task # type: ignore
File “/usr/src/homeassistant/homeassistant/setup.py”, line 174, in _async_setup_component
processed_config = await conf_util.async_process_component_config(
File “/usr/src/homeassistant/homeassistant/config.py”, line 826, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 475, in get_platform
cache[full_name] = self._import_platform(platform_name)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 480, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File “/usr/local/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 783, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/wundergroundpws/sensor.py”, line 45, in
load_config = config.load_yaml_config_file(conf_file)
File “/usr/src/homeassistant/homeassistant/config.py”, line 329, in load_yaml_config_file
conf_dict = load_yaml(config_path)
File “/usr/src/homeassistant/homeassistant/util/yaml/loader.py”, line 61, in load_yaml
with open(fname, encoding=“utf-8”) as conf_file:
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.homeassistant/configuration.yaml’

I have sensor: !include sensors.yaml at the bottom of my configuration.yaml file. I then have a sensors.yaml file that includes this:

- platform: wundergroundpws
  api_key: !secret wu_key
  pws_id: !secret wu_pws
  latitude: 32.296755
  longitude: -106.602996
  monitored_conditions:
    - humidity
    - temp
    - precipRate
    - precipTotal
    - pressure
    - windGust
    - windSpeed
    - weather_1d
    - weather_1n
    - weather_2d
    - weather_2n
    - weather_3d
    - weather_3n
    - weather_4d
    - weather_4n
    - weather_5d
    - weather_5n
    - precip_chance_1d
    - today_summary

I run a standard Home Assistant installation.

so I don’t need to have sensors at the top

were do I put sensors.yaml

any one know of this error Error doing job: Task exception was never retrieved

20:23:41 – util/yaml/loader.py (ERROR) - message first occurred at 20:23:41 and shows up 3 times

Error setting up integration sensor - received exception

20:23:41 – util/yaml/loader.py (ERROR)

I think it working

thanks for your help today guys

I had to change a line in load_config = config.load_yaml_config_file(’/config/configuration.yaml’) in the sensor.py on rpi3

can you change the update time of 5mins

thanks Oliver