We use the lock from mobile phones with bluetooth (danalock app) and z-wave over HA.
Here is the Flow for Node-RED:
[{“id”:“77112855.2f17b”,“type”:“tab”,“label”:“Flow 1”,“disabled”:false,“info”:""},{“id”:“98ee4b6f.3cdbc”,“type”:“time-range-switch”,“z”:“77112855.2f17b”,“name”:“20:00 - 06:00 Uhr”,“lat”:"",“lon”:"",“startTime”:“20:00”,“endTime”:“06:00”,“startOffset”:0,“endOffset”:0,“x”:1110,“y”:220,“wires”:[[“d29fec46.13c3b”],[]]},{“id”:“494ee6d5.0be458”,“type”:“poll-state”,“z”:“77112855.2f17b”,“name”:"",“server”:“7ef0ac76.c23934”,“updateinterval”:“60”,“outputinitially”:false,“outputonchanged”:false,“entity_id”:“lock.polycontrol_danalock_v3_btze_locked_2”,“state_type”:“str”,“halt_if”:“locked”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:2,“x”:760,“y”:220,“wires”:[[“98ee4b6f.3cdbc”],[]]},{“id”:“575f8e9.ef54e7”,“type”:“delay”,“z”:“77112855.2f17b”,“name”:"",“pauseType”:“delay”,“timeout”:“10”,“timeoutUnits”:“seconds”,“rate”:“1”,“nbRateUnits”:“1”,“rateUnits”:“second”,“randomFirst”:“1”,“randomLast”:“5”,“randomUnits”:“seconds”,“drop”:false,“x”:1510,“y”:220,“wires”:[[“4d7b56ae.069b48”]]},{“id”:“4d7b56ae.069b48”,“type”:“api-call-service”,“z”:“77112855.2f17b”,“name”:"",“server”:“7ef0ac76.c23934”,“service_domain”:“lock”,“service”:“lock”,“data”:"{“entity_id”:“lock.polycontrol_danalock_v3_btze_locked_2”}",“mergecontext”:"",“output_location”:“payload”,“output_location_type”:“msg”,“x”:1700,“y”:220,“wires”:[[]]},{“id”:“d29fec46.13c3b”,“type”:“api-current-state”,“z”:“77112855.2f17b”,“name”:“Door open?”,“server”:“7ef0ac76.c23934”,“outputs”:2,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:false,“entity_id”:“binary_sensor.sensative_strips_sensor”,“state_type”:“str”,“state_location”:“payload”,“override_payload”:“msg”,“entity_location”:“data”,“override_data”:“msg”,“x”:1310,“y”:220,“wires”:[[“575f8e9.ef54e7”],[]]},{“id”:“7ef0ac76.c23934”,“type”:“server”,“z”:"",“name”:“Home Assistant”,“legacy”:false}]
In the night lock flow, there is a check if the door is open - at the beginning the door always locks if the door was open - not so fine, if you will close the door