I have a Iotawatt sitting at home waiting for a sparky to come and install… but I got super impatient and had set it up in HA
to keep the wife happy I had to pack it all up until its installed, so currently its offline in a box on my desk… in the core logs I have several errors, understandable as its offline, but just looking at it a little closer i don’t think this is desired… it seems its not getting a response code at all. this happens every 2minutes or so
2021-12-13 02:47:43 ERROR (MainThread) [iotawattpy.connection] Err: All connection attempts failed
2021-12-13 02:47:43 ERROR (MainThread) [homeassistant.components.iotawatt.coordinator] Unexpected error fetching 192.168.1.153 data: 'NoneType' object has no attribute 'status_code'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/iotawatt/coordinator.py", line 56, in _async_update_data
is_authenticated = await api.connect()
File "/usr/local/lib/python3.9/site-packages/iotawattpy/iotawatt.py", line 48, in connect
if results.status_code == httpx.codes.OK:
AttributeError: 'NoneType' object has no attribute 'status_code'