Is the samsung’s smartthing frontend better than vera?
the stick is plugged in to my raspberry pi which is also running HA. I never had any hub other than HA and I only have that model but I assume it should work for all models from Yale.
May I know which yale lock model you’re using?
I probably just gonna grab the same one like yours just to be safe
I don’t know jajaja, just bought a vera because i read somewhere that it worked. I think i have the YRD210
Thanks,
Could I just get this z-wave/zigbee stick instead of aotech since it’s cheaper?
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.
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?
@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…
This is what I get in the States page
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