@ross-shirer Thanks for bring this topic alive as I had not seen this before and it was just what i was looking for the basis of another project.
I have thrown together a quick test node and it is working all fine with openHAB.
The instructions for use are included within the program Summary block.
1. A local database with Card id's is kept in the node. Card id 0 is the "master master" card. With the master card you can:
- Open the door lock (just present it)
- Include other cards (present it twice and present the new card)
- Delete cards (present it three times, present the card to be deleted and confirm with master card)
- Browse the cards (present it four times), the display shows the card indexes with their status.
So the MasterCard is needed to enable the other cards. Swipe the master card twice and then swipe the new card.
Remember to comment the eprom clear command after first run otherwise the non MasterCard data will be lost on reboot. As i did not do that at first, so caused a few minutes delay.
//cardDB.initDB(); // ONLY in the first run to clear the EEPROM store (comment later)
Working fine for me with nine cards, tenth card unlocks ok but report status is incorrect.
More than ten are not accepted by the program due to EPROM size limits. (time to add serial memory)