kysdaddy
(Charles Willis)
April 3, 2019, 2:00pm
1
Hello, I am having trouble getting the Battery Status, Lock status and lock switch
zwave.kwikset_touchpad_electronic_deadbolt
ready
node_id: 10 node_name: Kwikset Touchpad Electronic Deadbolt manufacturer_name: Kwikset product_name: Touchpad Electronic Deadbolt query_stage: Complete is_awake: true is_ready: true is_failed: false is_info_received: true max_baud_rate: 40000 is_zwave_plus: false capabilities: frequent,beaming,routing neighbors: 1,5,6,7,8,11,26 sentCnt: 10 sentFailed: 0 retries: 0 receivedCnt: 7 receivedDups: 0 receivedUnsolicited: 0 sentTS: 2019-04-03 09:42:50:597 receivedTS: 2019-04-03 09:42:53:210 lastRequestRTT: 2586 averageRequestRTT: 2370 lastResponseRTT: 2614 averageResponseRTT: 1747 battery_level: 70 friendly_name: Kwikset Touchpad Electronic Deadbolt
I know that HA knows the status I just can’t get it to show on a card, in entities all I see is the lock and alarms…
any assistance is appreciated.
Chas
kylerw
(Kylerw)
April 3, 2019, 4:15pm
2
Create a template sensor. Here is the package I use which has an example:
zwave_lock_package:
sensor:
- platform: template
sensors:
front_door_lock_battery:
friendly_name: 'Front Door Lock Battery'
value_template: '{% if states.zwave.front_door_lock %}
{{ states.zwave.front_door_lock.attributes.battery_level }}
{% else %}
unknown
{% endif %}'
unit_of_measurement: '%'
# entity_id: zwave.front_door_lock
icon_template: >-
{% set battery_level = states('sensor.front_door_lock_battery')|int('unknown') %}
{% set battery_round = (battery_level|int / 10)|int * 10 %}
{% if battery_level == 'unknown' %}
mdi:battery-unknown
{% else %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
{% endif %}
front_door_lock_status:
friendly_name: 'Front Door Lock Status'
value_template: >-
{% if is_state("sensor.front_door_lock_alarm_type","18") or is_state("sensor.front_door_lock_alarm_type","19") %}
Keypad{% if is_state("sensor.front_door_lock_alarm_type","19") %} ({{ states.sensor.front_door_lock_alarm_level.state }})
{% endif %}
{% elif is_state("sensor.front_door_lock_alarm_type","21") or is_state("sensor.front_door_lock_alarm_type","22") %}
Manual
{% elif is_state("sensor.front_door_lock_alarm_type","24") or is_state("sensor.front_door_lock_alarm_type","25") %}
ZWave
{% elif is_state("sensor.front_door_lock_alarm_type","27") %}
Auto
{% elif is_state("sensor.front_door_lock_alarm_type","112") %}
Update ({{ states.sensor.front_door_lock_alarm_level.state }})
{% endif %}
# entity_id: sensor.front_door_lock_alarm_type
# ## Alarm Type
# 18: Keypad Lock
# 19: Keypad Unlock
# 21: Manual Lock
# 22: Manual Unlock
# 24: ZWave Lock
# 25: ZWave Unlock
# 27: Auto Lock
# 112: Master Code Chaged or User Added
# ###############
# ## Alarm Level
# Set to the User Code that Unlocked the Door (Alarm Type 19)
# Set to the User Code that was added (Alarm Type 112)
homeassistant:
customize:
lock.front_door_lock_locked:
friendly_name: Front Door Lock
sensor.front_door_lock_battery:
friendly_name: Front Door Lock Battery
sensor.front_door_lock_alarm_level:
hidden: true
group:
group.front_door_lock:
friendly_name: Alarm Level
sensor.front_door_lock_alarm_type:
hidden: true
# sensor.front_door_lock_status:
group:
front_door_lock:
name: Front Door Lock
entities:
- lock.front_door_lock_locked
- sensor.front_door_lock_status
- sensor.front_door_lock_battery
# - sensor.front_door_lock_alarm_level
# - sensor.front_door_lock_alarm_type
icon: mdi:lock-outline
# icon_template: >-
# {% if is_state("lock.front_door_lock_locked","Unlocked") %}
# mdi:lock-open-outline
# {% else %}
# mdi:lock-outline
# {% endif %}
kysdaddy
(Charles Willis)
April 5, 2019, 5:52pm
3
This looks great but I am lost on what to do with it.
kylerw
(Kylerw)
April 5, 2019, 6:44pm
4
you can either pull out the sensor
portion of that and add it to your configuration.yaml or you can use packages like I do and add it to your packages section of the configuration.yaml.
kysdaddy
(Charles Willis)
April 5, 2019, 10:56pm
5
Thank you, I - well actually you got it working.
Thanks so much.
CHas
kysdaddy
(Charles Willis)
July 29, 2020, 9:38pm
6
Hello All,
Well a year has passed and over that time the locks have quit responding to home assistant.
And the Battery shows up but with no information.
I have removed the nodes and re-added them, the entities show up 4 for each Lock.
But I can’t seem to get them to respond. Originally they were Node 37.38.39 now they are 100,101,102
I am running Unraid on a Dell 710 using a Zooz Zst10 S@ Z-wave Plus USB Stick.
Any and all suggestions and help will be appreciated.
Chas
kysdaddy
(Charles Willis)
August 2, 2020, 5:47pm
8
For anyone else having this issue.
My original config.yaml had the Network Key commented out, I have no idea why I had done that but I am confident that I did.
to get these lock working I needed to reverse that so that the network key was active, then remove all three nodes and include them once again.
once that was complete I went from having 3 entities per node to 5 entities per node, with the Battery percentage working and the locks responding.
Just an FYI