Problem with connection to SMA webconnect

Hello,
I’m trying to connect Home-Assistant with the SMA webconnect, but without success.

The configuration part looks like

sma

sensor sma:

  • platform: sma
    host: 192.168.1.112
    password:[MYPASWORD]
    sensors:
    current_consumption: [total_consumption]
    current_power:
    total_yield:

Someone that can point me in the good direction?

Thanx in advance
Wim

Logging ;

2017-12-14 11:49:58 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/pysma/init.py”, line 45, in _fetch_json
url, data=json.dumps(payload), headers=headers, params=params)
File “/usr/lib/python3.6/site-packages/aiohttp/helpers.py”, line 99, in iter
ret = yield from self._coro
File “/usr/lib/python3.6/site-packages/aiohttp/client.py”, line 267, in _request
conn = yield from self._connector.connect(req)
File “/usr/lib/python3.6/site-packages/aiohttp/connector.py”, line 402, in connect
proto = yield from self._create_connection(req)
File “/usr/lib/python3.6/site-packages/aiohttp/connector.py”, line 748, in _create_connection
_, proto = yield from self._create_direct_connection(req)
File “/usr/lib/python3.6/site-packages/aiohttp/connector.py”, line 831, in _create_direct_connection
req=req, client_error=client_error)
File “/usr/lib/python3.6/site-packages/aiohttp/connector.py”, line 796, in _wrap_create_connection
return (yield from self._loop.create_connection(*args, **kwargs))
File “uvloop/loop.pyx”, line 1723, in create_connection
File “uvloop/loop.pyx”, line 1712, in uvloop.loop.Loop.create_connection
File “/usr/lib/python3.6/asyncio/futures.py”, line 331, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.6/asyncio/tasks.py”, line 244, in _wakeup
future.result()
File “/usr/lib/python3.6/asyncio/futures.py”, line 236, in result
raise CancelledError
concurrent.futures._base.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.6/asyncio/tasks.py”, line 181, in _step
result = coro.throw(exc)
File “/usr/lib/python3.6/site-packages/homeassistant/components/sensor/sma.py”, line 125, in async_sma
values = yield from sma.read(keys_to_query)
File “/usr/lib/python3.6/site-packages/pysma/init.py”, line 79, in read
yield from self.new_session()
File “/usr/lib/python3.6/site-packages/pysma/init.py”, line 52, in new_session
URL_LOGIN.format(self._ip), self._new_session_data)
File “/usr/lib/python3.6/site-packages/pysma/init.py”, line 46, in _fetch_json
return (yield from res.json())
File “/usr/lib/python3.6/site-packages/async_timeout/init.py”, line 35, in exit
self._do_exit(exc_type)
File “/usr/lib/python3.6/site-packages/async_timeout/init.py”, line 80, in _do_exit
raise asyncio.TimeoutError
concurrent.futures._base.TimeoutError

Hi, have the exact same error. Help, please…

Hiho,
Today I installed a new (stock) HomeAssistant Docker container and added the SMA part (not more) in the configuration.yaml and I have exactly the same problem again.

sensor sma:

  • platform: sma
    host: 192.168.257.1 :wink:
    password: XxxxX

    sensors:
    current_consumption: [total_consumption]
    current_power:
    total_yield:
    total_consumption:
    (#) - current_power: [total_power, total_consumption]

(#) custom:
(#) yesterday_consumption:
(#) key: 6400_00543A01
(#) unit: kWh
(#) factor: 1000

Does anyone have a hint where i made the mistake?

Thx in advance.
Peule

Still same issue. No SMA webconnect-ions possible.

My unit is: SB 3600TL-21 installed in the UK.

I tried standard SMA configuration entry as given by doktora and it was not reporting anything.

I tried password from https://www.sunnyportal.com
I have user access only as installer created account on the portal for me.

As first step I read: Solved: convert existing python script to HA component for SMA inverters

and added to config:
group: user

but it still gives me: Could not connect to SMA at IP

Trying direct connection via web browser to the inverter does not work.

Tried 0000 for password this did not work either.

I just read there there is a separate webconnect user password which is to access date produces by the inverter. No clue what it is…

Hi,

You need to talk to the person who installed this for you. First step is to log on to your Sunny Boy’s interface on your local network (not Sunny Portal). User is either User or Installer. The password is what the installer set it to. You then need to go into the Parameters tab, click edit, find External Communication and allow connections to WebConnect. Different models may use different procedures or not use WebConnect at all but models with names finishing as -21 pr -40 should work this way unless you are using a Home Manager 2.0 device…

I have been unable to connect to my 5000TL-21 with the additional WebConnect module.

Spoke to SMA Australia, and apparently this model will only connect with Sunny Portal or Sunny Explorer - no internal web interface.

EDIT: I wonder if this is the same issue a few others have encountered. Using Sunny Explorer I could connect via bluetooth and see that the WebConnect module had an IP and was happily sending data to Sunny Portal - but could not access via browser on the LAN.

1 Like

And should one do in case of Home Manager 2.0? I have Home Manager 2.0 but when I try to access it directly over the local network even though I can ping it but no page opens up in the browser

ModBusa is how to go then

Old thread I know, but I have the same issue as KablammoNick with my Sunny Tripower
See here for alternative approach using SBFspot, works a charm.