{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13749","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13749/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13749/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13749/events","html_url":"https://github.com/home-assistant/home-assistant/issues/13749","id":312254004,"number":13749,"title":"Xiaomi qmi.powerstrip.v1 gives error","user":{"login":"anounyym1","id":1563598,"avatar_url":"https://avatars0.githubusercontent.com/u/1563598?v=4","gravatar_id":"","url":"https://api.github.com/users/anounyym1","html_url":"https://github.com/anounyym1","followers_url":"https://api.github.com/users/anounyym1/followers","following_url":"https://api.github.com/users/anounyym1/following{/other_user}","gists_url":"https://api.github.com/users/anounyym1/gists{/gist_id}","starred_url":"https://api.github.com/users/anounyym1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anounyym1/subscriptions","organizations_url":"https://api.github.com/users/anounyym1/orgs","repos_url":"https://api.github.com/users/anounyym1/repos","events_url":"https://api.github.com/users/anounyym1/events{/privacy}","received_events_url":"https://api.github.com/users/anounyym1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"syssi","id":2735933,"avatar_url":"https://avatars3.githubusercontent.com/u/2735933?v=4","gravatar_id":"","url":"https://api.github.com/users/syssi","html_url":"https://github.com/syssi","followers_url":"https://api.github.com/users/syssi/followers","following_url":"https://api.github.com/users/syssi/following{/other_user}","gists_url":"https://api.github.com/users/syssi/gists{/gist_id}","starred_url":"https://api.github.com/users/syssi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syssi/subscriptions","organizations_url":"https://api.github.com/users/syssi/orgs","repos_url":"https://api.github.com/users/syssi/repos","events_url":"https://api.github.com/users/syssi/events{/privacy}","received_events_url":"https://api.github.com/users/syssi/received_events","type":"User","site_admin":false},"assignees":[{"login":"syssi","id":2735933,"avatar_url":"https://avatars3.githubusercontent.com/u/2735933?v=4","gravatar_id":"","url":"https://api.github.com/users/syssi","html_url":"https://github.com/syssi","followers_url":"https://api.github.com/users/syssi/followers","following_url":"https://api.github.com/users/syssi/following{/other_user}","gists_url":"https://api.github.com/users/syssi/gists{/gist_id}","starred_url":"https://api.github.com/users/syssi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syssi/subscriptions","organizations_url":"https://api.github.com/users/syssi/orgs","repos_url":"https://api.github.com/users/syssi/repos","events_url":"https://api.github.com/users/syssi/events{/privacy}","received_events_url":"https://api.github.com/users/syssi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-04-07T23:48:54Z","updated_at":"2018-05-06T06:16:34Z","closed_at":null,"author_association":"NONE","body":"<!-- READ THIS FIRST:\r\n- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/\r\n- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases\r\n- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components\r\n- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests\r\n- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!\r\n-->\r\n\r\n**Home Assistant release with the issue:**\r\n<!--\r\n- Frontend -> Developer tools -> Info\r\n- Or use this command: hass --version\r\n-->\r\n0.66.1\r\n\r\n**Last working Home Assistant release (if known):**\r\n\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\n<!--\r\nPlease provide details about your environment.\r\n-->\r\nRaspbian \r\n**Component/platform:**\r\n<!--\r\nPlease add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.\r\n-->\r\nXiaomi Switch \r\n\r\n**Description of problem:**\r\n qmi.powerstrip.v1 doesn't show up, following errors are found from logs.\r\nNo issues with zimi.powerstrip.v2-strip.\r\n\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```yaml\r\nswitch:\r\n  - platform: xiaomi_miio\r\n    name: Chromecast\r\n    host: *Redacted*\r\n    token: *Redacted*\r\n    model: qmi.powerstrip.v1\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\nunable to parse json '{\"result\":[\"on\",50,215,\"normal\",29,,],\"id\":1}': Expecting value: line 1 column 36 (char 35)\r\n```\r\n```\r\nxiaomi_miio: Error on device update!\r\n\r\nTraceback (most recent call last):\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py\", line 188, in _async_add_entity\r\n    await entity.async_device_update(warning=False)\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py\", line 325, in async_device_update\r\n    yield from self.async_update()\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/xiaomi_miio.py\", line 366, in async_update\r\n    state = await self.hass.async_add_job(self._plug.status)\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 380, in __iter__\r\n    yield self  # This tells Task to wait for completion.\r\n  File \"/usr/lib/python3.5/asyncio/tasks.py\", line 304, in _wakeup\r\n    future.result()\r\n  File \"/usr/lib/python3.5/asyncio/futures.py\", line 293, in result\r\n    raise self._exception\r\n  File \"/usr/lib/python3.5/concurrent/futures/thread.py\", line 55, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/miio/powerstrip.py\", line 107, in status\r\n    properties\r\n  File \"/srv/homeassistant/lib/python3.5/site-packages/miio/device.py\", line 264, in send\r\n    self.__id = m.data.value[\"id\"]\r\nTypeError: 'NoneType' object is not subscriptable\r\n\r\n\r\n```\r\n\r\n**Additional information:**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/386857024","html_url":"https://github.com/home-assistant/home-assistant/issues/13749#issuecomment-386857024","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/13749","id":386857024,"user":{"login":"syssi","id":2735933,"avatar_url":"https://avatars3.githubusercontent.com/u/2735933?v=4","gravatar_id":"","url":"https://api.github.com/users/syssi","html_url":"https://github.com/syssi","followers_url":"https://api.github.com/users/syssi/followers","following_url":"https://api.github.com/users/syssi/following{/other_user}","gists_url":"https://api.github.com/users/syssi/gists{/gist_id}","starred_url":"https://api.github.com/users/syssi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syssi/subscriptions","organizations_url":"https://api.github.com/users/syssi/orgs","repos_url":"https://api.github.com/users/syssi/repos","events_url":"https://api.github.com/users/syssi/events{/privacy}","received_events_url":"https://api.github.com/users/syssi/received_events","type":"User","site_admin":false},"created_at":"2018-05-06T06:16:34Z","updated_at":"2018-05-06T06:16:34Z","author_association":"MEMBER","body":"The issue isn't fixed yet."}}
{"actor":{"display_login":"syssi"}}