I had 2 kwikset 914 that did not reflect manual unlock changes. Found solutions everywhere, just brig them togheter here. My kwikset were discoverd with new Zwave JS with 2 disabled sensor: one was for the numeric state of the lock. Afert re-enabling them, I was able to use this automation to synch to lock, to the state, matching the manual lock knob state. Thanks to those guys work !
ref : Secure Lock Not Updating Status?
Automation to resynch the lock after a manual change :
# remove this id if you use in configuraiton.yaml. This code is placed in automations.yaml
- id: 'a4e6882739204d6790dd4f998a01ad01'
alias: "Synchronisation état de serrure entrée principale"
trigger:
platform: state
entity_id: sensor.smart_code_with_home_connect_technology_alarmtype_2
action:
- delay:
seconds: 30
- service: >
{%- if ( (trigger.to_state.state == "19") or
(trigger.to_state.state == "22") or
(trigger.to_state.state == "25") )
-%}
lock.unlock
{%- else -%}
lock.lock
{% endif %}
entity_id: lock.smart_code_with_home_connect_technology_current_lock_mode_2
###########################
And the other part is to create a sensor template that will use the sensors numeric states of the lock and transform them into text state. Thanks to dukeplc!
# place in configuration.yaml
# Kwickset
sensor:
- platform: template
sensors:
etat_serrure_entree_principale:
friendly_name: "Etat serrure entrée principale"
value_template: >-
{% if is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2', '18') %}
Vérouillé par clavier
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2', '19') %}
Dévérouillé par code au clavier
"{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2', '112') %}
Nouveau code usagé ajouté
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2', '162') %}
Tentative d'accèss en dehors de la cédule
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','22') %}
Dévérouillé manuellement
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','21') %}
Vérouillé manuellement
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','27') %}
Auto vérouillage réussi
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','17') %}
Vérouillé au clavier, bloqué
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','26') %}
Auto vérouillage, bloqué
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','23') %}
Sécurisé par Zwave, bloqué
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','24') %}
Sécurisé par Zwave, réussi
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','25') %}
Dévérouillé par Zwave, entièrement rétracté
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','32') %}
Tous les codes utilisateurs supprmés
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','161') %}
Échec du code utilisateur au clavier
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','167') %}
Batterie faible
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','168') %}
Batterie critique
{% elif is_state('sensor.smart_code_with_home_connect_technology_alarmlevel_2', '1') and is_state('sensor.smart_code_with_home_connect_technology_alarmtype_2','169') %}
Batterie trop faible pour opérer
{% endif %}
### enjoy translating back to english or look here for the english version : https://www.youtube.com/watch?v=DbxBHlo6KiQ