Comments (8)
from esp8266-homekit-demo.
I see the same issue, three devices using the library all work from Lan, and none available remotely, via AppleTV 4. My homebridge accessories however are available remotely, via the same AppleTV 4.
from esp8266-homekit-demo.
from esp8266-homekit-demo.
Not sure I follow fully, here is what dns-sd tells me about all the device I have on my local network, the Sonoff devices being those running ESPHK
md=Sonoff pv=1.0 id=08:D1:89:5C:60:F1 c#=1 s#=1 ff=0 ci=1 sf=0
md=Sonoff_2C3AE807149F pv=1.0 id=C2:21:A2:25:1B:D8 c#=1 s#=1 ff=0 ci=1 sf=0
md=Sonoff_6001943EC103 pv=1.0 id=A1:C5:63:E5:05:ED c#=1 s#=1 ff=0 ci=1 sf=0
md=Homebridge pv=1.0 id=CC:22:3D:E3:CE:30 c#=2 s#=1 ff=0 ci=2 sf=0
md=Homebridge2 pv=1.0 id=CC:22:3D:E3:CE:31 c#=2 s#=1 ff=0 ci=2 sf=0
One other thought, the code is re-advertising the mdns stuff every 3 seconds, which has the effect of flushing caches, from what I've read, the gap between advertisements is meant to rise exponentially, any idea if this be having an impact ?
from esp8266-homekit-demo.
when I wrote "multiple devices being able to connect" they are 1 iPad and two iPhones and about 10 months ago... Maybe you thought I meant accessories, but I only have 1 (and not enough time to spend on this project ;-)
That is an interesting thought about mdns.
So far I have not catered for the exponential slow down. At the same time I consider that a long space between advertisements is not nice when you just return to your home network and want to switch on the light in the hall. If it takes 1 minute to even learn the existence of your lamp, how will that result in a happy user? Or do we expect that until that moment the Homehub will take care?
Nevertheless, maybe you could change the repeat timer of the mdns to 1 minute and see if you see improvements?
from esp8266-homekit-demo.
Sorry for the confusion, I meant accessories, controlling from multiple IOS devices has always worked through the sharing feature of home kit.
I believe so long as you have a hub that is home, then it should work ok, without a wait to discover accessories, here's the apple documentation on bonjour:- https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/NetServices/Articles/about.html section "Exponential Back-off and Service Announcement"
Further update, it would appear that two of the three accessories are now working locally and remotely. I had to clear down all homes and re-add all accessories approximately 12 hours ago, I also had to factory reset one device this morning, so looks like there is some kind of delay in the remote part working, the tow that were reset last night being the tow that work local and remote, the one reset this morning not working remotely, which I hope will become accessible with a little patience
from esp8266-homekit-demo.
OK, I've done some searching in wireshark and it appears that now the iPhone actively queries the accessories it has registered. This means that it would be good if we start making real mdns messages instead of the flooding approach.
Like I said, I haven't got time these days, but if someone would be interested, then start by discussing the way you think to approach it and if people agree we can incorporate it.
Main challenge, do not use a lot of RAM, we have an issue there already. Adding ESPHK #32
from esp8266-homekit-demo.
just pushed branch real-mdns
Please test?
from esp8266-homekit-demo.
Related Issues (20)
- ls: cannot access '../../bin/eagle.[if]*': No such file or directory HOT 3
- Clear installation guide HOT 4
- Can not pair on IOS 11 HOT 7
- Set accessory name to include Mac address to make unique HOT 3
- Temperature sensor HOT 3
- AiLight - user_main.c:70:1: error: unknown type name 'acc_item' HOT 1
- Pairing failing on AiLight HOT 1
- I can add WS8212 LED STRIP
- Possible issue in GPIO.C HOT 1
- Thermostat Sensor example HOT 3
- Demo$ ./gen_misc.sh don't work HOT 3
- DHT sensor HOT 1
- Flash memory map HOT 1
- Invert value of cJSON struct HOT 2
- Stepper delay HOT 1
- Linker cannot find -lmesh HOT 3
- Only one user able to pair? HOT 1
- how to flash help HOT 2
- It works fine, but why my log always garbled? HOT 1
- AiLight HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-homekit-demo.