{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5617","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5617/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5617/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5617/events","html_url":"https://github.com/home-assistant/home-assistant/issues/5617","id":203849697,"number":5617,"title":"Nest component broken.","user":{"login":"heytcass","id":11260288,"avatar_url":"https://avatars.githubusercontent.com/u/11260288?v=3","gravatar_id":"","url":"https://api.github.com/users/heytcass","html_url":"https://github.com/heytcass","followers_url":"https://api.github.com/users/heytcass/followers","following_url":"https://api.github.com/users/heytcass/following{/other_user}","gists_url":"https://api.github.com/users/heytcass/gists{/gist_id}","starred_url":"https://api.github.com/users/heytcass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heytcass/subscriptions","organizations_url":"https://api.github.com/users/heytcass/orgs","repos_url":"https://api.github.com/users/heytcass/repos","events_url":"https://api.github.com/users/heytcass/events{/privacy}","received_events_url":"https://api.github.com/users/heytcass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-29T04:26:00Z","updated_at":"2017-01-29T16:16:17Z","closed_at":null,"body":"Make sure you are running the latest version of Home Assistant before reporting an issue.\r\n\r\nYou should only file an issue if you found a bug. Feature and enhancement requests should go in [the Feature Requests section](https://community.home-assistant.io/c/feature-requests) of our community forum:\r\n\r\n**Home Assistant release (`hass --version`):**\r\n0.37.0.dev0\r\n\r\n**Component/platform:**\r\nNest\r\n\r\n**Description of problem:**\r\nNest component keeps going from working to broken with unreliable causes. One that seems to work every time is to have a sensor try to read the Nest's temperature sensor. But it has broken without that being set up as well.\r\n\r\n**Expected:**\r\nNest to work while providing its reading to other sensors.\r\n\r\n**Problem-relevant `configuration.yaml` entries and steps to reproduce:**\r\n```yaml\r\n- platform: template \r\n  sensors:\r\n    average_house_temp:\r\n      friendly_name: 'Average House Temp'\r\n      value_template: >-\r\n        {{ [states('sensor.aeotec_zw100_multisensor_6_temperature_6_1')|float, states('sensor.aeotec_zw100_multisensor_6_temperature_7_1')|float, states('sensor.hallway_thermostat_temperature')|float]|sum / 3 }}\r\n```\r\nOR\r\n```yaml\r\n- platform: min_max\r\n  type: mean\r\n  entity_ids:\r\n    - sensor.aeotec_zw100_multisensor_6_temperature_6_1\r\n    - sensor.aeotec_zw100_multisensor_6_temperature_7_1\r\n    - sensor.hallway_thermostat_temperature\r\n```\r\n1. Add one of these sensors to your config.\r\n2. Restart hass.\r\n3. Or restart hass a couple of times. Sometimes it will work, sometimes not.\r\n\r\n**Traceback (if applicable):**\r\n```bash\r\n17-01-28 23:17:36 ERROR (MainThread) [homeassistant.bootstrap] Error during setup of component nest\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 386, in _make_request\r\n    six.raise_from(e, None)\r\n  File \"<string>\", line 2, in raise_from\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 382, in _make_request\r\n    httplib_response = conn.getresponse()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 1198, in getresponse\r\n    response.begin()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 266, in _read_status\r\n    raise RemoteDisconnected(\"Remote end closed connection without\"\r\nhttp.client.RemoteDisconnected: Remote end closed connection without response\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/adapters.py\", line 423, in send\r\n    timeout=timeout\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 649, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/util/retry.py\", line 347, in increment\r\n    raise six.reraise(type(error), error, _stacktrace)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/packages/six.py\", line 685, in reraise\r\n    raise value.with_traceback(tb)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 600, in urlopen\r\n    chunked=chunked)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 386, in _make_request\r\n    six.raise_from(e, None)\r\n  File \"<string>\", line 2, in raise_from\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py\", line 382, in _make_request\r\n    httplib_response = conn.getresponse()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 1198, in getresponse\r\n    response.begin()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 297, in begin\r\n    version, status, reason = self._read_status()\r\n  File \"/usr/local/lib/python3.5/http/client.py\", line 266, in _read_status\r\n    raise RemoteDisconnected(\"Remote end closed connection without\"\r\nrequests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/src/app/homeassistant/bootstrap.py\", line 151, in _async_setup_component\r\n    None, component.setup, hass, config)\r\n  File \"uvloop/future.pyx\", line 230, in __iter__ (uvloop/loop.c:110600)\r\n  File \"uvloop/future.pyx\", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)\r\n  File \"uvloop/future.pyx\", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)\r\n  File \"/usr/local/lib/python3.5/concurrent/futures/thread.py\", line 55, in run\r\n    result = self.fn(*self.args, **self.kwargs)\r\n  File \"/usr/src/app/homeassistant/components/nest.py\", line 130, in setup\r\n    setup_nest(hass, nest, config)\r\n  File \"/usr/src/app/homeassistant/components/nest.py\", line 95, in setup_nest\r\n    hass.data[DATA_NEST] = NestDevice(hass, conf, nest)\r\n  File \"/usr/src/app/homeassistant/components/nest.py\", line 144, in __init__\r\n    self._structure = [s.name for s in nest.structures]\r\n  File \"/config/deps/nest/nest.py\", line 1581, in structures\r\n    for stid in self._status[STRUCTURES]]\r\n  File \"/config/deps/nest/nest.py\", line 1539, in _status\r\n    value = self._get(\"/\")\r\n  File \"/config/deps/nest/nest.py\", line 1522, in _get\r\n    return self._request('GET', path)\r\n  File \"/config/deps/nest/nest.py\", line 1503, in _request\r\n    data=data)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/sessions.py\", line 488, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/sessions.py\", line 609, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/usr/local/lib/python3.5/site-packages/requests/adapters.py\", line 473, in send\r\n    raise ConnectionError(err, request=request)\r\nrequests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))\r\n```"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/275924500","html_url":"https://github.com/home-assistant/home-assistant/issues/5617#issuecomment-275924500","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/5617","id":275924500,"user":{"login":"mrrikp","id":7101699,"avatar_url":"https://avatars.githubusercontent.com/u/7101699?v=3","gravatar_id":"","url":"https://api.github.com/users/mrrikp","html_url":"https://github.com/mrrikp","followers_url":"https://api.github.com/users/mrrikp/followers","following_url":"https://api.github.com/users/mrrikp/following{/other_user}","gists_url":"https://api.github.com/users/mrrikp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrrikp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrrikp/subscriptions","organizations_url":"https://api.github.com/users/mrrikp/orgs","repos_url":"https://api.github.com/users/mrrikp/repos","events_url":"https://api.github.com/users/mrrikp/events{/privacy}","received_events_url":"https://api.github.com/users/mrrikp/received_events","type":"User","site_admin":false},"created_at":"2017-01-29T16:16:17Z","updated_at":"2017-01-29T16:16:17Z","body":"Leaving a \"+1\" here. My Nest component stopped working in 0.36, and I was hoping 0.37 would have resolved it. I also get no useful info in the error log, just the apparent success of the operation:\r\n\r\n```txt\r\n7-01-29 16:06:07 INFO (MainThread) [homeassistant.loader] Loaded climate.nest from homeassistant.components.climate.nest\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.bootstrap] Setting up climate\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.components.climate] Setting up climate.nest\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_away_mode, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_hold_mode, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_aux_heat, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_temperature, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_humidity, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_fan_mode, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_operation_mode, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=set_swing_mode, domain=climate>\r\n17-01-29 16:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=climate>\r\n```\r\n\r\nI've tried deleting **nest.conf** and re-authing, to no avail. Same result."}}
{"actor":{"display_login":"mrrikp"}}