Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
366 stars 50 forks source link

Humidity Sensor #20

Closed mdaxter closed 7 years ago

mdaxter commented 7 years ago

This adds a humidity sensor and also fixes minor visibility issues where where the current temperature of the temperature sensor was not accessible. This change also makes the constructor of the Accessory open class public so that can actually be subclassed outside the module.

Bouke commented 7 years ago

Great PR, thank you! How's the library working out for you? How are you using it, if you don't mind me asking?

mdaxter commented 7 years ago

It's very nice, I prefer Swift a lot over Go (which I have been using so far for bridging)! The only thing that still seems to cause some issues is re-connecting, particularly when restarting the HAP server. This often requires me to completely remove the bridge and re-pair it.

mdaxter commented 7 years ago

Further to this, it looks like the re-connection issue is gone now (I removed the persistent storage and re-created it). I put my SonoffTasmotaHAP project on my github page if you are interested.