-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[govee] Thing discovery not working #17823
Comments
@stefan-hoehn ping.. |
I am actually pretty limited in time currently and I already put like more than an hour into it to find out what root cause might be. The problem is that I cannot reproduce it on my side as it works well. It might be related that you have a windows 10 setup that I don't have (I am on Linux) with multiple interfaces (which I rather tend to avoid). It seems it is trying to bind 239.255.255.250 to multiple interfaces but in your case it isn't working. I have no clue why even though the code already does the right thing to "joinGroup". My research finally led me to this thread which also seems to be related to Windows users. I wished I could help more 😩 |
Yeah. I will do some tests. The addon suggestion finder did discover the light and suggest the given binding, but the binding did not discover the light thing. So I will look into the suggestion finder code to see if we can learn from that. |
Maybe an IPv4/IPv6 thing? Found something similar here. |
Thanks guys for the googling; but you know I did do that already myself... |
@maniac103 it is indeed an ipv4/ipv6 thing .. on Windows it is possible to have both on the same network interface, and indeed possible to have multiple such interfaces. The solution is to filter on ipv4 addresses only. I have developed a fix that I will add to the current open PR (as soon as my broadband starts working again.. ) |
Not sure if this is helpful or related. Just added the Govee binding and I'm seeing the same issues. I too have IPv4 and IPv6 on my system. Only difference is, I'm on Ubuntu (native not in a docker) not Windows. I get this when I hit the scan button. I can open a separate bug if unrelated, just seemed very similar.
|
@morph166955 many thanks for reporting; it is both helpful and related. The socket closed error is 'normal" during discovery, and is properly handled in #17812 -- perhaps you can try the Jar from that PR to confirm? |
to add to the IPv6 thing: I had the same issues with Nanoleaf which made the binding totally unstable until I did the same there: filtering out IPv6. However, my solution in NanoleafMDNSDiscoveryParticipant seems to be much simpler and yours more elegant. |
During testing #17812 I discovered that thing discovery is not working.
It fails at this line:
openhab-addons/bundles/org.openhab.binding.govee/src/main/java/org/openhab/binding/govee/internal/CommunicationManager.java
Line 133 in 5cf6fea
Note: the PC has two network interfaces (running on Windows 10).
Signed-off-by: AndrewFG software@whitebear.ch
The text was updated successfully, but these errors were encountered: