Giter Club home page Giter Club logo

Comments (9)

home-assistant avatar home-assistant commented on July 4, 2024

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!

Code owner commands

Code owners of wiz can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign wiz Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wiz documentation
wiz source
(message by IssueLinks)

from core.

rlust avatar rlust commented on July 4, 2024

I have A19 bulbs with same issue.

from core.

SiiiiiiD avatar SiiiiiiD commented on July 4, 2024

Same here for ~7 different type WIZ lights

from core.

notfork avatar notfork commented on July 4, 2024

I have the same issue on all a19 bulbs I own, have tried two different sets.
I have removed from Wiz app and home assistant and re added.
I also am using 3x B12 bulbs that have no issue with staying connected to home assistant.
I can provide any logs or do any trouble shooting steps necessary to help with this.

from core.

sbidy avatar sbidy commented on July 4, 2024

It seems not a direct issue with the integration. Because of different connectivity stacks, the app uses MQTT via TCP and the integration (must use) UDP.
This means,

  • it could be an issue in your network configuration
  • it could be an issue with a specific type of bulb/device

If it is a general issue, no bulbs will respond.

Please check:

  • Network connectivity via UDP to the bulbs (especially if you have the bulbs in separate Subnets, WiFis or VLANs)
  • Try to trace the traffic on your HASS (will the UDP datagram be sent?)
  • Use the pywizlight CLI to issue a light-on or light-off manually (https://github.com/sbidy/pywizlight?tab=readme-ov-file#cli) - Please try this from the HASS system AND another connected one.
  • Check the WiFi connectivity state at the bulb via echo '{"method":"getSystemConfig","env":"dev","params":{}}' | nc -u -w 1 <theIPofYourBulb> 38899
  • Check if the IPs of the bulbs are changed - assign static IPs (via your router) to the bulbs. HASS will not recognize these changes!
  • If you use docker for your HASS instance, check the network config also here (but unlikely because some bulbs are working)

In the past most of the time the issue is a weak Wi-Fi connection to the bulb which results in UDP datagram package lost.

Hope this helps. I try to continuously test new bulb FWs and App updates to keep this integration alive.

from core.

EscapeRush avatar EscapeRush commented on July 4, 2024

Two problems got mixed up in this thread, for the sake of clarity i will just precise à few things.

I have problems with Wiz plugs i've had zero problems with Wiz bulbs.

So this trhread was meant to adress à probleme with Wiz plugs only.

The bulbs were still completely operational on the Wiz app when they appeared unavailable in home assistant. So if it was a connectivity issue i guess my plugs would have been unavailable in the app too which was not the case.

Anyway since disabling roaming on my unify Network and updates of the home assistant I don't have the problem anymore.

from core.

sbidy avatar sbidy commented on July 4, 2024

Basically, there is no different between bulbs and switches regarding the communication and API call approach.
But, what I discovered, the plugs have more problems to establish a "good" WiFi connection because these are hidden behind e.g. cupboards etc.

As mention above - there IS a big difference between the integration and the app usage. The HASS integration use a UDP stack which is in wireless networks, especially with small devices without a proper antenna and really close to high voltage systems, a bad idea. UDP can not verify if a package is transmitted successfully. There is no back channel - that's why the integration will send out a UDP datagram multiple times (kind of spamming) to ensure that the command reaches the device.
Additionally, some access points or router will block or "manage" these type of UDP stuff, because normally you use UDP for e.g. data streaming.

The app uses MQTT-TLS with TCP.

from core.

EscapeRush avatar EscapeRush commented on July 4, 2024

Oh ok i didn't get the part regarding UDP on in the hass integration.

Thanks for the clarification.

Anyway bulbs and plugs are working perfectly now.

from core.

cmd204 avatar cmd204 commented on July 4, 2024

Just chiming in here with another solution. I had the same issue with about 10-15 older A19 bulbs. I have a UniFi network setup. It looks like the bulbs were constantly jumping between multiple access points (APs). I could tell there was an issue when I went on the Wiz integration in HASS. I saw a ton of reconnecting issues in the integration. I went into the UniFi application and locked each bulk to an AP. I immediately saw the reconnection issues resolve in the Wiz integration in HASS. All my issues with the bulbs have now resolved, and I'm getting very quick and consistent response times on all of them now.

I wanted to put forward this as an alternate solution to @EscapeRush 's solution of turning off "roaming" in UniFi. I put "roaming" in quotes here, because I'm not sure there's a a way anymore, as of June 2024, to disable roaming on a WiFi network. It appears this feature may, sort of, used to exist, but not really anymore with the latest UniFi OS. I think you have either set the WiFi network to a single AP or you have to lock each network client device (e.g. each Wiz Smart bulk) to a specific AP within the client devices settings. Locking each bulk to a specific AP basically does the same thing (at the bulb level) without disabling network-wide roaming that might be useful on other devices.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.