Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pair with Apple Home app? #79

Open
overheat opened this issue Nov 8, 2022 · 1 comment
Open

How to pair with Apple Home app? #79

overheat opened this issue Nov 8, 2022 · 1 comment

Comments

@overheat
Copy link

overheat commented Nov 8, 2022

After cargo run --example occupancy_sensor, what should I do if I want to pair with my Home app on iPhone?

[2022-11-08T01:35:26Z INFO  hap::transport::http::server] binding TCP listener on [fdc1:6f78:d22f:4620:f5:a750:dbc9:28c1]:32000
[2022-11-08T01:35:26Z DEBUG hap::transport::mdns] attempting to set mDNS records
[2022-11-08T01:35:26Z DEBUG hap::transport::mdns] setting mDNS records: ["c#=2", "ff=0", "id=0a:14:1e:28:32:3c", "md=Acme Occupancy Sensor", "pv=1.0", "s#=1", "sf=1", "ci=10"]

Thanks.

@vallentin
Copy link

So I am by no means an expert, and only just started playing around with this library myself. But when I did cargo run --example switch on a computer with WiFi and ensuring that the server was available on my local network.

Then when I clicked "Add Accessory" in the Home app, then it appeared automatically. After selecting the accessory, the pin code I was prompted, was simply the pin in the example code, i.e.:

pin: Pin::new([1, 1, 1, 2, 2, 3, 3, 3])?,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants