home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.66k stars 30.41k forks source link

WiZ Integration does not recognize devices #79661

Closed martirale closed 2 years ago

martirale commented 2 years ago

The problem

I try to install the official integration (NO HACKS) and at that moment it starts looking for my devices, after a few seconds the message "No devices found on the network" pops up.

I have local communication enabled in the WiZ app and from the app and from Alexa everything works perfectly. I have seen in forums and on Reddit users with the same problem, however, none have reported if they managed to solve it.

Currently the two devices that I want to link are two: an adjustable temperature LED bulb and an RGB LED strip. Nothing exotic that could be "out of support".

What version of Home Assistant Core has the issue?

2022.9.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

WiZ

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wiz/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

homeassistant commented 2 years ago

Hey there @sbidy, mind taking a look at this issue as it has been labeled with an integration (wiz) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


wiz documentation wiz source (message by IssueLinks)

sbidy commented 2 years ago

Keep in mind that the integration will use not the same protocol stack (MQTT / TLS) as the App or other integrations (like Alex, or Google). This access is closed for us, and we can't use the MQTT interface for controlling the bulb. This is also why we can not support all the features of the bulb, because some of these are MQTT exclusive.

We are using UDP Broadcast to detect the bulbs in the network. For controlling the bulb we send UDP unicast packages out. In some network configurations (like Docker hosts, routers, layer 3 instances) this can be blocked. Reason is that a UDP broadcast can easily overload the network and can create multiple unwanted packages. Please ensure that you are able to communicate with the bulb via Broadcast otherwise the autodetection will fail. The best will be to place the HASS directly in the same Layer-2 as the bulbs are.

I know UDP and especially UDP-Broadcast are not the best way to communicate reliable, but we don't have another option here. The positive side is we don't communicate with any cloud endpoints to turn the light on. The MQTT needs a cloud for that.

TL;DR Test your network config with ncor the pywizlight cli toolkit.

martirale commented 2 years ago

Hello! I will try with those recommendations, thanks for the time (: