mtrudel / hap

A HomeKit Accessory Protocol (HAP) Implementation for Elixir
MIT License
91 stars 9 forks source link

Demo only works once #145

Closed teovoinea closed 2 weeks ago

teovoinea commented 3 months ago

I had setup the demo in nerves livebook and HAP printed the connection code, the Home App identified the accessory, but at connection time a but in my code caused a failure. Ever since, HAP no longer prints the connection code after starting the accessory server. I've tried reflashing, restarting, killing the process.

It's definitely an issue on my end, I just don't know how to reset/restart for debugging purposes.

mtrudel commented 3 months ago

Flaky pairing is unfortunately a fact of life with HomeKit; 'just try it again' is my usual advice. There are a couple of things to note though:

Thinking about this, I wonder if a HAP.reset_pairing function would be useful for such cases, that would remove any of the persistent information / pairing data and reset the device to a clean slate. WDYT?

teovoinea commented 3 months ago

reset_pairing would be a great addition!

mtrudel commented 2 weeks ago

Added in 0.6.0, just released