Update Yale Smart Alarm Client

For the ones running my custom component (or any other custom component for yale for that matter) as off you upgrade to 2022.2 please remove them as it’s all included in core.

Regarding the issue to get kicked out I get it too after a few days. Haven’t narrowed it down yet but seems for me as yale puts a block eventually and the only way to release it is a restart to “refresh” all the auth etc. Will look into it further.

For those of us on the latest release. Is anyone seeing the state in their history log going from unavailable to the current correct state over and over again?

I’m getting this for all my yale entities….

But maybe it’s just an issue on my end thanks

Yes mine is still going unavailable.

Does anybody know how to remove this from Home assistant.
image
If I try to delete this, nothing happens.

If i try re-installing it from the Add Integration, I get the following error
image

In the Log File these are the errors

Logger: homeassistant.config_entries
Source: config_entries.py:735
First occurred: 11:00:24 (3 occurrences)
Last logged: 11:04:18

Error occurred loading configuration flow for integration yale_smart_alarm: cannot import name ‘UnknownError’ from ‘yalesmartalarmclient.exceptions’ (/usr/local/lib/python3.9/site-packages/yalesmartalarmclient/exceptions.py)

Logger: aiohttp.server
Source: components/yale_smart_alarm/coordinator.py:7
First occurred: 11:00:10 (3 occurrences)
Last logged: 11:03:44

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request
resp = await request_handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 98, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 79, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 219, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 137, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 72, in delete
result = await hass.config_entries.async_remove(entry_id)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 848, in async_remove
await entry.async_remove(self.hass)
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 502, in async_remove
component = integration.get_component()
File “/usr/src/homeassistant/homeassistant/loader.py”, line 547, 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 “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 850, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/yale_smart_alarm/init.py”, line 9, in
from .coordinator import YaleDataUpdateCoordinator
File “/usr/src/homeassistant/homeassistant/components/yale_smart_alarm/coordinator.py”, line 7, in
from yalesmartalarmclient.exceptions import AuthenticationError, UnknownError
ImportError: cannot import name ‘UnknownError’ from ‘yalesmartalarmclient.exceptions’ (/usr/local/lib/python3.9/site-packages/yalesmartalarmclient/exceptions.py)

Have you got anything relating to Yale in your configuration.yaml or in any other yaml files? If so remove it from there first, reboot and try to remove it again from integrations.

1 Like

It’s because you’re loading an incorrect version of the package so I assume you still have something left as custom component for yale and thereby it’s picking an incorrect package version from pypi.

Thanks,

Hashing out yalebinarysensor config did the trick. although didnt think this would be an issue as its an independent integration.

It’s using the same upstream package so if you have an older version of it in the manifest of a custom component it will use that and therefore the core integration won’t work.

Have updated the custom component for the Yale binary sensors i wrote for those still using it. here

But its probably deprecated now that the binary sensors have been added to the integration.

Thanks Matt.

I suggest you would archive it and if something is missing we should add it to core.

Hi anyone knows how to get the number panel to show up on dashboard?

Currently i can arm and disarm without code

I did try to set the code via integration option and added code: ‘1234’ in the code section of alarm card on dashboard but number pad not showing still.

any suggestions please.

Thanks

You can’t do it with the Yale integration I’m afraid.

Yale accepts arming/disarming without a code for whatever reason so not worth putting a code in if the api anyway ignores it.
The code in the options flow is for locks and not for the alarm.

Hi guys,
Is anyone noticing the alarm is becoming unavailable multiple time?

Logger: homeassistant.components.yale_smart_alarm
Source: helpers/update_coordinator.py:222
Integration: Yale Smart Living (documentation, issues)
First occurred: 17 April 2022, 19:14:09 (82 occurrences)
Last logged: 05:20:12

Error fetching yale_smart_alarm data

:

Mine done this at exactly the same time according to the logs. I wonder if Yale is doing some sort of maintenance at this time.

Has anyone found fix for this fluctuation ?

Which version are you on?

Home Assistant 2022.10.4
Supervisor 2022.10.0
Operating System 9.2
Frontend 20221010.0 - latest

Reported an issue with the default pin code for locks
Default pin code for locks no longer work · Issue #87474 · home-assistant/core · GitHub