2022.7: A stunning performance

Change any weather unit to your preference…does this work with netatmo … ???

Yes exactly like you

Thanks. Both look like could login problems:

after installing 2022.7.0 on my RPI4

Home Assistant Core 2022.6.7

Home Assistant Supervisor 2022.07.0

Home Assistant OS 8.2

Ring won’t work:
Logger: homeassistant.config_entries Source: components/ring/init.py:78 First occurred: 2:58:41 PM (1 occurrences) Last logged: 2:58:41 PM
Error setting up entry [email protected] for ring [redacted my email address]
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 174, in _new_conn
conn = connection.create_connection(
File “/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py”, line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.10/socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 703, in urlopen
httplib_response = self._make_request(
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 386, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 1042, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 358, in connect
self.sock = conn = self._new_conn()
File “/usr/local/lib/python3.10/site-packages/urllib3/connection.py”, line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef1a350>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/requests/adapters.py”, line 489, in send
resp = conn.urlopen(
File “/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py”, line 787, in urlopen
retries = retries.increment(
File “/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py”, line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.ring.com’, port=443): Max retries exceeded with url: /clients_api/session?api_version=9 (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7faef1a350>: Failed to establish a new connection: [Errno -3] Try again’))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/ring/init.py”, line 78, in async_setup_entry
await hass.async_add_executor_job(ring.update_data)
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.10/site-packages/ring_doorbell/init.py”, line 52, in update_data
self.create_session()
File “/usr/local/lib/python3.10/site-packages/ring_doorbell/init.py”, line 65, in create_session
self.session = self.query(
File “/usr/local/lib/python3.10/site-packages/ring_doorbell/init.py”, line 107, in query
return self.auth.query(
File “/usr/local/lib/python3.10/site-packages/ring_doorbell/auth.py”, line 94, in query
req = getattr(self._oauth, method.lower())(url, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 635, in post
return self.request(“POST”, url, data=data, json=json, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests_oauthlib/oauth2_session.py”, line 521, in request
return super(OAuth2Session, self).request(
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 587, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/sessions.py”, line 701, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.10/site-packages/requests/adapters.py”, line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.ring.com’, port=443): Max retries exceeded with url: /clients_api/session?api_version=9 (Caused by NewConnectionError(’<urllib3.connection.HTTPSConnection object at 0x7faef1a350>: Failed to establish a new connection: [Errno -3] Try again’))

and

Netatmo wont work:
Logger: homeassistant.config_entries Source: components/netatmo/data_handler.py:166 First occurred: 2:55:43 PM (1 occurrences) Last logged: 2:55:43 PM
Error setting up entry Configuration.yaml for netatmo
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 1154, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 1154, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 1154, in _create_direct_connection
hosts = await asyncio.shield(host_resolved)
[Previous line repeated 1 more time]
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 867, in _resolve_host
await event.wait()
File “/usr/local/lib/python3.10/site-packages/aiohttp/locks.py”, line 34, in wait
raise self._exc
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 867, in _resolve_host
await event.wait()
File “/usr/local/lib/python3.10/site-packages/aiohttp/locks.py”, line 34, in wait
raise self._exc
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 867, in _resolve_host
await event.wait()
File “/usr/local/lib/python3.10/site-packages/aiohttp/locks.py”, line 34, in wait
raise self._exc
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 880, in _resolve_host
addrs = await self._resolver.resolve(host, port, family=self._family)
File “/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py”, line 33, in resolve
infos = await self._loop.getaddrinfo(
File “/usr/local/lib/python3.10/asyncio/base_events.py”, line 860, in getaddrinfo
return await self.run_in_executor(
File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.10/socket.py”, line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

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

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 353, in async_setup
result = await component.async_setup_entry(hass, self)
File “/usr/src/homeassistant/homeassistant/components/netatmo/init.py”, line 153, in async_setup_entry
await data_handler.async_setup()
File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 108, in async_setup
await asyncio.gather(
File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 210, in register_data_class
await self.async_fetch_data(data_class_entry)
File “/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py”, line 166, in async_fetch_data
await self.data[data_class_entry].async_update()
File “/usr/local/lib/python3.10/site-packages/pyatmo/climate.py”, line 492, in async_update
resp = await self.auth.async_post_request(url=_GETHOMESDATA_REQ)
File “/usr/local/lib/python3.10/site-packages/pyatmo/auth.py”, line 335, in async_post_request
async with self.websession.post(
File “/usr/local/lib/python3.10/site-packages/aiohttp/client.py”, line 1138, in aenter
self._resp = await self._coro
File “/usr/local/lib/python3.10/site-packages/aiohttp/client.py”, line 535, in _request
conn = await self._connector.connect(
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 542, in connect
proto = await self._create_connection(req, traces, timeout)
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 907, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File “/usr/local/lib/python3.10/site-packages/aiohttp/connector.py”, line 1166, in _create_direct_connection
raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.netatmo.com:443 ssl:default [Try again]

I now have this running in a docker too. Except for the pushing to HA part. I set the config.ini to use mqtt-homeassistant as reporting method. It pushes to mqtt and publishes in homeassistant/sensor/flower3/state, but it doesn’t get picked up by the mqtt integration, do you see this too?

What exactly do you mean by this?

I added:

  - /var/run/dbus:/var/run/dbus

in the docker-compose file with the HA container.

I now don’t have the Error 2 anymore as mentioned above, but now I have the following:

Unable to fetch switchbot services data

As @ptdalen posted he found the solution here:

2 Likes

I’e found that I need to update my RPI_GPIO HACs integration after a core update. Then reboot. it works fine again.

Yes your system should tell you that, which makes the whole thing really easy.

Not related to this HA 2022.7, but it is a common UI issue.
Within a few last months we observed changes in Menu, moving a “Restart” button, etc.
I propose a feature which someone may find very useful - scrollbars in Dev tool → Template.
Please have a look.

image
@bdraco Guess who’s back!

I have a E1810 that is not working. I can’t get it to pair now and seems to can’t finish a reconfigure.

Please open a new github issues and provide py-spy How to install Py spy on a HA OS instance, please instruct - #44 by Mariusthvdb, MySQL slow query logs, and callgrind.out files from Profiler - Home Assistant

I have broken templates and can’t map an ‘unknown’ attribute to 0 in 2022.7 like I could in 2022.6.

The original template appears appears to be mapping unknown states to 0 with the map('int') filter. I am trying to get a count of batters that are low, unknown or unavailable.

{{ expand('group.aqara_batteries', 'group.shelly_batteries') | map(attribute='state') | map('int') | select('le', 0) | list | length }}

I have tried map(attribute='state', default=0) but that fails because the state exists but is unknown.

I have tried piping it to int(default=0) but that changes it from an array that exists to a scalar.

I have tried map('int(default=0)') but that is an invalid filter.

I have tried replace('unknown', '0') but that treats the input array as a string.

Don’t know if I found a bug or was exploiting an undocumented feature. Either case, I haven’t found a solution.

Wes.

{{ expand('group.aqara_batteries', 'group.shelly_batteries') | map(attribute='state') | map('int', 0) | select('le', 0) | list | length }}

Supply the int filter with an explicit default value (see how in the example I posted). Without it, when it encounters the unknown value it will no longer automatically supply a default but generate an error.

1 Like

Thanks. Didn’t think of that syntax.

Wes.

My Stunning performance is severely frustrated lately by daily

Anyone else seeing this more than before? No clue what it could be yet…

What’s more , it’s only happening on my system using Nabu Casa Cloud… my duckdns systems never see this.
On mobile_app that is.

A whole day trying to fix my ha after updating to 2022.7.3 !
Very frustrated! The fan of my argon one case not working anymore. Lot’s of errors…
Also had a look at all entities… It’s a complete mess! When you select ‘all entities’, a lot ‘old’ entities appear. I found out when I wanted to rename a few, and got errors… Deleted them in de files found in the .storage folder, but they keep coming back.
Performance? Probably because there’s a performance increase because of python 3.10.
I still have a slow startup time…and. Errors everywhere… Even the new 'music assistant ’ is giving errors.
So frustrated…

Yup, I agree, ive been spending two evenings in a row to get everything working again. Primarily BLE integrations are a mess now. I knew Miflora was going to be a issue, but Switchbot wasn’t on the list. I simply can’t get it to work, it just doensn’t. Got a Pi4 running with docker, added dbus and everything but just doesn’t. Finally managed to get things working by using switchbot-mqtt.

What auth method are you using? If you auth using trusted_networks, the mobile app will do this everytime you go on a public network. You must do the auth using username/password when setting up the app or it will do this.

yeah, aware of those restrictions. thats why I always use username/password. But, most surprisingly, this happens all the time when on my home network…

127.0.0.1 indicating it is from an integration inside HA maybe? why not simply use the phones IP address