zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Onesti easytouch_v1 Last unlock user coming through as 'None'

Open cherealnice opened this issue 2 years ago • 2 comments

What happened?

Hi,

Not sure if this is the right place for this issue, so please let me know if it is a frontend issue or somewhere else and I can move it.

I recently upgraded z2m and this issue started.

I have an easytouch integration with my door lock, and it seems like when user 0 unlocks the door, it isn't being properly sent through to HA and shows up as None. Here's what I see in Z2M logs: '{"auto_relock":null,"battery":83,"last_lock_source":"self","last_lock_user":0,"last_unlock_source":"keypad","last_unlock_user":0,"last_used_pin_code":"****","linkquality":32,"lock_state":"locked","pin_code":null,"sound_volume":"low_volume","state":"LOCK","voltage":4200}'

Everything looks good in Z2M and I can see Last unlock user: 0 in the device settings, but state_attr('sensor', 'door_lock_last_lock_user') is set to None instead of 0. Any ideas what could cause this issue/where I can look to possibly fix it?

What did you expect to happen?

When the last_unlock_user is set to 0, HA should also see it as 0, and not None

How to reproduce it (minimal and precise)

  1. Create integration for easytouch_v1 in Z2M
  2. Unlock the door as user 0.
  3. In HA, you will see last_unlock_user is None

Zigbee2MQTT version

1.40.2

Adapter firmware version

20230507

Adapter

SONOFF ZBDongle-E

Setup

Add-on on HA running in virtualbox on Ubuntu/Intel

Debug log

No response

cherealnice avatar Oct 27 '24 11:10 cherealnice

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Dec 27 '24 00:12 github-actions[bot]

I also have this problem since a few months back. Any news?

henrikseger avatar Mar 07 '25 18:03 henrikseger