I've updated the index.js to allow for a Motion Sensor to be wired to the GPIO pins rather than just Contact Sensor. This adds a new variable to the config.json wehreby you set a "type" : "ContactSensor" or "type" : "MotionSensor" for each pin. I'm not familiar enough with GitHub to properly add this as a pull request. I'll try to figure that out, but in the meantime, I've attached the modified index.js and an example configuration file for those interested.
I've updated the index.js to allow for a Motion Sensor to be wired to the GPIO pins rather than just Contact Sensor. This adds a new variable to the config.json wehreby you set a "type" : "ContactSensor" or "type" : "MotionSensor" for each pin. I'm not familiar enough with GitHub to properly add this as a pull request. I'll try to figure that out, but in the meantime, I've attached the modified index.js and an example configuration file for those interested.
MotionSensor Update.zip