-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Xiaomi qmi.powerstrip.v1 gives error #13749
Copy link
Copy link
Closed
Description
Home Assistant release with the issue:
0.66.1
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Raspbian
Component/platform:
Xiaomi Switch
Description of problem:
qmi.powerstrip.v1 doesn't show up, following errors are found from logs.
No issues with zimi.powerstrip.v2-strip.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
switch:
- platform: xiaomi_miio
name: Chromecast
host: *Redacted*
token: *Redacted*
model: qmi.powerstrip.v1Traceback (if applicable):
unable to parse json '{"result":["on",50,215,"normal",29,,],"id":1}': Expecting value: line 1 column 36 (char 35)
xiaomi_miio: Error on device update!
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 188, in _async_add_entity
await entity.async_device_update(warning=False)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/xiaomi_miio.py", line 366, in async_update
state = await self.hass.async_add_job(self._plug.status)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/miio/powerstrip.py", line 107, in status
properties
File "/srv/homeassistant/lib/python3.5/site-packages/miio/device.py", line 264, in send
self.__id = m.data.value["id"]
TypeError: 'NoneType' object is not subscriptable
Additional information:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels