Anyone with Lock devices in Home Assistant?

Posted on
Mon Oct 30, 2023 8:18 am
FlyingDiver offline
User avatar
Posts: 7239
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Anyone with Lock devices in Home Assistant?

I'm looking at adding Lock device support to HAA, but I don't have any that I can add to HA. If you have a lock device configured in your HA installation, please do the following:

1. Make sure you're on the latest release of HAA.
2. Enable debug level logging.
3. Add the lock device as a "Generic Device".
4. Lock/Unlock the lock at least once.
5. Post the log section with the HAA debug output.

Thanks!

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Oct 31, 2023 6:32 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Anyone with Lock devices in Home Assistant?

{EDIT} The log, below was done before I upgraded to 2023.2.0, if that matters.

Here's one.

It's "New Device 1" in this log during setup but renamed to "Laundry Lock" after setup and when I locked it and unlocked it from HA.

Code: Select all
Oct 31, 2023 at 8:26:42 PM
   Home Assistant Agent            Lock Laundry: Stopping Agent device for entity 'lock.laundry_lock_2023_zwave'
   Home Assistant Agent Debug      logLevel = 10
   Home Assistant Agent Debug      get_entity_list: filter = 'generic', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x1075158c0>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_type_list: filter = '', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x1075158c0>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_type_list: retList = [('alarm_control_panel', 'alarm_control_panel'), ('automation', 'automation'), ('binary_sensor', 'binary_sensor'), ('button', 'button'), ('camera', 'camera'), ('device_tracker', 'device_tracker'), ('light', 'light'), ('lock', 'lock'), ('media_player', 'media_player'), ('number', 'number'), ('person', 'person'), ('remote', 'remote'), ('scene', 'scene'), ('select', 'select'), ('sensor', 'sensor'), ('sun', 'sun'), ('switch', 'switch'), ('text', 'text'), ('update', 'update'), ('zone', 'zone')]
   Home Assistant Agent Debug      menuChanged: typeId = 'ha_generic', devId = 1307251965, valuesDict = <indigo.Dict object at 0x107514200>
   Home Assistant Agent Debug      get_entity_list: filter = 'generic', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x107514200>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_list for filter 'lock': retList = [('lock.front_door', 'front_door'), ('lock.laundry_lock_2023_zwave', 'laundry_lock_2023_zwave')]
   Home Assistant Agent Debug      get_entity_type_list: filter = '', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x107514200>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_type_list: retList = [('alarm_control_panel', 'alarm_control_panel'), ('automation', 'automation'), ('binary_sensor', 'binary_sensor'), ('button', 'button'), ('camera', 'camera'), ('device_tracker', 'device_tracker'), ('light', 'light'), ('lock', 'lock'), ('media_player', 'media_player'), ('number', 'number'), ('person', 'person'), ('remote', 'remote'), ('scene', 'scene'), ('select', 'select'), ('sensor', 'sensor'), ('sun', 'sun'), ('switch', 'switch'), ('text', 'text'), ('update', 'update'), ('zone', 'zone')]
   Home Assistant Agent Debug      menuChanged: typeId = 'ha_generic', devId = 1307251965, valuesDict = <indigo.Dict object at 0x1075158c0>
   Home Assistant Agent Debug      get_entity_list: filter = 'generic', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x1075158c0>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_list for filter 'lock': retList = [('lock.front_door', 'front_door'), ('lock.laundry_lock_2023_zwave', 'laundry_lock_2023_zwave')]
   Home Assistant Agent Debug      get_entity_type_list: filter = '', typeId = 'ha_generic', valuesDict = <indigo.Dict object at 0x1075158c0>, targetId = 1307251965
   Home Assistant Agent Debug      get_entity_type_list: retList = [('alarm_control_panel', 'alarm_control_panel'), ('automation', 'automation'), ('binary_sensor', 'binary_sensor'), ('button', 'button'), ('camera', 'camera'), ('device_tracker', 'device_tracker'), ('light', 'light'), ('lock', 'lock'), ('media_player', 'media_player'), ('number', 'number'), ('person', 'person'), ('remote', 'remote'), ('scene', 'scene'), ('select', 'select'), ('sensor', 'sensor'), ('sun', 'sun'), ('switch', 'switch'), ('text', 'text'), ('update', 'update'), ('zone', 'zone')]
   Home Assistant Agent            new device 1: Starting Agent device for entity 'lock.laundry_lock_2023_zwave'
   Home Assistant Agent Debug      Updating device new device 1 with {'entity_id': 'lock.laundry_lock_2023_zwave', 'state': 'locked', 'attributes': {'friendly_name': 'Laundry lock 2023 zwave', 'supported_features': 0}, 'last_changed': '2023-10-31T23:48:07.154328+00:00', 'last_updated': '2023-10-31T23:48:07.154328+00:00', 'context': {'id': '01HE4265DS1JPFN8CE80EFSTY0', 'parent_id': None, 'user_id': 'd70ea7ecd07e48b4a2cf3def48dd56d3'}}
   Home Assistant Agent Debug      new device 1: states list changed, updating...

Oct 31, 2023 at 8:28:23 PM
   Home Assistant Agent Debug      call_service event: lock unlock lock.laundry_lock_2023_zwave
   Home Assistant Agent Debug      Updating device Laundry Lock with {'entity_id': 'lock.laundry_lock_2023_zwave', 'state': 'unlocked', 'attributes': {'friendly_name': 'Laundry lock 2023 zwave', 'supported_features': 0}, 'last_changed': '2023-11-01T00:28:31.177825+00:00', 'last_updated': '2023-11-01T00:28:31.177825+00:00', 'context': {'id': '01HE44G929V9HSGXCSDCZZ5BYG', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Warning    Websocket unknown message type: {"id": 1, "type": "event", "event": {"event_type": "zwave_js_notification", "data": {"domain": "zwave_js", "node_id": 14, "home_id": 3890130607, "endpoint": 0, "device_id": "cc587150cc3f6ff8a3fcf6da46c84d8d", "command_class": 113, "command_class_name": "Notification", "label": "Access Control", "type": 6, "event": 4, "event_label": "RF unlock operation", "parameters": {}}, "origin": "LOCAL", "time_fired": "2023-11-01T00:28:31.182400+00:00", "context": {"id": "01HE44G92ESJPM0TRRX5ZQZAM9", "parent_id": null, "user_id": null}}}
   Home Assistant Agent Debug      call_service event: lock lock lock.laundry_lock_2023_zwave
   Home Assistant Agent Debug      Updating device Laundry Lock with {'entity_id': 'lock.laundry_lock_2023_zwave', 'state': 'locked', 'attributes': {'friendly_name': 'Laundry lock 2023 zwave', 'supported_features': 0}, 'last_changed': '2023-11-01T00:28:41.169935+00:00', 'last_updated': '2023-11-01T00:28:41.169935+00:00', 'context': {'id': '01HE44GJTH553Y5DQFMDZA1SN1', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Warning    Websocket unknown message type: {"id": 1, "type": "event", "event": {"event_type": "zwave_js_notification", "data": {"domain": "zwave_js", "node_id": 14, "home_id": 3890130607, "endpoint": 0, "device_id": "cc587150cc3f6ff8a3fcf6da46c84d8d", "command_class": 113, "command_class_name": "Notification", "label": "Access Control", "type": 6, "event": 3, "event_label": "RF lock operation", "parameters": {}}, "origin": "LOCAL", "time_fired": "2023-11-01T00:28:41.172365+00:00", "context": {"id": "01HE44GJTMQYEX4EVJYK8NNXHE", "parent_id": null, "user_id": null}}}

Posted on
Tue Oct 31, 2023 6:55 pm
FlyingDiver offline
User avatar
Posts: 7239
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Anyone with Lock devices in Home Assistant?

Excellent. FYI, this is the specific data I needed. It's the JSON messages from HA when the lock device is locked/unlocked. From that, I can make sure I'm looking for the right values.
Code: Select all
 {'entity_id': 'lock.laundry_lock_2023_zwave', 'state': 'unlocked', 'attributes': {'friendly_name': 'Laundry lock 2023 zwave', 'supported_features': 0}, 'last_changed': '2023-11-01T00:28:31.177825+00:00', 'last_updated': '2023-11-01T00:28:31.177825+00:00', 'context': {'id': '01HE44G929V9HSGXCSDCZZ5BYG', 'parent_id': None, 'user_id': None}}
 {'entity_id': 'lock.laundry_lock_2023_zwave', 'state': 'locked', 'attributes': {'friendly_name': 'Laundry lock 2023 zwave', 'supported_features': 0}, 'last_changed': '2023-11-01T00:28:41.169935+00:00', 'last_updated': '2023-11-01T00:28:41.169935+00:00', 'context': {'id': '01HE44GJTH553Y5DQFMDZA1SN1', 'parent_id': None, 'user_id': None}}

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest