Hey Guys,
I am looking around to try and learn how to write a protocol for a new device. I have searched the forum and the web and can’t find any instructions to get me started. Could anyone help?
Device: Swann Doorbell
Link: http://www.swann.com/uk/swhom-dc820p2
When I press the doorbell I get the following debug…
15:49:14debug [pimatic-homeduino]: received: [ 504, 1472, 17912 ] 100101100101010101010110101001100101100101011002
15:49:14debug [pimatic-homeduino]: data: "RF receive 1472 504 17912 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:14debug [pimatic-homeduino]: received: [ 508, 1472, 17912 ] 100101100101010101010110101001100101100101011002
15:49:14debug [pimatic-homeduino]: data: "RF receive 1472 508 17912 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:13debug [pimatic-homeduino]: received: [ 504, 1472, 17912 ] 100101100101010101010110101001100101100101011002
15:49:13debug [pimatic-homeduino]: data: "RF receive 1472 504 17912 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:13debug [pimatic-homeduino]: received: [ 504, 1472, 17908 ] 100101100101010101010110101001100101100101011002
15:49:13debug [pimatic-homeduino]: data: "RF receive 1472 504 17908 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:13debug [pimatic-homeduino]: received: [ 504, 1476, 17916 ] 100101100101010101010110101001100101100101011002
15:49:13debug [pimatic-homeduino]: data: "RF receive 1476 504 17916 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:13debug [pimatic-homeduino]: received: [ 504, 1472, 17920 ] 100101100101010101010110101001100101100101011002
15:49:13debug [pimatic-homeduino]: data: "RF receive 1472 504 17920 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:12debug [pimatic-homeduino]: received: [ 504, 1472, 17912 ] 100101100101010101010110101001100101100101011002
15:49:12debug [pimatic-homeduino]: data: "RF receive 1472 504 17912 0 0 0 0 0 011010011010101010101001010110011010011010100112"
15:49:12debug [pimatic-homeduino]: received: [ 504, 1472, 17916 ] 100101100101010101010110101001100101100101011002
15:49:12debug [pimatic-homeduino]: data: “RF receive 1472 504 17916 0 0 0 0 0 011010011010101010101001010110011010011010100112”
I can see protocols are stored in folder /pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/rfcontroljs/lib
I looked at doorbell1.js but I am not sure what to do from here - I guessed I might be able to copy this into doorbell2.js and modify to test…
Where do I go from here? Let me know if I have missed a guide somewhere.