-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sun component + Yeelight Broken #17485
Comments
This is an error in xiaomi_miio and not sun as far as this stacktrace goes. |
I guess, your right, I now see all automations are failing with yeelights. how do we fix the error? |
I can maybee help but I have no device to test this on. If you test Ill give it a go. |
Sure, lets do it. I find my home in darkness when i return late from work :( |
Oh!.. Well Im looking into it now. |
There have been some changes to the component in 0.80 could you try to upgrade and take a look if its solved? |
i am running 0.80.3. Still have the issue. issue narrowed to turning on the
yeelight lights via automation's.
However, automations involving turning off the yeelights work fine.
Same error
Error executing service <ServiceCall light.turn_on
(c:82f310e6200c49eda239efd260fdf8bf): entity_id=['light.outside',
'light.living_room', 'light.living_room_2', 'light.coridoor']>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/xiaomi_miio.py",
line 261, in _try_command
partial(func, *args, **kwargs))
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/miio/philips_bulb.py",
line 96, in on
return self.send("set_power", ["on"])
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line
270, in send
raise DeviceError(m.data.value["error"])
miio.exceptions.DeviceError: {'code': -30001, 'message': 'Resp invalid json.'}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py",
line 1177, in _event_to_service_call
await service_handler.func(service_call)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/__init__.py",
line 270, in async_handle_light_on_service
await light.async_turn_on(**pars)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/xiaomi_miio.py",
line 472, in async_turn_on
"Turning the light on failed.", self._light.on)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/light/xiaomi_miio.py",
line 267, in _try_command
_LOGGER.error(mask_error, exc)
File "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error
self._log(ERROR, msg, args, **kwargs)
File "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log
self.handle(record)
File "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle
self.callHandlers(record)
File "/usr/local/lib/python3.6/logging/__init__.py", line 1515, in
callHandlers
hdlr.handle(record)
File "/usr/local/lib/python3.6/logging/__init__.py", line 864, in handle
self.emit(record)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py",
line 130, in emit
entry = self._create_entry(record, stack)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py",
line 113, in _create_entry
'message': record.getMessage(),
File "/usr/local/lib/python3.6/logging/__init__.py", line 338, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
…On Wed, Oct 17, 2018 at 9:01 PM kennedyshead ***@***.***> wrote:
There have been some changes to the component in 0.80 could you try to
upgrade and take a look if its solved?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17485 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AihDC0WzYYTtor0n3vIud74WRo3OTr83ks5ul01ugaJpZM4Xcka6>
.
|
updated to 0.81.0 no go. same issue |
Your automation controls 4 devices:
It looks like the
It's a known bug of the Philips bulb which happens some times and isn't handled properly right now: rytilahti/python-miio#205 |
This bug will be fixed soon by rytilahti/python-miio#449 |
Home Assistant release with the issue:
0.80.0
-->
Last working Home Assistant release (if known):
0.79.0
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Please provide details about your environment.
-->
hassio on docker, ubuntu 18, NUC
Component/platform:
https://www.home-assistant.io/components/sun/
Description of problem:
Sun automation doesn't trigger yeelight bulbs at sunset. getting service exception error
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: