Update Yale Smart Alarm Client

I hate to resurrect and old thread but I’m having issues again with my Yale Conexis.

It was working fine up until 2023.09.02 I believe.

When trying to unlock the door with the default pin provided it will not unlock with the below error.

However if I unlock and then enter the pin it works absolutely fine.

Anybody else having issues?

Logger: homeassistant.components.websocket_api.http.connection
Source: components/yale_smart_alarm/lock.py:89
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:23:26 (8 occurrences)
Last logged: 14:05:38

[140680558739264] Could not set lock, check system ready for lock.
[140680565363264] Could not set lock, check system ready for lock.
[140676296929344] Could not set lock, check system ready for lock.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lock/__init__.py", line 111, in _async_unlock
    await entity.async_unlock(**remove_entity_service_fields(service_call))
  File "/usr/src/homeassistant/homeassistant/components/yale_smart_alarm/lock.py", line 56, in async_unlock
    return await self.async_set_lock("unlocked", code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/yale_smart_alarm/lock.py", line 89, in async_set_lock
    raise HomeAssistantError("Could not set lock, check system ready for lock.")
homeassistant.exceptions.HomeAssistantError: Could not set lock, check system ready for lock.

Hello, I’ve connected my Yale smart locks to Home Assistant. Home Assistant has recognized all the devices and can also control them when I input the access code for the lock for the first time. However, when I try to use the “unlock” button, I receive an error message: “Failed to call service lock/unlock. Could not set lock, check system ready for lock.” I’ve entered the access code for each lock so that it doesn’t need to be entered when unlocking the door.

The devices I’m using are the Yale smart hub and Yale Doorman L2 locks, along with the old Yale integration in Home Assistant.

Any suggestions for a solution?

Should be solved no in 2023.12 release.
There was a general bug regarding lock default code

Hi - I have the latest Yale version for Home Assistant. I had one yale alarm linked and the panic facility worked fine. However I have since added 3 other alarms (work, and other family houses) and the panic button maps to the last installed alarm. I learnt this the hard way with some of my scripts that called the panic button setting off the wrong alarms in the wrong house…

Anyone else experienced this ?

It sounds like maybe you should open an issue for this so we can look into it.

Help please. I have started getting this error. I have tried restarting HA multiple times.

Logger: homeassistant.components.yale_smart_alarm
Source: helpers/update_coordinator.py:354
integration: Yale Smart Living (documentation, issues)
First occurred: 15:09:29 (64 occurrences)
Last logged: 16:32:34

Unexpected error fetching yale_smart_alarm data
Traceback (most recent call last):

  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 354, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/yale_smart_alarm/coordinator.py", line 58, in _async_update_data
    for device in updates["cycle"]["device_status"]:
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'device_status'

Is there a way to get more debugging information?

I have also switched the Yale alarm off and on a few times but still no joy.

It has been fixed but not yet released. Will be in the next patch release which should come shortly.

Great to know. This probably explains why when I ran up a dev environment, with the latest code, it worked. But my main HA instance produces this error.

Thanks