hap-java / HAP-Java

Java implementation of the HomeKit Accessory Protocol
MIT License
153 stars 82 forks source link

Added support for motion sensors and contact sensors #13

Closed gdombiak closed 8 years ago

gdombiak commented 8 years ago

I couldn't wait until the weekend so here are my changes for adding motion sensors and contact sensors support. I tested this and things appear correctly in HomeKit apps.

In a future PR I will explore adding support for battery status. That information does not seem to be that accurate in my zwave sensors so it is low priority for now.

If you want me to create 2 PRs, one for motion sensor and one for contact sensor let me know.

Thanks, Gaston

andylintner commented 8 years ago

Awesome - looks great. Thanks for the contribution!