Thanks a lot. I really appreciate it! You made me trying hard to find to get it done by myself. It’s really fun, I am a total beginner though.
I managed to find out the individual lockActionEvent parameters I need to trigger the stateless programmable switch (e.g. 3,0,1451693983,6,). I set up different keypad codes / fingers. I can also see the switch in homebridge. I unfortunately didn’t solve the challenge to find the right code. The error message I get in the log is:
[Smart lock] Warning: switch received 3,0,1451693983,6,2 which is not in configured values {"1": 0, "2":1, „L“:2}.
Here is one of my wrecked attempts:
{
"accessory": "mqttthing",
"type": "statelessProgrammableSwitch",
"name": "Smart lock",
"url": "mqtt://XXX.XXX.XXX.XX",
"username": "XXXX",
"password": "XXXXXXXX",
"topics": {
“getSwitch”: {
“topic”: “nuki/NUKI_LOCK_ID/lockActionEvent”,
“apply”: “if (message == ‘3,0,1451693983,6,2’) { return 1 }”
}
}
},
Could you please help me out?