Closed xCite1986 closed 8 years ago
Thanks for you PR. Note however, the protocol must be written in Coffeescript. The JS will be generated. Moreover, you should add test cases for your protocol. See https://github.com/pimatic/rfcontroljs#adding-a-new-protocol for details
EDIT: If you're not familiar with Cofeescript, I can help you. However, I would need some example debug log output to write the tests. Please add the output to this ticket.
waiting for coffee file and tests.
@mwittig
I'm sorry, I 'm not familiar with coffee script. with my experience I destroy so only my pimatic-homeduino ^^
you could find some debug-outputs in my issue
https://github.com/pimatic/rfcontroljs/issues/36
short summary what I've done: the pir was detected as switch6 and switch8, so I've taken this protocol, clone'd it and rewrite to a pir...
I have implemented the coffeescript files and add them to your fork for futher reference. Unfortunately your protocol cannot be decoded with the test data I found in #36 If you have chance to investigate this please do some testing on your fork or get back to me with more test data. I am closing the PR for now.
Added Protocol pir6.js for this type of PIR's and window-contact-sensors