-
-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Connection with SMA Integration / SMA Integration Login failed #67953
Comments
sma documentation |
Hey there @kellerza, @rklomp, mind taking a look at this issue as it has been labeled with an integration ( |
The SMA integration does not support modbus, only web interface. |
Sorry yes I know meant to say that I used the modbus to test the connection, i.e. a connection is there. |
I've never tested of heard of anyone using the sunny island with this plugin. Maybe this device is running different code for webconnect. Can you share debug logging of the SMA integration and pysma? Turn on debug in the configuration.yaml and than restart HA. logger:
default: info
logs:
homeassistant.components.sma: debug
pysma: debug
Make sure you remove credentials etc. from the logs. |
Did you find a solution? I am trying to add the integration but I get "Failed to connect". The only thing I get on the log is |
Same for me. I have tried all combination. Still got the message: Unexpected Error. With an other app (SunSpec) it works but I prefer to use the SMA app. |
it is undergoing fix: kellerza/pysma#98 |
The fix addresses the TimeoutError - #68999 My suspicion is that TimeoutError typically occur when you are connected via wifi. But if your inverter has no support for the webconnect protocol it will still timeout, but the HA setup will just gracefully retry forever. As @rklomp mentioned no-one has reported a working sunny island, so very likely it is NOT webconnect based. The first test is always, what can you access/see when you point your own browser to the inverter… |
@Jogiarea, are you redirected to the https version when you access it in the browser? Then check the first checkbox (uses an SSL certificate), but not the second one (verify SSL certificate), like this: |
What kind of device are you trying to connect to? |
I try to connect to my SMA Sunny boy 4000TL. I know the passwords for user and installer. |
Do you have an external webconnect on the 4000TL? From the datasheet the 4000TL only supports RS485 and bluetooth Can you please post a screenshot of Chrome when you open the page at http:// or https://? |
I have a SMA Sunny Tripower 6.0 | SMA STP6.0-3AV-40] and it doesn't work one the newest 2022.04 core. Although there was a time (January '22 I think) it worked. |
@kellerza The web connect module is installed on the 4000TL-21 |
Same issue for my Sunnyboy 3.0, in the integration description say is for SMA(US), I’m in Europe, wondering if it is a geographic issue. |
As my old Home Assistant instence is crashed i'm building a new Home Assistant. Currently i'm facing the same issue as not able to connect to the webconnect. does anybody still have the older way by adding the code in the configuration.yaml file ourself than we could try that way to get connected to the sma webconnect. I have a sunnyboy 3.0 @ home |
I am using a sunnyboy 3.6, so I assume a sb 3.0 should also work. Are you using correct settings to connect? |
Succes now bu using the following settings USE SSL Certification Unselect Validate SSL Certification Use the Installer account and his password |
Does anybody know if this will work with my Sunnyboy 4000TL-21? What is the minimum requierment to the the SMA app in HA? It works with SunPac but not with the SMA app in HA. . |
Ive tested all but nothing works;-( |
I'm having the same problem with Sunny boy 1.5. It can't just connect. I had it working with old versions of HA though. |
For all people having issues connecting. Please share more details about your installation:
To get debug logging, turn on debug in the configuration.yaml and than restart HA. logger:
default: info
logs:
homeassistant.components.sma: debug
pysma: debug |
SUNNY TRIPOWER 6.0 - STP6.0-3AV-40 370 Home Assistant 2022.4.7 LOG from Core: When I try to add integration: where should I take the screenshot with HA setting? |
Do we need more information? I got the same as above with the same message: Edit: First: So it does not continue connecting: Fixed |
This is correct, I remember that issue with password length on SMA ... but my passwords are less than 12 characters, and I have tried different combinations numerical / special characters / up and lowercases etc .... ... no luck |
Having same login issues. In my case I think it might be due to the ancient Sunny Webbox I have (circa 2012). I tried sending the contents of the POST from pysma shown in the log directly to the Webbox through curl. Using the "dyn/login.json" URL does not work. Using the URL that the Webbox web page connection uses (culture/login) does seem to work. Not sure if this helps anybody but thought I'd post it just in case. Example output is below (with the password changed to xxxxxxxxx). From the log:
Curl using dyn/login.json: [core-ssh ~]$ curl -v -i -d '{"right": "istl", "pass": "xxxxxxxxx"}' http://192.168.1.254/dyn/login.json
Curl using culture/login: [core-ssh ~]$ curl -v -i -d '{"right": "istl", "pass": "xxxxxxxxx"}' http://192.168.1.254/culture/login
< HTTP/1.1 200
|
FYI for anyone else with a WebBox. This integration seems to work: https://github.com/jpcornil-git/HA-sma |
I had the exact same issue as described here ... here is how I solved it (not on purpose) .... I had installed Ha couple of weeks ago, connected to the SMA SB5.0 to test my user / installer, then tried to integrate it using the HA integration for SMA ... FAILED as a lot of people are experiencing below ... My Synology crashed, so I had to reinstall the complete HA couple of days ago, and I directly tried to integrate the SMA SB 5.0 **and it directly worked **!!****, so without having tested the password on the SMA web interface first. I ASSUME the issue is that if you connect to the SMA web interface first, the connection somehow stays active (even if you log off), which makes HA integration unable to log in the SMA inverter web interface at his turn. Anycase, it is working for me now ... |
Another success story, also on the fresh HA install, worked like a charm on the first try: Webconnect Software version (See SMA GUI -> Device parameters -> External Communication -> Webconnect) there's none visible, only word 'Activated' The next part has couple versions: URL used to connect to SMA GUI in browser: https://sma1990024609/ Inverter is connected over Ethernet to LAN. LAN DHCP server assigned it that host name. The same host name sma1990024609 worked in HA integration. Home Assistant Details: HA Core only + MariaDB + Mosquitto MQTT running on Ubuntu 18.04.5 LTS |
I have this https://www.sma.de/en/products/monitoring-control/webconnect module installed in my inverter Sunny Boy 5000TL-21 but this module don't expose any local ports.
|
I'm having this issue too, with the newest version of HA. My password is 12 chars long. I've logged in directly into my SMA inverter and that works. I used to have an RPi on which this worked perfectly, though that was about a year ago. |
If you can see inverter's UI and its production numbers over LAN in the browser then it exposes at least ports 80 / 443. I believe HA integration uses the very same connection. My inverter is newer model so there's possibility that SMA changed Web API methods for this series and HA cannot 'understand' the previous version. I think post #67953 (comment) above provides a method how to check login / connectivity outside HA. |
An update: I just tried pinging my SMA inverter, which works perfectly. So HA can definitely talk to the inverter. EIDT: just tried again with the first checkbox enables and the 2nd disabled. Logged in in a second. |
Hi all, same problem here. No login is proberly. I have tried all combies. user or installer, with and withoud ssl checkboxes. Login on the webinterface with my user account is no problem. have a user here any idea? thanks a lot! HomeAssistant: Home Assistant Log: Request to /dyn/login.json did not return a valid json. |
login problem solved!!! at first you have to use the sunny explorer and set in the inverter and battery inverter the external communication web connect to on. works like a charme! also you have to do it for both inverters if you habe two like me |
I also had this problem (SUNNY TRIPOWER 6.0 SE on firmware 3.4.16.R). Important like told 1000x: [x] Uses an SSL certificate, [ ] Verify SSL certificate. What's strange: |
Hi everybody, Used the intergration always without problems. Since 2 weeks entities not available anymore. Tried to reinstall the integration but now login issues. Tried al kind of combinations nothing works anymore. HA version 10.5 Any ideas? |
I also have the problem that I cannot log in to Sonny Home Manager 2.0 on the WebUI interface. Thus, the Home Assistant cannot set the SMA integration either. |
Having this error as well, it was working a few days ago |
hi, this is how I fixed the error:
|
I have the same problem, not being able to connect to the sma integration. What bothers me is when I log into my inverter using the browser / IP I have to log in with a username and PW The HA integration never asks for an username? Is that the problem? Can someone with a working HA connection confirm their login to the inverter looks the same? Cheers |
That login page doesn't look like inverter's login. Please make sure you're
logging into inverter itself, not SunnyPortal site. My inverter page looks
like this:
From: Sakamoto2215 ***@***.***>
Sent: Tuesday, December 26, 2023 1:19 PM
To: home-assistant/core ***@***.***>
Cc: gb1320 ***@***.***>; Comment ***@***.***>
Subject: Re: [home-assistant/core] No Connection with SMA Integration / SMA
Integration Login failed (Issue #67953)
I have the same problem, not being able to connect to the sma integration.
No matter what I try, I get invalid authentication.
I tried user and installer. I even created a new installer profile and
changed the PW, didnt work either.
What bothers me is when I log into my inverter using the browser / IP I have
to log in with a username and PW
The HA integration never asks for an username? Is that the problem?
I think my inverter runs in the new ennexOS.
Can someone with a working HA connection confirm their login to the inverter
looks the same?
grafik.png (view on web)
<https://github.com/home-assistant/core/assets/154930231/61bab3d9-29f0-426f-
8232-ad744774c5fd>
Cheers
Sakamoto
-
Reply to this email directly, view it on GitHub
<#67953 (comment)
, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWH7HEOORY4O7HDB42OX4DYL
M5LDAVCNFSM5QMX7ZEKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWHE3TONRYG44Q>
.
You are receiving this because you commented.
<https://github.com/notifications/beacon/AMWH7HFL5UJDQAOU6L76MOLYLM5LDA5CNFS
M5QMX7ZEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGON5ZIP3Y
.gif> Message ID: ***@***.***
***@***.***> >
|
Maybe a new tripower X device? #90313 |
Thanks, I just found out that the new SMA TRIPOWER X Inverter run on a completely new system. |
It's working with a Sunny Boy 5.0. |
I was having the same issue trying to connect a SMA Energy Meter, tinkering with Home Assistant (first time user) I ended up in
there I saw the next message:
As I'm using a password manager I had set up a 20 characters password, after changing to a 12 characters password it is now conected and working perfect. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
You can test my integration: |
The problem
Hello
Have a problem with the SMA integration, I can not log in.
I have already gone through all log invariants, always "Unexpected error".
Have also already changed the system password without success, always brings errors.
My installation:
Modbus is on
Plant location DE
Both inverters have a static IP
Speedwire encryption is off
Inverter with the latest firmware
Have tried to log in for half a year again and again but without success
Do someone have any Idea what I ve done wrong?
With Modbus i can connect to the Inverter but not to the Battery-Inverter
What version of Home Assistant Core has the issue?
2022.3.2 and other
What was the last working version of Home Assistant Core?
2022.3.2
What type of installation are you running?
Home Assistant Container
Integration causing the issue
SMA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/sma/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: