For my use I simple created a sensor in yaml to log last user.
But with the latest integration all the properties are available without creating a sensor. Even “The last door user” is available.
Not sure what the real question is… sorry.
For my use I simple created a sensor in yaml to log last user.
But with the latest integration all the properties are available without creating a sensor. Even “The last door user” is available.
Not sure what the real question is… sorry.
Hi Geoff,
sorry for being not so clear. I do not have the overview to see the last door user. I have also checked with the latest integration, and it still looks like I need to create the sensor, as all I have now is the below:
Hi All,
I have been using this lock with the Yale zwave module and find it excellent. I have a separate docker container with a Aotec zwave stick running zwaveJs that talks to HA via the websocket. One thing I cannot see how to do is to update the battery status. It stays the same until I logon to the ZwaveJS UI and do a battery refresh - is there a way to get this done say once a day?
It is probably answered, but I must have missed it!
Thanks
mb
EDIT: Just found out how (Always the way!).
For those that are in the same boat, in the UI go to settings and expand General. Create a new value
(all from dropdowns) and enable polling. I have set mine at every 12 hours
Sorry if repeating stuff already known!
mb
@Prash I see what you mean. You are looking for away to display who unlocked the door.
template_last_door_user:
friendly_name: "Last Door User"
value_template: >-
{% if states('input_number.door_lock_user_code') | int == 1 %}
Master
{% elif states('input_number.door_lock_user_code') | int == 2 %}
Geoff
{% elif states('input_number.door_lock_user_code') | int == 3 %}
Alison
{% elif states('input_number.door_lock_user_code') | int == 4 %}
Guest
{% elif states('input_number.door_lock_user_code') | int == 5 %}
Jimmy
{% elif states('input_number.door_lock_user_code') | int == 6 %}
Emily
{% else %}
unassigned
{% endif %}
The next question is where does the input_number.door_lock_user_code
come from.
I have an automation to set it:
alias: Door Lock User Code
description: User Code from front door lock
trigger:
- platform: event
event_type: zwave_js_notification
condition:
- condition: template
value_template: "{{ trigger.event.data.device_id == 'xxxxxxxxxxxxxxxxxxxxxx'}}"
- condition: template
value_template: "{{ trigger.event.data.event == 6 }}"
action:
- service: input_number.set_value
data_template:
entity_id: input_number.door_lock_user_code
value: "{{ trigger.event.data.parameters.userId | int}}"
mode: single
For more information about zwave events look here.
Good luck.
Thank Geoff, where do I add the template? And also the device_id, where can I get hold of that value?
@Prash sorry for the delay in getting back to you. I don’t have notifications turned on for the forum.
Both are good questions.
The device_id comes from the tail of the device page. Goto Settings → Devices → Conexis L1.
The url will look something like https://ha-url/config/devices/device/device_id
The device_id, in my instance, is a long hex-decimal string.
I have added template_last_door_user to my sensors.yaml file.
In automations,yaml I have added the following code:
- id: '1640264841577'
alias: Door Lock Status
description: Status of front door lock
trigger:
- platform: event
event_type: zwave_js_notification
condition:
- condition: template
value_template: '{{ trigger.event.data.device_id == ''device_id''}}'
action:
- service: input_text.set_value
data_template:
entity_id: input_text.door_lock_status
value: '{{ trigger.event.data.event_label }}'
mode: single
- id: '1640265363278'
alias: Door Lock User Code
description: User Code from front door lock
trigger:
- platform: event
event_type: zwave_js_notification
condition:
- condition: template
value_template: '{{ trigger.event.data.device_id == ''device_id''}}'
- condition: template
value_template: '{{ trigger.event.data.event == 6 }}'
action:
- service: input_number.set_value
data_template:
entity_id: input_number.door_lock_user_code
value: '{{ trigger.event.data.parameters.userId | int}}'
mode: single
You will need to fix up the id’s and device_id.
Good luck