2021.7: A new entity, trigger IDs and script debugging

Write up an issue against fritz @sibbl already did it

It could be 2 things, missing microseconds or the T. I would bet it’s the microseconds because I’ve used timestamps with or without T before. It’s also possible that something in the frontend changed with timestamps.

Something about this update broke my Sonos speakers. Nothing in the logs with debug enabled either. Rolling back for now.

After upgrade to 2021.7 my sms gateway stopped working. Tried to remove and readd the integration but are now greeted by:
ERROR (MainThread) [homeassistant.components.sms.gateway] Failed to initialize, error ERR_NOTSUPPORTED

This worked fine in 2021.6

(Ps. I messed up and didnt make a snapshot on my Home Assistant Blue… How do I install 2021.6 again?)

Seeing this as well.

OMG! That list “all changes”… I cannot even imagine how much typing work that was… not even compared with the coding backed…

Well done again!!!

strange behavior of esp32 cameras integrated though esphome. Images from the camera didn’t come through. I looked at the logs through esphome and everything looked ok there.

I rolled back (for now) and everything looks good again.

ecovacs integration is no more working after the upgrade.

Logger: homeassistant.setup
Source: components/ecovacs/__init__.py:63
First occurred: 18:42:15 (1 occurrences)
Last logged: 18:42:15

Error during setup of component ecovacs
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 249, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/ecovacs/__init__.py", line 63, in setup
    device["nick"],
KeyError: 'nick'
1 Like

Seeing an issue with MariaDB since 2021.7.

Notification:
Invalid config
The following integrations and platforms could not be set up:

* [history]
* [logbook]
* [default_config]

Please check your config and [logs](https://xxxxxxxxx.duckdns.org:8123/config/logs).

Log Entry:
Error during connection setup to mysql://xxxxxxx:xxxxxxxxxxxxxx@core-mariadb/homeassistant?charset=utf8mb4: (MySQLdb._exceptions.OperationalError) (2005, "Unknown MySQL server host '@xxxxx@core-mariadb' (-3)") (Background on this error at: http://sqlalche.me/e/14/e3q8) (retrying in 3 seconds)

Reinstalling MariaDB re-creates the issue. Seems to be an issue with using an @ in the DB password? Wasn’t an issue before 2021-07, removed the @ from the password and all works again.

I used, as I always did, the Recreate button in Portainer to update to this version, but HA doesn’t load (the container is marked as running though)

[cont-init.d] udev.sh: executing...

[cont-init.d] udev.sh: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

Fatal Python error: init_interp_main: can't initialize time

Python runtime state: core initialized

PermissionError: [Errno 1] Operation not permitted

Current thread 0xb6fb4020 (most recent call first):

<no Python frame>

[cont-finish.d] executing container finish scripts...

[cont-finish.d] done.

[s6-finish] waiting for services.

[s6-finish] sending all processes the TERM signal.

[s6-finish] sending all processes the KILL signal and exiting.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

I’ve seen online I’m not the only one who is getting this. What’s the solution?

1 Like

@Smiley1244 that was listed in the breaking changes for recorder.

Recorder

The underlying library that is used for the database connections, has been updated. This fixes a bug, that might be a breaking change for you.

If you use an @ in your database username or password, you will have to adjust your database connection string to use %40 instead.

Database connection strings are considered URLs, thus special charaters need to be encoded. %40 is the URL encoded version of @.

Damn, thanks. I looked through as well :frowning:

Same issue here, I also updated the github issue you opened.

1 Like

You need to run it as privileged

1 Like

Thanks

took the liberty of quoting you

It now works… Thank you!

Hi, I like the new things. Just a small issue. It seems, that I am no longer able to logon, using DUCKDNS and NGINX (external URL). It says ‘400: Bad Request’ whenever I am trying to logon. It does work with the standerd ‘http://homeassistant.local:8123’. Investigating it now, because the XIAOMI integration is now a lot easier. So, I really want to keep 2021.7.

Just upgraded to 20.7.0 running on core in a venv and HomeKit has stopped working for me. I appears to be something to do with the default config.
I checked my config before updating and was all good. After the update my config has errors. I have not changed my config and I cannot find the errors the message is referring to.

My HomeKit devices have also stopped working


2021-07-07 18:33:52 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Unable to import component: No module named 'av'
2021-07-07 18:33:53 ERROR (MainThread) [homeassistant.setup] Setup failed for camera: Unable to import component: No module named 'av'
2021-07-07 18:33:54 ERROR (MainThread) [haffmpeg.core] FFmpeg fails [Errno 2] No such file or directory: 'ffmpeg'
Traceback (most recent call last):
File "/mnt/dietpi_userdata/homeassistant/deps/lib/python3.8/site-packages/haffmpeg/core.py", line 136, in open
self._proc = await self._loop.run_in_executor(None, proc_func)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
2021-07-07 18:33:54 WARNING (MainThread) [haffmpeg.tools] Error starting FFmpeg.
2021-07-07 18:33:56 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: Unable to import component: No module named 'av'
2021-07-07 18:33:56 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:33:57 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: camera
2021-07-07 18:33:57 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit: Could not set up all dependencies.
2021-07-07 18:33:59 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:34:00 WARNING (MainThread) [homeassistant.config_entries] Config entry 'LivingRoom (AP)' for upnp integration not ready yet: None; Retrying in background
2021-07-07 18:34:00 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Plusnet Hub One' for upnp integration not ready yet: None; Retrying in background
2021-07-07 18:34:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: cloud, mobile_app
2021-07-07 18:34:01 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: Could not set up all dependencies.
2021-07-07 18:34:16 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'Bitwarden Certificate Notification' trigger: In 'numeric_state' condition: unknown entity xxxxxx
2021-07-07 18:34:16 WARNING (SyncWorker_3) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: camera
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: camera
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: camera
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 153, in async_init
flow, result = await task
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 171, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/config_entries.py", line 693, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/setup.py", line 371, in async_process_deps_reqs
raise HomeAssistantError("Could not set up all dependencies.")
homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 153, in async_init
flow, result = await task
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 171, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/config_entries.py", line 693, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/setup.py", line 371, in async_process_deps_reqs
raise HomeAssistantError("Could not set up all dependencies.")
homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 153, in async_init
flow, result = await task
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/data_entry_flow.py", line 171, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/config_entries.py", line 693, in async_create_flow
await async_process_deps_reqs(self.hass, self._hass_config, integration)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/setup.py", line 371, in async_process_deps_reqs
raise HomeAssistantError("Could not set up all dependencies.")
homeassistant.exceptions.HomeAssistantError: Could not set up all dependencies.
2021-07-07 18:34:17 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Canon MP510 @ DietPi for sensor
Traceback (most recent call last):
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/config_entries.py", line 432, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/components/sensor/__init__.py", line 95, in async_unload_entry
return await component.async_unload_entry(entry)
File "/home/homeassistant/.pyenv/versions/3.8.6/lib/python3.8/site-packages/homeassistant/helpers/entity_component.py", line 181, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
2021-07-07 18:35:53 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook f93a0cf62cda319362829697877285dd25f49b270b544883ff6a110caf4122db from 192.168.54.233
2021-07-07 18:35:54 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook f93a0cf62cda319362829697877285dd25f49b270b544883ff6a110caf4122db from 192.168.54.233
2021-07-07 18:35:54 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook f93a0cf62cda319362829697877285dd25f49b270b544883ff6a110caf4122db from 192.168.54.233
2021-07-07 18:35:55 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook f93a0cf62cda319362829697877285dd25f49b270b544883ff6a110caf4122db from 192.168.54.233
2021-07-07 18:36:10 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:36:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:36:41 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:36:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:36:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:36:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:36:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'arrayStatus' when rendering '{{ value_json.arrayStatus }}'
2021-07-07 18:36:47 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:38:59 WARNING (SyncWorker_7) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2021-07-07 18:39:00 WARNING (SyncWorker_6) [homeassistant.components.waze_travel_time.sensor] Error on retrieving data: empty response
2021-07-07 18:40:11 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:40:11 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:40:30 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:40:35 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:41:35 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:41:35 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 6f63e2b7bb406523d3feb2b6e19334e585a59eda85123db5699edb32a7a2ae85 from 192.168.54.241
2021-07-07 18:42:01 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:01 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:01 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:01 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'arrayStatus' when rendering '{{ value_json.arrayStatus }}'
2021-07-07 18:42:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'on' when rendering '{{ value_json.on }}'
2021-07-07 18:42:41 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'arrayStatus' when rendering '{{ value_json.arrayStatus }}'

2 Likes

When I try to restart HA, I get this:
Failed to call service homeassistant/restart. init() got an unexpected keyword argument ‘encoding’

See breaking change for proxies

1 Like