lockActionEvent wird nicht immer gesendet

Hallo, ich habe Probleme mit meinem Nuki Pro Gen5 und mqtt. ich habe das Nuki oer Thread und mqtt mit Homeassistant verbunden. Das funktioniert auch soweit. Jetzt möchte ich aber auslesen wer die Tür geöffnet hat. Hierzu habe ich jetzt einen Sensor in Homeassistant eingerichtet

mqtt:
  # Nuki Türschloss
  - sensor:
      - name: "Nuki Haustür Letzte Aktion" 
        state_topic: "nuki/nukiID/lockActionEvent" 
        unique_id: "nuki_haustuer_letzte_aktion"
        icon: "mdi:door-closed-lock" 
        value_template: >
          {% set parts = value.split(',') %}
          {% set action_id = parts[0] %}
          {% set status_map = {
            '1': 'aufgeschlossen',
            '2': 'abgeschlossen',
            '3': 'Tür geöffnet',
            '4': 'Lock ‘n’ Go (aktiviert)',
            '5': 'Lock ‘n’ Go mit Unlatch (deaktiviert)',
            '6': 'Vollständig verriegelt',
            '80': 'FOB (ohne Aktion)',
            '90': 'Button (ohne Aktion)'
          } %}
          {{ status_map.get(action_id, 'Unbekannte Aktion ID: ' + action_id) }}

Aber dieser wird nicht bei jeder Öffnung befüllt. Woran kann das liegen ?



Lieben Gruß und Vielen Dank schonmal Jörg

Es scheint auch als wenn Auth-ID nicht mehr 3.ter Stell, sondern an vierter Stelle steht.

The content of this topic is always the information of the latest lock action. The value is not cleared after the lock action.
Also your sensor does not reset its value to “no action” so I assume it just remains at “Tür geöffnet”.

You may use MQTT explorer or something similar to monitor the topic when performing multiple actions in a row.
The topic will be updated every time but your sensor will remain at “Tür geöffnet” if no other action is performed in between.

Alles klar, Danke für die Info, habe ich jetzt auch bereits rausgefunden.
Man muss dann um eine Automation auszulösen das Attribut “Last event time” nutzen, dann kann man hierüber jedes mal eine Automation auslösen

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.