Closed delfick closed 2 years ago
weird. zeroconf bug?
Dunno. I just saw it, so I figured I'd log it for one of us to look at later. I'm busy working on the thing that needs this thing, so I'll likely have a poke at it at some point.
It looks like it's either a ZeroConf or UniFi mDNS reflector issue. Will look deeper later.
Updated to match RFC and other implementation standards after spending way too long staring at the output of dns-sd
.
weird. zeroconf bug?
Known issue: https://github.com/jstasiak/python-zeroconf/issues/993
where did we get with whether this is viable?
Last I recall, it works. We were disagreeing over network interface selection semantics.
On an only-ever-so-slightly-related but very ironic note, I think bad network interface selection is what's causing most of the issues with the current LIFX integration for Home Assistant.
ah yeah. lol.
I thought a problem here was that if interactor and hass were on the same box they can't both be a zeroconf server or something?
On Sat, 8 Jan 2022, 8:02 am Avi Miller, @.***> wrote:
On an only-ever-so-slightly-related but very ironic note, I think bad network interface selection is what's causing most of the issues with the current LIFX integration for Home Assistant.
— Reply to this email directly, view it on GitHub https://github.com/delfick/photons/pull/79#issuecomment-1007738091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2V5M7S6LPNVDGFL3LWVTUU5IFHANCNFSM5HPOGPIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
ah yeah. lol. I thought a problem here was that if interactor and hass were on the same box they can't both be a zeroconf server or something?
No idea where this idea came from. We need Interactor to send mDNS/zeroconf broadcasts so that Home Assistant can see it. There may have been another disagreement over the amount of data we send.
I swear I saw something that made this seem unviable. If you say it's fine, then I'll believe you, can always revert if not the case hahah.
This PR seems fine, do you see problems with merging?
I haven't looked at it for a while, but as long as the tests still pass, I think we're good. We could switch it to disabled by default so it's essentially a no-op until enabled?
makes sense
While playing with something else, Interactor decided to stop playing after reporting this warning:
~I didn't look carefully, but Interactor shouldn't be listening for Zeroconf, just advertising.~
Once started, Zeroconf is responsible for answering requests for services until Interactor shuts down, so this requires further investigation. Either Zeroconf is breaking on a valid packet, or something is sending a weird packet that we need to protect against.