Anyone able to get this working so far? I retrieve all my zones after entering the Rachio API key and they show up as switches. However, when I turn on the switches, they immediately turn back off and this shows up in the error logs. Is this working for anyone else currently?
2017-06-04 12:42:44 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
result = coro.throw(exc)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 1015, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/__init__.py", line 104, in async_handle_switch_service
yield from switch.async_turn_on()
File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/switch/rachio.py", line 227, in turn_on
self.rachio.zone.start(self.zone_id, seconds)
File "/home/homeassistant/.homeassistant/deps/rachiopy/zone.py", line 14, in start
return self.rachio.put(path, payload)
File "/home/homeassistant/.homeassistant/deps/rachiopy/__init__.py", line 53, in put
return self._request(path, 'PUT', body)
File "/home/homeassistant/.homeassistant/deps/rachiopy/__init__.py", line 34, in _request
headers=self._headers, body=body)
File "/home/homeassistant/.homeassistant/deps/httplib2/__init__.py", line 1322, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/homeassistant/.homeassistant/deps/httplib2/__init__.py", line 1072, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/homeassistant/.homeassistant/deps/httplib2/__init__.py", line 1025, in _conn_request
response = conn.getresponse()
File "/usr/lib/python3.4/http/client.py", line 1172, in getresponse
response.begin()
File "/usr/lib/python3.4/http/client.py", line 351, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.4/http/client.py", line 313, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.4/socket.py", line 371, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.4/ssl.py", line 745, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.4/ssl.py", line 617, in read
v = self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1769)
Code in my configuration.yaml
- platform: rachio
access_token: !secret rachio_access_token
outside_devices:
name: Irrigation
entities:
- switch.front_yard_left
- switch.front_yard_right
- switch.flowerbeds_
- switch.backyard