Good idea, I’ve added it to my automations
My lock doesn’t always seem to be reporting its locked it seems the past week or so. Works most of the time, but every now and then the lock message doesn’t seem to reach zwave2mqtt. Anyone else seeing this?
phairplay,
Any chance I can see your lovelace code for Yale lock setup.
Thanks…Steely
Sure I’m away from home until tomorrow. Will post once back
I have this lock with the zigbee 2 module and found the battery life was poor in the zigbee2mqtt logs or was reporting it’s state multiple times per minutes when it was idle. I had to remove the zigbee module.
here you go.
Main card:
entities:
- entity: sensor.lock_state
- entity: lock.front_door
- entity: sensor.lock_usage
- entity: sensor.lock_battery
show_header_toggle: false
title: Front Door
type: entities
Sensor.lock_state yaml code:
- platform: template
sensors:
lock_state:
friendly_name: "Status"
value_template: >-
{% if is_state('lock.front_door', 'locked') %}
Locked
{% else %}
Unlocked
{% endif %}
icon_template: "{% if is_state('lock.front_door', 'locked') %}mdi:home-lock{% else %}mdi:home-lock-open{% endif %}"
sensor.lock_usage yaml code:
- platform: template
sensors:
lock_usage:
friendly_name: "Usage"
value_template: >
{% set lock_status = state_attr('lock.front_door','lock_status') %}
{% if lock_status == 'Manually Locked by Key Cylinder or Inside thumb turn' %}
Manually Locked
{% elif lock_status == 'Manually Unlocked' %}
Manually Unlocked
{% elif lock_status == 'Unlocked by NFC Tag or Card by user 3' %}
David
{% elif lock_status == 'Unlocked by NFC Tag or Card by user 2' %}
Vicky
{% elif lock_status == 'Unlocked by NFC Tag or Card by user 1' %}
Cleaner
{% elif lock_status == 'Auto re-lock' %}
Auto locked
{% elif lock_status == 'Unlocked by Bluetooth' %}
Bluetooth
{% elif lock_status == 'Locked by RF' %}
Remote locked
{% elif lock_status == 'Unlocked by RF' %}
Remote Unlocked
{% else %}
Manually Locked
{% endif %}
sensor.lock_battery yaml code:
- platform: template
sensors:
lock_battery:
unit_of_measurement: "%"
value_template: '{{ states.zwave.assa_abloy_yale_conexis_l1_sd_l1000_ch.attributes.battery_level }}'
friendly_name: 'Door Battery'
Unlock by:
LoveLace
card:
entities:
- input_datetime.front_door_vicky
show_header_toggle: false
title: Unlocked By
type: entities
conditions:
- entity: sensor.unlocked_by
state: Vicky
type: conditional
and one for me
card:
entities:
- input_datetime.front_door_david
show_header_toggle: false
title: Unlocked By
type: entities
conditions:
- entity: sensor.unlocked_by
state: David
type: conditional
using sensor.unlocked_by as Conditional allows me to only see the latest person to have unlocked the door, meaning I currently only see Vicky’s date and time mine it hidden
input_datetime.front_door_(person) yaml
input_datetime:
front_door_david:
name: David
has_date: true
has_time: true
front_door_vicky:
name: Vicky
has_date: true
has_time: true
sensor.unlocked_by Yaml
- platform: template
sensors:
unlocked_by:
friendly_name: "Unlocked By"
value_template: >
{%-if states.input_datetime.front_door_david.state > states.input_datetime.front_door_vicky.state -%}
David
{%-elif states.input_datetime.front_door_vicky.state > states.input_datetime.front_door_david.state -%}
Vicky
{%-elif states.input_datetime.front_door_david.state > states.input_datetime.front_door_spare_card.state -%}
David
{%-elif states.input_datetime.front_door_vicky.state > states.input_datetime.front_door_spare_card.state -%}
Vicky
{%-elif states.input_datetime.front_door_spare_card.state > states.input_datetime.front_door_david.state -%}
Spare
{%-elif states.input_datetime.front_door_spare_card.state > states.input_datetime.front_door_vicky.state -%}
Spare
{%- else -%}
Not registered
{%- endif %}
Thanks! I’m a newbie when come to templates.
Out of interest where did you find this information?
What information ?
The alarm states to tell if the lock is jammed.
Found it in this forum, think it’s in this post ?
Any idea how to automate a refresh of the node?
I would like to see the actionable buttons notifications for ios please
Sure - you’re using the latest mobile app?
Yes on both android and ios
Removed now
Thanks James. Wish we had a cross-platform notification system but this will do for now
I have just fitted the Yale smart keyless lock (not the Connexis the other one) .I currently don’t have any z wave networks only zigbee. I am just wondering is it worth going down the z wave route and is the extra functionality for the lock worth it?
I like the idea of being able to automate unlocking the door when I arrive home and possibly unlocking the door from anywhere but not sure if I would be doing much else
I’ve done just that and I’m glad I did it.
Tiny useful things:
- being able to unlock the door from the car when it rains
- being able to see who unlocked the door
- being able to know when the site hasn’t been locked and the house is therefore not safe
Who has the conexis L1? If you unlock via home assistant how long does it take to update the status in Home assistant mine is exactly 6 seconds from when the lock physically unlocks to when home assistant says it’s unlocked.
Which is quite a bit of a delay to be honest.
Some times if someone’s unlocked the door and relocks it within 6 seconds it gets stuck either as unlocked or never shows it’s been unlocked.
The response time when operating from HA is huge.