Yale Zwave locks

Hey everyone,

I am looking to move my automation server over to HA, but i can seem to find anything on how to setup a z wave yale lock? I would need change the door pin codes and store who accessed the door with a log too.
Is this possible? I would love to be able to switch the who system over, as right now i just have the nest, hue and wemo stuff setup.

Thanks,

370GT

I am very interested in setting up my yale locks in HA as well, so if you do end up figuring it out please post details in this forum.

Good timing :grin:
I just got a YRD220 as part of the Prime Day Warehouse sale and I’m trying to get it set up with my Home-Assistant setup.

My (relevant) setup:

  • Raspberry Pi 3
  • Aeotec Zstick Gen5
  • YRD220
  • hass ~0.23.x (dev branch about a week or so old)
  • openzwave v? (heh, should probably look this up)

So far I’ve had mixed success. The lock via the screen works great and I’ve been able to join the lock to the Zwave network and can see some things but not everything in ozwcp. Late last night I was able to get it to join in what I think is “Secure Inclusion” mode. I also added a config to openzwave from the zwavedb. I can actually see options in ozwcp to lock and unlock…except they don’t work. Instead I get timeouts:

post: key=10-DOOR LOCK-user-bool-1-0 data=true size=4
2016-07-14 08:14:38.809 Info, Node010, Value::Set - COMMAND_CLASS_DOOR_LOCK - Locked - 0 - 1 - True
2016-07-14 08:14:38.809 Info, Node010, Value_Lock::Set - Requesting lock to be Locked
2016-07-14 08:14:38.809 Detail, Node010, Queuing (Send) DoorLockCmd_Set (Node=10): 0x01, 0x0a, 0x00, 0x13, 0x0a, 0x03, 0x62, 0x01, 0xff, 0x25, 0x22, 0x74
2016-07-14 08:14:38.809 Detail, Node010, Queuing (Send) DoorLockCmd_Get (Node=10): 0x01, 0x09, 0x00, 0x13, 0x0a, 0x02, 0x62, 0x02, 0x25, 0x23, 0x8b
post: key=10-DOOR LOCK-user-bool-1-0 data= size=0
2016-07-14 08:14:38.810 Detail,
2016-07-14 08:14:38.810 Info, Node010, Sending (Send) message (Callback ID=0x22, Expected Reply=0x04) - DoorLockCmd_Set (Node=10): 0x01, 0x0a, 0x00, 0x13, 0x0a, 0x03, 0x62, 0x01, 0xff, 0x25, 0x22, 0x74
2016-07-14 08:14:38.819 Detail, Node010,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2016-07-14 08:14:38.819 Detail, Node010,   ZW_SEND_DATA delivered to Z-Wave stack
2016-07-14 08:14:40.111 Detail, Node010,   Received: 0x01, 0x07, 0x00, 0x13, 0x22, 0x00, 0x00, 0x82, 0x4b
2016-07-14 08:14:40.111 Detail, Node010,   ZW_SEND_DATA Request with callback ID 0x22 received (expected 0x22)
2016-07-14 08:14:40.111 Info, Node010, Request RTT 1301 Average Request RTT 1577
2016-07-14 08:14:40.111 Detail,   Expected callbackId was received
2016-07-14 08:14:46.979 Detail, Node002,   Received: 0x01, 0x18, 0x00, 0x04, 0x00, 0x02, 0x12, 0x32, 0x02, 0xa1, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e
2016-07-14 08:14:46.979 Detail,
2016-07-14 08:14:46.979 Detail, Node002, Refreshed Value: old value=false, new value=false, type=bool
2016-07-14 08:14:46.979 Detail, Node002, Changes to this value are not verified
2016-07-14 08:14:46.979 Info, Node002, Received Meter report from node 2: Current=0.000A
2016-07-14 08:14:46.979 Detail, Node002, Refreshed Value: old value=0.000, new value=0.000, type=decimal
2016-07-14 08:14:46.979 Detail, Node002, Changes to this value are not verified
2016-07-14 08:14:46.980 Detail, Node002, Notification: ValueChanged
2016-07-14 08:14:46.980 Info, Notification: Value Changed Home 0xd82e0645 Node 2 Genre user Class METER Instance 1 Index 32 Type bool
2016-07-14 08:14:46.980 Detail, Node002, Notification: ValueChanged
2016-07-14 08:14:46.980 Info, Notification: Value Changed Home 0xd82e0645 Node 2 Genre user Class METER Instance 1 Index 20 Type decimal
2016-07-14 08:14:47.079 Detail, Node002,   Received: 0x01, 0x18, 0x00, 0x04, 0x00, 0x02, 0x12, 0x32, 0x02, 0x21, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96
2016-07-14 08:14:47.079 Detail,
2016-07-14 08:14:47.079 Detail, Node002, Refreshed Value: old value=false, new value=false, type=bool
2016-07-14 08:14:47.079 Detail, Node002, Changes to this value are not verified
2016-07-14 08:14:47.079 Info, Node002, Received Meter report from node 2: Power=0.000W
2016-07-14 08:14:47.079 Detail, Node002, Refreshed Value: old value=0.000, new value=0.000, type=decimal
2016-07-14 08:14:47.079 Detail, Node002, Changes to this value are not verified
2016-07-14 08:14:47.079 Detail, Node002, Notification: ValueChanged
2016-07-14 08:14:47.080 Info, Notification: Value Changed Home 0xd82e0645 Node 2 Genre user Class METER Instance 1 Index 32 Type bool
2016-07-14 08:14:47.080 Detail, Node002, Notification: ValueChanged
2016-07-14 08:14:47.080 Info, Notification: Value Changed Home 0xd82e0645 Node 2 Genre user Class METER Instance 1 Index 8 Type decimal
node = 2 id = 4 value = 55.424 precision = 3
node = 2 id = 5 value = 55.424 precision = 3
node = 2 id = 7 value = 0.000 precision = 3
node = 2 id = 8 value = 120.370 precision = 3
node = 2 id = 9 value = 0.000 precision = 3
2016-07-14 08:14:48.810 Error, Node010, ERROR: Dropping command, expected response not received after 1 attempt(s)
2016-07-14 08:14:48.811 Detail, Node010, Removing current message
2016-07-14 08:14:48.811 Detail, Node010, Notification: Notification - TimeOut
2016-07-14 08:14:48.812 Info, Notification: Notification home d82e0645 node 10 Timeout
2016-07-14 08:14:48.812 Detail,
2016-07-14 08:14:48.813 Info, Node010, Sending (Send) message (Callback ID=0x23, Expected Reply=0x04) - DoorLockCmd_Get (Node=10): 0x01, 0x09, 0x00, 0x13, 0x0a, 0x02, 0x62, 0x02, 0x25, 0x23, 0x8b
2016-07-14 08:14:48.822 Detail, Node010,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2016-07-14 08:14:48.822 Detail, Node010,   ZW_SEND_DATA delivered to Z-Wave stack
2016-07-14 08:14:50.053 Detail, Node010,   Received: 0x01, 0x07, 0x00, 0x13, 0x23, 0x00, 0x00, 0x7b, 0xb3
2016-07-14 08:14:50.054 Detail, Node010,   ZW_SEND_DATA Request with callback ID 0x23 received (expected 0x23)
2016-07-14 08:14:50.054 Info, Node010, Request RTT 1242 Average Request RTT 1409
2016-07-14 08:14:50.055 Detail,   Expected callbackId was received
2016-07-14 08:14:58.812 Error, Node010, ERROR: Dropping command, expected response not received after 1 attempt(s)
2016-07-14 08:14:58.813 Detail, Node010, Removing current message
2016-07-14 08:14:58.813 Detail, Node010, Notification: Notification - TimeOut
2016-07-14 08:14:58.814 Info, Notification: Notification home d82e0645 node 10 Timeout

As for your questions on whether it’s possible. The Yale official docs show that it reports zwave alarm codes for users locking and unlocking (though I’m not seeing these in Home-Assistant yet and haven’t investigated it since I’m still just trying to get the damn thing working :sweat_smile:)

Keypad Lock 0x12 0x(00 - F9) Where Alarm level represents user slot number
Keypad Unlock 0x13 0x(00 - F9) Where Alarm level represents user slot number

Unfortunately I don’t see any way in there to add/remove users and it looks to me like that’s just the way it is.

I’ll try to update this thread as I get things working…assuming I can figure it out.

I decided to go with a vera as the bridge between my z wave devices and Home Assistant. It has full control of the locks and now i just need to add the vera to HA. Lock control on the vera is quite good, full control of codes and triggering scenes.

I’ll keep everyone updated on how well it integrates with HA

I’ve been struggling with the Yale Touchscreen Lever Lock too. It shows up, but not correctly. Trying best I can. It works well with my Lowe’s Iris setup, but Iris is another story. Since they forced us to the V2 hub, I’ve been experimenting with the rooted V1 hub, but so far not connected to HASS yet. Please share progress on Yale locks and I will do the same.

I got everything working but I don’t really have a satisfying answer as to how.

I eventually added my lock to my Wink hub just to test that it even works and of course it worked fine. I excluded it and tried to include it again (via open-zwave-control-panel / ozwcp) to my Aeotec Zstick gen5 and had the same results as before (shows up, seems to have the right settings but doesn’t respond).

My eventual solution was to include it via Domoticz since it specifically has a “Include Secure Node” option. So I set the NetworkKey in domoticz for the controller then secure included the lock and everything worked. Shutdown domoticz, I then copied the NetworkKey into the config/options.xml for Home-Assistant and the lock showed up and was functional there as well.

So yeah, I’ve got the lock working but I don’t know a good solution to adding secure nodes in hass. It could be that we need a new zwave service function add_node_secure that sets doSecurity=True in the python-openzwave library but after fighting to get my lock set up all weekend I’m not really feeling up to it right now :wink:

Did you have to modify any of the XML files under /config/assa_abloy at all to get it working, or does the default “RealLivingCapTouch.xml” just work?

I’m struggling with the YRL220 (leverset version of your lock) and I’ve gotten as close as you did initially, but same result - not able to control it.

Also, how are you managing user codes - is this a manual process at the door? I’m debating whether I should bite the bullet and get a Wink hub to root and use for these. Interested to hear how the Vera user, 370gt is doing with his too.

Works well with the vera. I haven’t tried to get any of the notifications or pin code setting under hass, just using the vera app itself to do that. The locks came up no problem on hass for lock state control, so I’m happy so far. Just need to get the rest of hass setup with group and such, but it’s nice to have the house fully running on the vera in the meantime during hass setup.

Thanks for that quick reply!
I’m running in parallel on Lowe’s Iris v2 right now, same as you and Vera. I have an extra YRL220 lever lock I’m using to test with, but my end goal is to completely detach from cloud-based services and do everything locally, ala Intranet of Things.

The rooted Wink hub looks promising for doing this, as you can completely disable all Internet calls, but from what I’ve read, users still need to connect to add new devices. I’ve rooted my Iris V1 hub already, but getting it to work as a bridge in hass is challenging to say the least and will require much more time. Trying to get some guys together who have had some success in the past for this too, but we are all busy!

If I could get user codes and door history into hass, then that would be optimal. I’m switching to hass because of the advanced nature and flexibility, but lately I’ve been studying far more python than I had wanted to. :smiley:

I just ended up using the RealLivingCapTouch file that was included and haven’t bothered trying the other one and yeah I just set user codes at the door itself since I don’t change them frequently enough (and Hass doesn’t support that kind of interaction anyway). I would like to get the auto relock setting raised (30 seconds is pretty annoyingly short) since there doesn’t seem to be a way to do that at the door interface itself. If I get around to it I’ll let you know.

Also re: Wink when I added this lock (as generic zwave) all I had was lock and unlock (not user codes) support.

Figure this might help someone out too. This is my template sensor to show the front door status (obviously I redacted the names that match the code numbers).

sensor:
  - platform: template
    sensors:
      template_front_door_status:
          value_template: >-
            {%- if is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15", "19") -%}
              {%- if is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15", "1") -%}
                First Person
              {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15", "2") -%}
                Second Person
              {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15", "3") -%}
                Third Person
              {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15", "4") -%}
                Fourth Person
              {%- else -%}
                Unlocked by user {{ sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15 }}
              {%- endif %}
            {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15", "27") %}
              Auto-Relocked
            {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15", "21") %}
              Manual Lock
            {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15", "22") %}
              Manual Unlock
            {%- elif is_state("sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15", "161") %}
              Tamper
            {%- else -%}
              Unknown Level {{ states.sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_level_15.state }} Type {{ states.sensor.assa_abloy_yale_real_living_captouch_deadbolt_alarm_type_15.state }}
            {%- endif %}
          friendly_name: 'Front Door Status'

6 Likes

Anyone have more than one YRL lock?
I had success with Lock 1, so I went ahead and added Lock 2…all seemed well, but I have one weird thing happening that I cannot seem to fix -

If I LOCK the door from the outside (touching the face) it reports as “unlocked.” the lock behaves correctly, but reports a status of "unlocked in home assistant.

Likewise, if I UNLOCK the door using a user code, the door operates properly and unlocks but reports a status of “locked” in home assistant.

manually locking from the inside using the thumb bolt reports state correctly; as does a LOCK/UNLOCK command from HA, so I’m sure the handing is ok (i did a factory reset and let it auto-hand the lock again)

Additionally, the sensor attributes for the lock does report correctly, the issue is specifically with the reporting of the LOCK entity states only…they are reversed - is this something that i can edit in the code?

My other lock works and reports state correctly and I copied its config to create this one, so it is strange that it would not report the correct states…I looked at open zwave control panel and do not see anything that can be modified that might fix it.

does anyone know why this other lock would operate properly, but report only the ENTITY.LOCK.STATE incorrectly to HA?

I’m curious to see how things are going for you, @370gt. I’m moving from Vera to HA and one of the tasks I haven’t worked on yet is implementing locks. I’ve got code in Vera that alerts me if my kids unlock the deadbolt. I’d like to do this in HA natively. Is that possible? The lock’s still connected to the Vera, though, till I get that sorted.

2 Likes

was anyone successfull in adding this lock into their system? I have yale pushbutton deadbolt paired with HA however i cant lock or unlock the door. Does anyone know the steps that i should take to register a code from HA and lock and unlock the door ?

I’ve only made it work with the Vera lite hub. Open, close and automate with states. Can’t get the codes that open the door tho.

Hi, so I’m thinking of getting this model

https://www.amazon.com/dp/B005NLKVT6/ref=twister_B06X9992ZS?_encoding=UTF8&psc=1

I’d like to know if could just connect the lock directly to z wave stick or is smart hub still required?
Is August lock the only one that doesn’t require hubs to pair with home assistant?

I think i have the same lock, and it works flawlessly. But I couldn’t make it work with the aotec z stick, and I’m using Vera. You can lock, unlock (obviously) and use the state to make automations. Thru the Vera platform you can set up to 250 pins i think, and the schedule if you want. I can’t get the code that opens the lock en home assistant, but on the vera platform you cand set emails and stuff. The vera platform is very shitty tho.

You also get the battery state, so thats cool to set an alarm to replace them.

Is there a list of smart locks that can be successfully paired with the z wave stick?
I don’t have any z wave setup at my home yet
Mostly zigbee (xiaomi) and wifi with sonoff products.
With yale, which smart hub would you recommend to use with HA?

1 Like

I paired mine without any issue. Remember, you need to set network_key and add the lock using Secure Node. Please refer to https://home-assistant.io/docs/z-wave/#adding-security-devices

2 Likes