Skip to content
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

Qing Mi Smart Power Strip cannot be setup,device id is 04b8824e #318

Closed
goven opened this issue May 19, 2018 · 2 comments
Closed

Qing Mi Smart Power Strip cannot be setup,device id is 04b8824e #318

goven opened this issue May 19, 2018 · 2 comments

Comments

@goven
Copy link

goven commented May 19, 2018

Home Assistant release with the issue:

0.70.0b0

Last working Home Assistant release (if known):

none

Operating environment (Hass.io/Docker/Windows/etc.):

Docker

Component/platform:

device.py

Description of problem:

Qing Mi Smart Power Strip cannot be setup,device id is 04b8824e,may be it's a new type.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

platform: xiaomi_miio
name: Qing Mi Smart Power Strip
host: 192.168.1.243
token: 6d282cbb8b376e69dba2175007486ec4
model: qmi.powerstrip.v1

Traceback (if applicable):

2018-05-19 11:24:44 ERROR (SyncWorker_6) [miio.protocol] unable to parse json '{"result":[
"on",50,58,"normal",6,,],"id":102}': Expecting value: line 1 column 34 (char 33)
2018-05-19 11:24:44 ERROR (MainThread) [homeassistant.components.switch] xiaomi_miio: Erro
r on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line 258, in send
data, addr = s.recvfrom(1024)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 244, in _async_add_en
tity
await entity.async_device_update(warning=False)
File "/usr/src/app/homeassistant/helpers/entity.py", line 325, in async_device_update
yield from self.async_update()
File "/usr/src/app/homeassistant/components/switch/xiaomi_miio.py", line 370, in async_u
pdate
state = await self.hass.async_add_job(self._plug.status)
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/powerstrip.py", line 107, in status
properties
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line 287, in send
return self.send(command, parameters, retry_count - 1)
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line 264, in send
self.__id = m.data.value["id"]
TypeError: 'NoneType' object is not subscriptable

@goven goven changed the title python-miio Qing Mi Smart Power Strip cannot be setup,device id is 04b8824e May 19, 2018
@syssi
Copy link
Collaborator

syssi commented May 19, 2018

The issue will be fixed in the upcoming release of python-miio.

cp. home-assistant/core#13749

@goven
Copy link
Author

goven commented May 19, 2018

Thx

@goven goven closed this as completed May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants