{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/19465","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/19465/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/19465/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/19465/events","html_url":"https://github.com/home-assistant/home-assistant/issues/19465","id":392701548,"node_id":"MDU6SXNzdWUzOTI3MDE1NDg=","number":19465,"title":"Harmony Fails To Update 0.85.0dev0","user":{"login":"dshokouhi","id":1634145,"node_id":"MDQ6VXNlcjE2MzQxNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1634145?v=4","gravatar_id":"","url":"https://api.github.com/users/dshokouhi","html_url":"https://github.com/dshokouhi","followers_url":"https://api.github.com/users/dshokouhi/followers","following_url":"https://api.github.com/users/dshokouhi/following{/other_user}","gists_url":"https://api.github.com/users/dshokouhi/gists{/gist_id}","starred_url":"https://api.github.com/users/dshokouhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dshokouhi/subscriptions","organizations_url":"https://api.github.com/users/dshokouhi/orgs","repos_url":"https://api.github.com/users/dshokouhi/repos","events_url":"https://api.github.com/users/dshokouhi/events{/privacy}","received_events_url":"https://api.github.com/users/dshokouhi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-19T17:20:00Z","updated_at":"2018-12-19T18:24:11Z","closed_at":null,"author_association":"CONTRIBUTOR","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- Frontend issues should be submitted to the home-assistant-polymer repository: https://github.com/home-assistant/home-assistant-polymer/issues\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\n\r\n0.85.0dev0\r\n\r\n**Last working Home Assistant release (if known):**\r\n\r\n0..84.3\r\n\r\n**Operating environment (Hass.io/Docker/Windows/etc.):**\r\n<!--\r\nPlease provide details about your environment.\r\n-->\r\nvenv\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\n\r\nremote.harmony\r\n\r\nhttps://www.home-assistant.io/components/remote.harmony/\r\n\r\n**Description of problem:**\r\n\r\nAfter attempting to start an activity or turning off the remote, the remote fails to update even though the action was performed successfully.\r\n\r\nOn Services tab `remote.turn_on`\r\n\r\n```\r\n{\r\n  \"entity_id\": \"remote.harmony_hub_bedroom\",\r\n\"activity\": \"Bedroom SHIELD TV\"\r\n}\r\n```\r\n\r\nOr on the front end if the remote is `on` turn it off by toggling it.\r\n\r\n**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**\r\n```yaml\r\nremote:\r\n - platform: harmony\r\n   name: Harmony Hub Bedroom\r\n   host: 192.168.1.21\r\n```\r\n\r\n**Traceback (if applicable):**\r\n```\r\n2018-12-19 09:06:33 ERROR (MainThread) [homeassistant.helpers.entity] Update for remote.harmony_hub_bedroom fails\r\nTraceback (most recent call last):\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 221, in async_update_ha_state\r\n    await self.async_device_update()\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 347, in async_device_update\r\n    await self.async_update()\r\n  File \"/home/pi/home-assistant/homeassistant/components/remote/harmony.py\", line 205, in async_update\r\n    activity_id = await self._client.get_current_activity()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 234, in get_current_activity\r\n    'vnd.logitech.harmony/vnd.logitech.harmony.engine'\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 184, in _send_request\r\n    return await self._wait_response(msgid)\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 190, in _wait_response\r\n    response_json = await self._websocket.recv()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/websockets/protocol.py\", line 319, in recv\r\n    raise ConnectionClosed(self.close_code, self.close_reason)\r\nwebsockets.exceptions.ConnectionClosed: WebSocket connection is closed: code = 1006, no reason.\r\n2018-12-19 09:06:38 ERROR (MainThread) [homeassistant.helpers.entity] Update for remote.harmony_hub_bedroom fails\r\nTraceback (most recent call last):\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 221, in async_update_ha_state\r\n    await self.async_device_update()\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 347, in async_device_update\r\n    await self.async_update()\r\n  File \"/home/pi/home-assistant/homeassistant/components/remote/harmony.py\", line 205, in async_update\r\n    activity_id = await self._client.get_current_activity()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 234, in get_current_activity\r\n    'vnd.logitech.harmony/vnd.logitech.harmony.engine'\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 158, in _send_request\r\n    await self._perform_connect()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 113, in _perform_connect\r\n    if not self._websocket.closed:\r\nAttributeError: 'WebSocketClientProtocol' object has no attribute 'closed'\r\n2018-12-19 09:06:44 ERROR (MainThread) [homeassistant.helpers.entity] Update for remote.harmony_hub_bedroom fails\r\nTraceback (most recent call last):\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 221, in async_update_ha_state\r\n    await self.async_device_update()\r\n  File \"/home/pi/home-assistant/homeassistant/helpers/entity.py\", line 347, in async_device_update\r\n    await self.async_update()\r\n  File \"/home/pi/home-assistant/homeassistant/components/remote/harmony.py\", line 205, in async_update\r\n    activity_id = await self._client.get_current_activity()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 234, in get_current_activity\r\n    'vnd.logitech.harmony/vnd.logitech.harmony.engine'\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 158, in _send_request\r\n    await self._perform_connect()\r\n  File \"/home/pi/home-assistant/lib/python3.6/site-packages/pyharmony/client.py\", line 113, in _perform_connect\r\n    if not self._websocket.closed:\r\nAttributeError: 'WebSocketClientProtocol' object has no attribute 'closed'\r\n\r\n```\r\n\r\nThe bottom error continues to repeat itself until HA is restarted, then the correct state is shown until the next action is performed.\r\n\r\n**Additional information:**\r\nCC: @ehendrix23 "},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/448695998","html_url":"https://github.com/home-assistant/home-assistant/issues/19465#issuecomment-448695998","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/19465","id":448695998,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODY5NTk5OA==","user":{"login":"dshokouhi","id":1634145,"node_id":"MDQ6VXNlcjE2MzQxNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/1634145?v=4","gravatar_id":"","url":"https://api.github.com/users/dshokouhi","html_url":"https://github.com/dshokouhi","followers_url":"https://api.github.com/users/dshokouhi/followers","following_url":"https://api.github.com/users/dshokouhi/following{/other_user}","gists_url":"https://api.github.com/users/dshokouhi/gists{/gist_id}","starred_url":"https://api.github.com/users/dshokouhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dshokouhi/subscriptions","organizations_url":"https://api.github.com/users/dshokouhi/orgs","repos_url":"https://api.github.com/users/dshokouhi/repos","events_url":"https://api.github.com/users/dshokouhi/events{/privacy}","received_events_url":"https://api.github.com/users/dshokouhi/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T18:24:11Z","updated_at":"2018-12-19T18:24:11Z","author_association":"CONTRIBUTOR","body":"Also just to comment.  This only happens with `remote.turn_on` and `remote.turn_off`.  If I use the harmony remote itself to turn on/off an activity it updates just fine.  I can also use `remote.send_command` to control devices independently."}}
{"actor":{"display_login":"dshokouhi"}}