Thank you very much. Trying to configure HA makes me feel so stupid. …
So I create the Helper (input_text.unlocker); Configuration > Helpers > + ADD HELPER, and name it unlocker.
I go Configuration > Automations > + ADD AUTOMATION, and then I click ‘START WITH AN EMPTY AUTOMATION’, and then I go to the top right an select ‘Edit in YAML’. Inserting your code there, just pasting it raw - gives me an error message ‘Message malformed: expected dictionary’.
Trying to decifer the various bits using the visual editor, I have ended up with this code:
alias: Unlock
description: ''
trigger:
- platform: event
event_type: zwave_js_notification
event_data:
node_id: 10
event_label: Keypad unlock operation
condition: []
action:
- service: input_text.set_value
data:
value: >
{% set mapper = {
0:'Your user name',
1:'xxxxxx',
2:'xxxxxx',
3:'xxxxxx',
4:'xxxxxx',
5:'xxxxxx',
6:'xxxxxx'} %}
{% set selection = trigger.event.data.parameters['userId'] %} {{
mapper[selection] if selection in mapper else 'error' }}
target:
entity_id: input_text.unlocker
mode: single
This do not work as intended; I can manually type in characters in that text box, which then alters the History. But this does not work automatically. …
Now, I think the culprit is that the door is not sending UserId. Or sending much Information at all. Looking through debug messages in zwavejs2mqtt, it only shows these types of events:
2021-11-28 21:19:36.320 INFO ZWAVE: Node 10 CC Notification {
type: 6,
event: 1,
label: 'Access Control',
eventLabel: 'Manual lock operation',
parameters: undefined
}
Opening the door from Apple Home app / Home Assistant (unlock), shows this DEBUG message:
2021-11-28 21:25:37.185 INFO ZWAVE: Node 10 CC Notification {
type: 6,
event: 4,
label: 'Access Control',
eventLabel: 'RF unlock operation',
parameters: <Buffer 00>
}
But I would really appreciate it if someone could give me a screenshot of all their entities in HA regarding this IDLock 150.