Code Monkey home page Code Monkey logo

Comments (7)

mozilla2012 avatar mozilla2012 commented on August 15, 2024

This is affecting me too. I'm wondering if the bulbs updated and they broke it. I'm on firmware 1.24.0, and this started for me just a day or two ago; not a full 7 days ago.

Edit: Apparently 1.24.0 is new as of roughly the day this post was created.
Definitely seems suspect. https://m.apkpure.com/wiz/com.tao.wiz/versions

I'm not sure if we can roll back to the previous firmware or not.

from pywizlight.

sbidy avatar sbidy commented on August 15, 2024

A rollback of the FW is not possible. But I saw one of my bulbs have a 1.25.1 FW.
I'll check if any function was changed while this update.

Can you provide the failed function call (stack trace) or is no connection at all possible?

from pywizlight.

mozilla2012 avatar mozilla2012 commented on August 15, 2024

Here's the error I see:

Oct 19 20:57:07 : Task exception was never retrieved
Oct 19 20:57:07 : future: <Task finished name='Task-71' coro=<DatagramClient.send() done, defined at /usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py:128> exception=ConnectionRefusedError(111, 'Connection refused')>
Oct 19 20:57:07 : Traceback (most recent call last):
Oct 19 20:57:07 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 132, in send
Oct 19 20:57:07 :     await super().send(data)
Oct 19 20:57:07 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 94, in send
Oct 19 20:57:07 :     _ = self.exception
Oct 19 20:57:07 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 52, in exception
Oct 19 20:57:07 :     raise exc
Oct 19 20:57:07 :   File "/usr/lib/python3.8/asyncio/selector_events.py", line 1011, in _read_ready
Oct 19 20:57:07 :     data, addr = self._sock.recvfrom(self.max_size)
Oct 19 20:57:07 : ConnectionRefusedError: [Errno 111] Connection refused
Oct 19 20:57:08 : Task exception was never retrieved
Oct 19 20:57:08 : future: <Task finished name='Task-73' coro=<DatagramClient.send() done, defined at /usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py:128> exception=ConnectionRefusedError(111, 'Connection refused')>
Oct 19 20:57:08 : Traceback (most recent call last):
Oct 19 20:57:08 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 132, in send
Oct 19 20:57:08 :     await super().send(data)
Oct 19 20:57:08 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 94, in send
Oct 19 20:57:08 :     _ = self.exception
Oct 19 20:57:08 :   File "/usr/local/lib/python3.8/dist-packages/asyncio_dgram/aio.py", line 52, in exception
Oct 19 20:57:08 :     raise exc
Oct 19 20:57:08 :   File "/usr/lib/python3.8/asyncio/selector_events.py", line 1011, in _read_ready
Oct 19 20:57:08 :     data, addr = self._sock.recvfrom(self.max_size)
Oct 19 20:57:08 : ConnectionRefusedError: [Errno 111] Connection refused

Thanks for hopping on this so fast!

from pywizlight.

sbidy avatar sbidy commented on August 15, 2024

Mh, it seems to be a connection error on the network stack and not on the UDP-Interface of the bulb.
To decouple these, please try to send a "nc" (raw network - nc is a tool for Linux/Mac) command to the bulb:
echo '{"method":"getSystemConfig","env":"dev","params":{}}' | nc -u -w 1 <theIPofYourBulb> 38899

This should return something like this:

{
    "method": "getSystemConfig",
    "env": "pro",
    "result": {
        "mac": "a8bb50xxxxx",
        "homeId": 4228671,
        "roomId": 6402395,
        "rgn": "eu",
        "moduleName": "ESP01_SHRGB_03",
        "fwVersion": "1.24.0",
        "groupId": 0,
        "drvConf": [
            20,
            2
        ],
        "ping": 0
    }
}

If you get a connection error, the bulb is not reliably connected to the Wi-Fi.
Maybe you can move the bulb closer to an access point.

from pywizlight.

mozilla2012 avatar mozilla2012 commented on August 15, 2024

That works:

{
  "method": "getSystemConfig",
  "env": "pro",
  "result": {
    "mac": "a8bb50cxxxxx",
    "homeId": 1913756,
    "roomId": 2859747,
    "rgn": "eu",
    "moduleName": "ESP03_SHRGB1W_01",
    "fwVersion": "1.24.0",
    "groupId": 0,
    "ping": 0
  }
}

Still getting connection errors though 😢

from pywizlight.

sbidy avatar sbidy commented on August 15, 2024

In my test, I can't reproduce this error. What version of the lib you are using?

from pywizlight.

mozilla2012 avatar mozilla2012 commented on August 15, 2024

Well I figured it out.

I have three wiz lights. Apparently the IP address of two of them changed.
I just coincidentally ran getSystemConfig on the one that didn't change IP addresses.

I thought I had those set as static.

I apologize for wasting your time and sending you on this wild goose chase! I appreciate your comments; I love this library

from pywizlight.

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.