Comments (7)
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.
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.
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.
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.
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.
In my test, I can't reproduce this error. What version of the lib you are using?
from pywizlight.
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)
- Ignore test messages
- Add Support for remotes
- Speed limits may not be correct HOT 4
- Energy data HOT 11
- `Exception ignored` when trying to get state of a bulb. HOT 2
- If a request is retried, the response may arrive after the next message is sent
- DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10 HOT 3
- ValueError: Scene is not available. Only 0 to 32 are supported
- How to migrate from wiz_light custom repo to built-in integration HOT 2
- Error while installing HOT 1
- Question: simple script HOT 2
- Auto discovery not working with Philips Wiz Wifi Bulb HOT 7
- Question: Controlling lights from another network HOT 3
- CentOS/RHEL 8 installation fails with missing dependency HOT 4
- Question: How to create and set schedules to lights HOT 1
- Unable to change bulb state HOT 4
- Question: Did you backwards engineer the UDP methods? HOT 9
- How to set arbitrary RGB colors using the easy tool? HOT 2
- Suggestion : Control scene, and ignore kelvin and brightness using CLI HOT 3
- Question: Reduce MAX_TIME_BETWEEN_PUSH for get_power()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywizlight.