I updated to 0.91.0 and now all the switch of the rainamchine are set as unavailable.
On the log I saw this:
2019-04-05 08:52:20 ERROR (MainThread) [homeassistant.components.rainmachine] An error occurred: Timeout during request: auth/login
2019-04-05 08:52:20 WARNING (MainThread) [homeassistant.config_entries] Config entry for rainmachine not ready yet. Retrying in 5 seconds.
2019-04-05 08:53:15 INFO (MainThread) [homeassistant.loader] Loaded rainmachine.binary_sensor from homeassistant.components.rainmachine.binary_sensor
2019-04-05 08:53:15 INFO (MainThread) [homeassistant.loader] Loaded rainmachine.sensor from homeassistant.components.rainmachine.sensor
2019-04-05 08:53:15 INFO (MainThread) [homeassistant.loader] Loaded rainmachine.switch from homeassistant.components.rainmachine.switch
2019-04-05 08:53:25 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.rainmachine
2019-04-05 08:53:25 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.rainmachine
2019-04-05 08:53:25 INFO (MainThread) [homeassistant.components.switch] Setting up switch.rainmachine
2019-04-05 08:53:25 WARNING (MainThread) [homeassistant.components.sensor] Updating influxdb sensor took longer than the scheduled update interval 0:00:10
2019-04-05 08:53:25 DEBUG (MainThread) [nibeuplink] Requesting parameters [‘44396’, ‘43420’, ‘40083’, ‘41366’, ‘41427’, ‘10014’, ‘44073’, ‘41162’, ‘47412’, ‘40782’, ‘40004’, ‘44866’, ‘47613’, ‘44302’, ‘44701’]
2019-04-05 08:53:25 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform rainmachine
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/aiohttp/client.py”, line 495, in _request
resp = await req.send(conn)
File “/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py”, line 626, in send
await writer.write_headers(status_line, self.headers)
File “/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py”, line 112, in write_headers
self._write(buf)
File “/usr/local/lib/python3.7/site-packages/aiohttp/http_writer.py”, line 67, in _write
raise ConnectionResetError(‘Cannot write to closing transport’)
ConnectionResetError: Cannot write to closing transport
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/regenmaschine/client.py”, line 85, in _request
ssl=self._ssl) as resp:
File “/usr/local/lib/python3.7/site-packages/aiohttp/client.py”, line 1005, in aenter
self._resp = await self._coro
File “/usr/local/lib/python3.7/site-packages/aiohttp/client.py”, line 507, in _request
raise ClientOSError(*exc.args) from exc
aiohttp.client_exceptions.ClientOSError: Cannot write to closing transport
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/rainmachine/switch.py”, line 117, in async_setup_entry
programs = await rainmachine.client.programs.all(include_inactive=True)
File “/usr/local/lib/python3.7/site-packages/regenmaschine/program.py”, line 19, in all
data = await self._request(‘get’, ‘program’)
File “/usr/local/lib/python3.7/site-packages/regenmaschine/client.py”, line 90, in _request
‘Error requesting data from {0}: {1}’.format(self.host, err))
regenmaschine.errors.RequestError: Error requesting data from 192.168.18.70: Cannot write to closing transport
Error while setting up platform rainmachine
08:53 components/rainmachine/switch.py (ERROR)
Error doing job: Task exception was never retrieved
08:56 components/rainmachine/init.py (ERROR)