Dear fellow developers
I would like to integrate a smart lock (danalock v3) with the alarm system, so that I can control the lock via the alarm system. The alarm provides outputs via relays. If danalock had a key fob, I would wire key fob buttons via relays of the alarm system to control the lock. Howe we the key fob is not a product offered by the smart lock manufacturer.
As the lock supports zigbee protocol, I am thinking to use nRF52840 as an intermediary between the smart lock and the alarm system. In other words, nRF52840 would be a key fob, that controls the smart lock over zigbee. I would then wire the relays of the alarm system to nRF52840 inputs, so that these could be used to trigger commands over zigbee to lock and unlock danalock.
Based on the example Zigbee CLI Agent example it looks like a single nRF52840 can be both coordinator and router at the same time. So here is my question: is it possible to modify that example so that the single /same nRF52840 board performs the following:
a) create a zigbee network in include the smart lock as an endpoint; store network configuration
b) store network configuration in non volatile memory so that after a power failure and restart of nRF52840, no new network set up would be required (repeated inclusion or pairing with the smart lock is avoided)
b) send commands (lock / unlock) to the end point (smart lock), based on the state change of input pins of nRF52840 controlled by alarm relays
Is this achievable, and how complicated would be to make modifications to the firmware of nRF52840?
Do I need to obtain any proprietary information for the smart lock manufacturer to realize that?
I plan to use the following board:
I would appreciate any constructive advise.
Kind regards,
Andrew