erikkastelec / hass-WEM-Portal

Custom component for retrieving sensor information from Weishaupt WEM Portal
MIT License
44 stars 10 forks source link

What to do with this? #30

Closed PioSkot closed 2 years ago

PioSkot commented 2 years ago

It worked and suddenly it stopped. Logs:

Logger: homeassistant.setup Source: custom_components/wemportal/init.py:44 Integration: wemportal (documentation, issues) First occurred: 13:44:59 (1 occurrences) Last logged: 13:44:59

Error during setup of component wemportal Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component result = await task File "/config/custom_components/wemportal/init.py", line 44, in async_setup if config[DOMAIN].get(CONF_MODE) == "web": KeyError: 'wemportal'

erikkastelec commented 2 years ago
  1. Did you try to restart your Home Assistant instance?
  2. Can you provide configuration for wemportal component
  3. Did you make any changes/updates?
  4. Is wemportal component updated to the latest version?
PioSkot commented 2 years ago
  1. Of course. Several times.
  2. Here you go:
    • platform: wemportal language: en mode: api username: @.*** password: xxxxxxx
  3. No.
  4. Yes, it stopped working after the update.

Thank you for your interest.. ;) P.

śr., 4 maj 2022 o 18:48 Erik Kastelec @.***> napisał(a):

  1. Did you try to restart your Home Assistant instance?
  2. Can you provide configuration for wemportal component
  3. Did you make any changes/updates?
  4. Is wemportal component updated to the latest version?

— Reply to this email directly, view it on GitHub https://github.com/erikkastelec/hass-WEM-Portal/issues/30#issuecomment-1117577198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQ2GNEYT6KWVMCETDIJHN3VIKS5FANCNFSM5VBXRPSA . You are receiving this because you authored the thread.Message ID: @.***>

erikkastelec commented 2 years ago
  1. Is the problem. Configuration has changed in the last release. Configuration is not under sensor anymore. You should move the configuration in separate line (not under sensor) and remove -platform: You need to change your config to:
    wemportal:
    language: en
    mode: api
    username: your_username
    password: your_password
PioSkot commented 2 years ago

It changed a lot ..;) Now the log is longer.

Logger: homeassistant.setup Source: helpers/update_coordinator.py:164 First occurred: 19:30:45 (1 occurrences) Last logged: 19:30:45

Error during setup of component wemportal Traceback (most recent call last): File "/config/custom_components/wemportal/coordinator.py", line 29, in _async_update_data return await self.hass.async_add_executor_job(self.api.fetch_data) asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh self.data = await self._async_update_data() File "/config/custom_components/wemportal/coordinator.py", line 29, in _async_update_data return await self.hass.async_add_executor_job(self.api.fetch_data) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 129, in aexit self._do_exit(exc_type) File "/usr/local/lib/python3.9/site-packages/async_timeout/init.py", line 212, in _do_exit raise asyncio.TimeoutError asyncio.exceptions.TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component result = await task File "/config/custom_components/wemportal/init.py", line 65, in async_setup await coordinator.async_config_entry_first_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 164, in async_config_entry_first_refresh raise ex homeassistant.exceptions.ConfigEntryNotReady

erikkastelec commented 2 years ago

Try restarting Home Assistant again. If restart does not work I will fix the code and let you know when the update is ready.

PioSkot commented 2 years ago

Restarting doesn't help. So I am waiting for the new version.

erikkastelec commented 2 years ago

You can try out the new release (1.3.5). Let me know if it helps.

PioSkot commented 2 years ago

It helped. Thank You.