Upgraded to 2021.7.4 and suddenly most of my zigbee units when Unavailable. Not sure if that has anything to do with the upgrade, but it did happen at the same time.
Using ZHA trough the Sonoff zigbee bridge with Tasmota firmware.
Mqtt discovery is enabled, I am using mqtt addon.
Ok but what devices* are you using that creates the discovered devices? Hint: this will be outside HA
Yes these are devices outside of HA, one is the local Raspberry pi with temperature sensor script which periodically pushes messages to mqtt directly, other devices are ESPHome ones: smart-home-config/temperature.yaml at 68182455b45d8a21efb6cc63c656ad3f5accd6fb · riston/smart-home-config · GitHub
Did you ever find out where the error was coming from?
Edit: Okay i think i figured it out. I thought the changes would need to be made in the Home Assistant config, but it is probably one of my Sonoff S20 with Tasmota firmware. The mqtt discovery message of those devices contains the value_template
keyword.
Edit2: Switched the Tasmota firmware to ESPHome and the error went away. A newer version of Tasmota would probably have solved it as well but i wanted to switch to ESPHome anyway.
You still aren’t understanding. Those aren’t using discovery. Discovery is when home assistant discovers a configuration topic that setups another topic as a device. Your machine is discovering a device. That device that it’s discovering has the erroneous configuration.
I was not able to upgrade from 2021.5.5 to 2021.6.x, because after upgrading ha restarted permanently.
Today I tried to upgrade from 2021.5.5 to 2021.7.4
The upgrade was possible, ha doesn’t restart all the time. But most importent functions are not available:
invalid config
The following integrations and platforms could not be set up:
meross_cloud
telegram_bot
telegram.notify
reolink_dev
default_config
Please check your config and logs.
The reason for telegram not working could be a DHCP issue:
Logger: homeassistant.setup
Source: components/dhcp/__init__.py:11
First occurred: 11:12:38 AM (1 occurrences)
Last logged: 11:12:38 AM
Setup failed for dhcp: unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 201, in _async_setup_component
component = integration.get_component()
File "/usr/src/homeassistant/homeassistant/loader.py", line 490, in get_component
cache[self.domain] = importlib.import_module(self.pkg_path)
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/dhcp/__init__.py", line 11, in <module>
from aiodiscover import DiscoverHosts
File "/usr/local/lib/python3.9/site-packages/aiodiscover/__init__.py", line 11, in <module>
from .discovery import DiscoverHosts # noqa: F401
File "/usr/local/lib/python3.9/site-packages/aiodiscover/discovery.py", line 6, in <module>
from pyroute2 import IPRoute
File "/usr/local/lib/python3.9/site-packages/pyroute2/__init__.py", line 68, in <module>
for entry_point in metadata.entry_points().get('pr2modules', []):
File "/usr/local/lib/python3.9/importlib/metadata.py", line 562, in entry_points
ordered = sorted(eps, key=by_group)
File "/usr/local/lib/python3.9/importlib/metadata.py", line 560, in <genexpr>
dist.entry_points for dist in distributions())
File "/usr/local/lib/python3.9/importlib/metadata.py", line 261, in entry_points
return EntryPoint._from_text(self.read_text('entry_points.txt'))
File "/usr/local/lib/python3.9/importlib/metadata.py", line 110, in _from_text
config.read_string(text)
File "/usr/local/lib/python3.9/configparser.py", line 723, in read_string
self.read_file(sfile, source)
File "/usr/local/lib/python3.9/configparser.py", line 718, in read_file
self._read(f, source)
File "/usr/local/lib/python3.9/configparser.py", line 1082, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '<string>', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
Telegram issue from log
Logger: homeassistant.setup
Source: components/telegram_bot/polling.py:6
First occurred: 11:13:28 AM (1 occurrences)
Last logged: 11:13:28 AM
Error during setup of component telegram_bot
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2851, in get_entry_map
ep_map = self._ep_map
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2813, in __getattr__
raise AttributeError(attr)
AttributeError: _ep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
result = await task
File "/usr/src/homeassistant/homeassistant/components/telegram_bot/__init__.py", line 310, in async_setup
platform = importlib.import_module(f".{p_config[CONF_PLATFORM]}", __name__)
File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 855, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/telegram_bot/polling.py", line 6, in <module>
from telegram.ext import CallbackContext, Dispatcher, Handler, Updater
File "/usr/local/lib/python3.9/site-packages/telegram/ext/__init__.py", line 27, in <module>
from .jobqueue import JobQueue, Job
File "/usr/local/lib/python3.9/site-packages/telegram/ext/jobqueue.py", line 28, in <module>
from apscheduler.schedulers.background import BackgroundScheduler
File "/usr/local/lib/python3.9/site-packages/apscheduler/schedulers/background.py", line 5, in <module>
from apscheduler.schedulers.base import BaseScheduler
File "/usr/local/lib/python3.9/site-packages/apscheduler/schedulers/base.py", line 42, in <module>
class BaseScheduler(six.with_metaclass(ABCMeta)):
File "/usr/local/lib/python3.9/site-packages/apscheduler/schedulers/base.py", line 66, in BaseScheduler
_trigger_plugins = dict((ep.name, ep) for ep in iter_entry_points('apscheduler.triggers'))
File "/usr/local/lib/python3.9/site-packages/apscheduler/schedulers/base.py", line 66, in <genexpr>
_trigger_plugins = dict((ep.name, ep) for ep in iter_entry_points('apscheduler.triggers'))
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 641, in <genexpr>
for entry in dist.get_entry_map(group).values()
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2853, in get_entry_map
ep_map = self._ep_map = EntryPoint.parse_map(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2538, in parse_map
raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups
Logger: homeassistant.setup
Source: setup.py:311
First occurred: 11:13:31 AM (1 occurrences)
Last logged: 11:13:31 AM
Unable to prepare setup for platform telegram.notify: Could not set up all dependencies.
Logger: homeassistant.components.notify
Source: components/notify/__init__.py:288
Integration: Notifications (documentation, issues)
First occurred: 11:13:31 AM (1 occurrences)
Last logged: 11:13:31 AM
Unknown notification service specified
meross and reolink issue - both have been installed via HACS
Logger: homeassistant.util.package
Source: util/package.py:96
First occurred: 11:13:26 AM (2 occurrences)
Last logged: 11:14:28 AM
Unable to install package meross-iot==0.4.1.1rc1: Keyring is skipped due to an exception: Entry points must be listed in groups ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ow743otn/retrying/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ow743otn/retrying/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bq5kuovc cwd: /tmp/pip-install-ow743otn/retrying/ Complete output (28 lines): Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2851, in get_entry_map ep_map = self._ep_map File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2813, in __getattr__ raise AttributeError(attr) AttributeError: _ep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-ow743otn/retrying/setup.py", line 57, in <module> setup(**settings) File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 152, in setup _install_setup_requires(attrs) File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 142, in _install_setup_requires dist = MinimalDistribution(attrs) File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 134, in __init__ distutils.core.Distribution.__init__(self, filtered) File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 453, in __init__ for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 641, in <genexpr> for entry in dist.get_entry_map(group).values() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2853, in get_entry_map ep_map = self._ep_map = EntryPoint.parse_map( File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2538, in parse_map raise ValueError("Entry points must be listed in groups") ValueError: Entry points must be listed in groups ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 20.2.4; however, version 21.2.2 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
Unable to install package reolink==0.0.21: Keyring is skipped due to an exception: Entry points must be listed in groups ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mgglu2xu/reolink/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mgglu2xu/reolink/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-f8autfse cwd: /tmp/pip-install-mgglu2xu/reolink/ Complete output (24 lines): Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2851, in get_entry_map ep_map = self._ep_map File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2813, in __getattr__ raise AttributeError(attr) AttributeError: _ep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-mgglu2xu/reolink/setup.py", line 2, in <module> setup( File "/usr/local/lib/python3.9/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 453, in __init__ for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 641, in <genexpr> for entry in dist.get_entry_map(group).values() File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2853, in get_entry_map ep_map = self._ep_map = EntryPoint.parse_map( File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2538, in parse_map raise ValueError("Entry points must be listed in groups") ValueError: Entry points must be listed in groups ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 20.2.4; however, version 21.2.2 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
I have no idea, what I should do to resolve:
- I tried to restart via GUI, but this doesn’t work.
- When I try to “check configuration” in the GUI it will not end checking (I waited 30 minutes, I tried several times)
So I just removed the power from the raspberry and connected again. But I get the same errors.
I hope you shut down the OS cleanly before removing power. Otherwise you have a pretty high chance at corrupting the OS filesystem or SD card.
I updated HA. Since the Update I cannot switch on automations and work on them. I even cannot create a new automation. The old ones didn’t work any more. What’s going on? I don’t understand your explanation of the new Trigger IDs etc. There is no advantage for me, but a lot of confusion. Any suggestions? Thanks a lot
It works now restarted the system a fourth. Seems to be no update problem. Sorry
No, I haven’t found any workaround yet.
whoa, rolling back to 2021.06
third week trying to get rid of this consistent restarting every few hours
same thing here
Hello did you find a solution to this problem ? I am running home assistant 2021.08.7 and have exactly the same error.
One strange thing: yesterday I updated from 2021.08.6 to 2021.08.7, I was able to verify my configuration and reboot Home Assistant Server. I did it once but after the first reboot the problem came back.
Can you rebuild HA Core influxDB without deleting the history and how do you do it ?
@Kertz1954, Did you eventually got this to work?
Just now trying (all Home Assistant on “latest and greatest”) and keep getting “Invalid API key”.
For testing created a brand-new account, but still getting the same.
Location, Long and Lat were “auto filled” like @allan mentioned, but still getting the error.
Hello @Kertz1954 and @allan, this has become an irrelevant toppic for me. will not try to get this integration to work as I am unsure the cost-model is a viable for me as a non-commercial user.
Thanks,
It took some time but finally I adjusted almost all my automations and now use trigger IDs, which reduces the amount of automations when they all do basically the same thing.
BUT I came across a problem with trigger IDs. Here´s a (my first) feature request to fix this and add one more advantage of using trigger IDs in automations:
Hi, I have the same issue around 5 times a day. Did you figure out where it comes from?
Meanwhile I’m on 2021.9.6
No, but I’m not seeing it on 2021.9.7