All the bulbs are on the same wireless network, and I didn’t change anything on my router lately.
The only thing that changed is the firmware of the bulbs/strip. Upgraded from 1.x to 2.0.6.
14 and 15 are older bulbs, and didn’t receive (yet?) the fw upgrade.
I wonder if it could be an issue with the python-yeelight, like @syssi mentioned in the post #373
It might be possible, but changning get_prop query from yeelight API seems a bit unexpected. Maybe try to check if LAN mode is still on, after FW update ?
I’ve reset the bulbs multiple times, and toggled ON/OFF/ON the LAN mode.
python-yeelight can’t control nor see the status of the bulbs.
hassio@hassiodev:~/.local/bin$ ./yee --ip 192.168.2.12 status
Bulb parameters:
Traceback (most recent call last):
File "./yee", line 11, in <module>
sys.exit(cli())
File "/home/hassio/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/hassio/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/hassio/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/hassio/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/hassio/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/hassio/.local/lib/python2.7/site-packages/yeecli/cli.py", line 301, in status
for key, value in bulb.get_properties().items():
File "/home/hassio/.local/lib/python2.7/site-packages/yeelight/main.py", line 359, in get_properties
response = self.send_command("get_prop", requested_properties)
File "/home/hassio/.local/lib/python2.7/site-packages/yeelight/main.py", line 399, in send_command
raise_from(BulbException("A socket error occurred when sending the command."), ex)
File "/home/hassio/.local/lib/python2.7/site-packages/future/utils/__init__.py", line 456, in raise_from
raise e
yeelight.main.BulbException: A socket error occurred when sending the command.
It seems like it doesn’t recognize LAN mode anymore.
Issue solved.
I’ve reset the lights (again) and added them to the app using my wife’s phone. After enabling LAN mode, the lights showed up as entities.
The only possible cause could be the rooted phone (pixel 2XL).
More detailed logs should be available somewhere, probably in dev tools, but I think problem is with: nightlight_switch_type: light, its configured now per light, not globally.
hey guys need your help, I got an automation for a nightlight, after getting up in the morning light turned on via motion, so far so good, but if we change the brightness to be brighter and showering the light goes into the nightlight mode due to there is no motion triggered in the shower. My girlfriend is going crazy
Hello Michael. First of all thank you for your work. It worked like a charm for my ceiling lights.
I tried to do the same to my bedside2 lamp, but unfortunately it didn’t work. You have any suggestion?
Thank you.