Comments (4)
I found a workaround for this using custom. However, I have a rolling error in my log:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/sma/sensor.py", line 128, in async_sma
values = await sma.read(used_sensors)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 243, in read
body = yield from self._fetch_json(URL_VALUES, payload=payload)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 201, in _fetch_json
self._url + url, **params)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None
2019-05-21 13:45:39 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/sma/sensor.py", line 128, in async_sma
values = await sma.read(used_sensors)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 243, in read
body = yield from self._fetch_json(URL_VALUES, payload=payload)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 201, in _fetch_json
self._url + url, **params)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None
2019-05-21 13:45:51 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/sma/sensor.py", line 128, in async_sma
values = await sma.read(used_sensors)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 243, in read
body = yield from self._fetch_json(URL_VALUES, payload=payload)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 201, in _fetch_json
self._url + url, **params)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None
2019-05-21 13:45:57 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/sma/sensor.py", line 128, in async_sma
values = await sma.read(used_sensors)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 243, in read
body = yield from self._fetch_json(URL_VALUES, payload=payload)
File "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 201, in _fetch_json
self._url + url, **params)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client.py", line 497, in _request
await resp.start(conn)
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 844, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.7/site-packages/aiohttp/streams.py", line 588, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: None
Any idea how to correct?
from pysma.
Hi @MYeager1967, unfortunately the custom option that I proposed on HASS community forums is the only option today. Have not had time to modify this to allow multiple inverters yet.
I have no idea why you would get aiohttp.client_exceptions.ServerDisconnectedError
- are you trying to log into this using your web browser at the same time? / is this over wired/wifi?
from pysma.
home-assistant/core#20375 - custom workaround
from pysma.
Please try the configuring SMA via the UI... multiple inverters should now be supported - see https://www.home-assistant.io/blog/2021/05/05/release-20215/#breaking-changes
from pysma.
Related Issues (20)
- Support for SMA Data Manager M / Lite HOT 2
- Add Insulation Resistance Sensor HOT 13
- New "Sunny Tripower Smart Energy" HOT 25
- Include Current Power HOT 6
- Energy meter (Home manager 2.0) is not detected anymore HOT 10
- New Inverter Generation "Tripower X (STP XX-50)" not working HOT 29
- Feature request: control active power HOT 6
- Howto use the energy dashboard in HA with SUNNY TRIPOWER 10.0 SE HOT 1
- Pv_isolation_resistance Unavailable HOT 10
- Detect backup power grid (Ersatzstromnetz) HOT 1
- Tigo optimizers still need the custom sensor HOT 11
- Error fetching SMA data HOT 10
- Fetching data from 2 (or more) devices with overlapping sensor-ids? HOT 20
- Support for inverters with 3 PV inputs
- Statistic entities home assistant HOT 11
- Sunny Tripower 10 HOT 2
- Example for one key [solved] HOT 7
- total_yield returns 0 during the night HOT 10
- Suddenly SMA response None HOT 3
- Suddenly I get Timeout. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysma.