maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
809 stars 233 forks source link

Can not add accessory to home. #286

Closed kemkriszt closed 4 years ago

kemkriszt commented 4 years ago

I followed the tutorials to compile and flash one of the examples. The only thing I changed in code was wifi.h and this line .setupId="1QJ9" in the server config.

Then I generated a qr code with /usr/local/opt/python/libexec/bin/python tools/gen_qrcode 5 123-12-151 1QJ9 qrcode.png

Meanwhile I got this output from the esp:

Opening /dev/tty.usbserial-1410 at 115200bps...
pp_task_hdl : 3ffefdd8, prio:14, stack:512
pm_task_hdl : 3ffef840, prio:1, stack:176
frc2_timer_task_hdl:0x3fff3e68, prio:12, stack:200

ESP-Open-SDK ver: 0.0.1 compiled @ Dec 13 2019 21:53:15
phy ver: 273, pp ver: 8.3

mode : sta(84:f3:eb:dc:dd:34)
add if0
>>> HomeKit: Starting server
>>> HomeKit: Using existing accessory ID: 61:06:A1:2C:86:CD
>>> HomeKit: Configuring mDNS
mDNS announcement: Name=Sample LED-6106md=MyLEDpv=1.0id=61:06:A1:2C:86:CDc#=1s#=1ff=0sf=1ci=5
                                                                                             sh=M3tP5w== Port=5556 TTL=4500
scandone
add 0
aid 1
cnt

connected with kemkriszt, channel 5
dhcp client start...
ip:192.168.1.6,mask:255.255.255.0,gw:192.168.1.1

But when I scan the QR, nothing happens. My iPhone says that the accessory can not be found and I can see no logs from esp about any connection attempt.

I've tried multiple iOS devices as well as restarting my router/devices.

Any idea?

kemkriszt commented 4 years ago

Ok, I’ve just realized that there is an other issue sayin the same thing so I’m gonna close mine.