I recently installed SMA Inverter 10000TL along with Home Manager 2.0 and I chose SMA after noticing a large number of HA community using the same inverter. I want to get the data from sunny portal. I have tried to follow the instructions on the SMA components page (https://www.home-assistant.io/components/sma/) but with no luck so far.
While trying to troubleshoot, I tried to directly access the Inverter & Home Manager using local ip in the browser but no webpage opens. It says ‘refused to connect’. However, I can view the data using http://www.sunnyportal.com webpage.
sensor:
- platform: sma
host: 192.168.1.91
group: user
password: my_pass
scan_interval: 120
sensors:
current_consumption:
I think I found something, but I have no idea how to fix it.
Module SMA should be set ast default to SSL: false
Even I set this in config as FALSE, then in log I can see that SMA module tries to connect via SSL anyhow…
Traceback (most recent call last):
File “/usr/src/homeassistant/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 240, in read
yield from self.new_session()
File “/usr/local/lib/python3.7/site-packages/pysma/init.py”, line 211, in new_session
body = yield from self._fetch_json(URL_LOGIN, self._new_session_data)
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 476, in _request
timeout=real_timeout
File “/usr/local/lib/python3.7/site-packages/aiohttp/connector.py”, line 522, in connect
proto = await self._create_connection(req, traces, timeout)
File “/usr/local/lib/python3.7/site-packages/aiohttp/connector.py”, line 854, in _create_connection
req, traces, timeout)
File “/usr/local/lib/python3.7/site-packages/aiohttp/connector.py”, line 992, in _create_direct_connection
raise last_exc
File “/usr/local/lib/python3.7/site-packages/aiohttp/connector.py”, line 974, in _create_direct_connection
req=req, client_error=client_error)
File “/usr/local/lib/python3.7/site-packages/aiohttp/connector.py”, line 927, in _wrap_create_connection
req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host 192.168.1.250:443 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)’)]
I always get this notofication : 2020-01-01 16:21:49 ERROR (MainThread) [pysma] Could not start session, Could not connect to SMA at http://192.168.xxx.xxx (timeout), got {‘err’: ‘Could not connect to SMA at http://192.168.178.45 (timeout)’}
Anyone figured out if this works? I cant get any data from this, wonder is this really only for USA ( The sma sensor will poll a [SMA] [(US)] solar inverter) or can it be used elsewhere and if so how?