Yale Zwave locks

Thanks,
Could I just get this z-wave/zigbee stick instead of aotech since it’s cheaper?

https://www.amazon.com/GoControl-CECOMINOD016164-Linear-HUSBZB-1/dp/B01GJ826F8/ref=sr_1_6?ie=UTF8&qid=1507936903&sr=8-6&keywords=z+wave+stick

Would it work just as fine?

Thanks for this!

I used your code for a Yale YRD210-ZW-605 and added a line for the master code 0.

  - platform: template
    sensors:
      template_back_door_status:
          value_template: >-
            {%- if is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "19") -%}
              {%- if is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_level", "0") -%}
                Unlocked by Master Code
              {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_level", "1") -%}
                Unlocked by User One
              {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_level", "2") -%}
                Unlocked by User Two
              {%- else -%}
                Unlocked by User {{ sensor.assa_abloy_unknown_type0004_idaa00_alarm_level }}
              {%- endif %}
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "27") %}
              Auto-Relocked
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "21") %}
              Manually Locked
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "22") %}
              Manually Unlocked
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "161") %}
              Tampered!
            {%- else -%}
              Unknown Level {{ states.sensor.assa_abloy_unknown_type0004_idaa00_alarm_level.state }} Type {{ states.sensor.assa_abloy_unknown_type0004_idaa00_alarm_type.state }}
            {%- endif %}
          icon_template: >-
            {%- if is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "19") -%}
              mdi:lock-open-outline
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "27") %}
              mdi:lock-outline
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "21") %}
              mdi:lock-outline
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "22") %}
              mdi:lock-open-outline
            {%- elif is_state("sensor.assa_abloy_unknown_type0004_idaa00_alarm_type", "161") %}
              mdi:alert
            {%- else -%}
              mdi:lock-open
            {%- endif %}
          friendly_name: 'Back Door Status'

In groups.yaml:

back_door:
  name: Back Door
  view: no
  entities:
    - sensor.template_back_door_status          # defined in configuration.yaml to show lock status

dashboard:
  name: Dashboard
  view: yes
  entities:
    - group.back_door

Works great–thanks!!

EDIT: Added icon_template code inline to change the icon based on alarm_type.

2 Likes

Just used your code to get this working! Awesome!

I figured out how to set the user code via set usercode service https://home-assistant.io/components/lock.zwave/

{"node_id":"10","code_slot":"3","usercode":"445566"}

Is there an easier method for doing this?

@ferbulous It has been reported to work. It will report 2 devices and you will need to sort out which is which for your configuration.yaml.

I’m not sure how to change user codes progammatically, but you can change them in the front-end by going to Configuration > Z-Wave > select the node > scroll down to “Node user codes” and set there.

Here’s another way to show the changes made at the lock and it shows the “true” method used to close or open instead of the previous method which shows “manual” for some that were actually keypad presses. The only potential drawback so far I’ve seen with this is that some of the changes are lengthy, so it will wrap lines in the card.

  - platform: template
    sensors:
      yale_lock_status:
        entity_id: lock.assa_abloy_unknown_type0004_idaa00_locked
        value_template: >-
          {% set lock_status = states.lock.assa_abloy_unknown_type0004_idaa00_locked.attributes.lock_status %}
          {% set lock_status = lock_status|replace('user 0', 'Master') %}
          {% set lock_status = lock_status|replace('user 1', 'John') %}
          {% set lock_status = lock_status|replace('user 2', 'Jane') %}
          {% set lock_status = lock_status|replace('user 3', 'Johnny') %}
          {% set lock_status = lock_status|replace('user 4', 'Janette') %}
          {{ lock_status }}

Anybody know how to apply this type of approach to the icon customization?

3 Likes

@ferbulous It has been reported to work. It will report 2 devices and you will need to sort out which is which for your configuration.yaml.

Yes, I am using the same combo stick.

@gohassgo @zarthan thanks for confirmation
Also, the z-wave usb stick are not actually universal right?
What I meant was if I have the US version of Aotech/Linear HUSBZB-1 usb I can only pair with us z-wave devices but not the ones from uk or other region?

@ferbulous You are correct. If I remember, there are 12 zwave regions and although some of the wireless bands overlap, you need to make sure you get the correct pairings.

Thanks for clearing that up
@masterkenobi Do you mind sharing snapshot of the yale lock option once added to HA?
What else can we do other than unlock/lock door remotely?
Is there pincode management option available?
I tried searching for any demos of yale lock with HA on youtube, but there’s only videos paired with smarthub like vera/smartthings

What’s the latest update on these locks?

They are on sale at $80 today on daily steals and I’m hoping they will work with HA + z-wave or husbzb stick

This is what you get in Service page after added the lock…

I have added the entities in the fronted…
2017-11-03_103313

This is what I get in the States page

1 Like

Thanks @masterkenobi, this should really be updated to the wiki
Now I just need figure out how to properly replace the bolt since my door design is a bit different and old bolt is a bit thicker compared to yale’s bolt. It’s the same length so there’s gonna be some gaps after installing it.
Any suggestion for better installation or does yale also provide different bolt size?

That picture makes me think the original lock was replaced long ago, and when they put in the lock that is there now, they used that small bracket to make it look better because of the notch in your door. Take those two screws out and take another pic…

That’s actually the original lock since the house was built
The front door is the only one with the unique design as I would call it
The rest of the house has normal lock on the door

Seems like lots of people are using the YRD210 model locks. Anyone have any luck with one of the newer models without a keyway (linked to one below)? I have regular Kwikset locks on our doors, and would like to install a couple Yale deadbolts, but not have a different key if possible.

or

But won’t the backup 9-volt battery cause a lump under the welcome mat? At least the spare key isn’t so visible. :wink:

Haha, fair point. I wonder if they sell hide-a-9volt fake rocks…

1 Like

Has anyone tried to get the user code to show up in the UI? I’d like to see if I can more easily see and set the user code.

I know I can go to Configuration > Z-Wave Manager > Select Node > Node user codes, but having it on the main tab view would be very convenient.

Maybe @PhilK or @gohassgo have any thoughts?

Are you able to lock/unlock from the hass frontend?