Closed danbates2 closed 6 years ago
Can you access that address through a web browser? Maybe you need https://192.168.2.2
?
Browser does nothing. https:// hasn't changed things either. I'm 100% sure it's the ip address of the inverter, which is a 6000tl-20, and the user password 0000 default works.
Does it impact if SBFSpot has recently connected to the inverter? Is there a conflict of session-ID maybe?
If you cannot access the local Web UI, this module will not work for you. SBFSpot seems to use SpeedWire, which is a different protocol
understood, thanks.
Hi,
I am having similar issue with my Sunny Boy 5.0 which does have a local web ui (WebConnect).
Currently I'm just scraping the data from sunny portal but ideally i would like to use this to get the info locally and more real time.
I did briefly attempt to scrape the local info myself but i didn't spend too much time on it and it seems to use angular and I was getting similar session issue, was going to try using one of the headless browser but i thought I might try this first.
Hi @RaihaX,
Did you try example.py
from this repo, or the Homeassistant component?
from this repo - I haven't tried the HASS component in a few months (last time i tried it didn't work). Is the HASS component more up to date then the one in this repo?
The HASS component uses this library, it's just another (easier?) way to set it up
Fair enough - I find it easier to debug an issue using the python script as I am not too familiar in debugging the python script when is running through HASS.
Do you have any inkling as to why I am getting a No Session ID issue?
Login fails, so it could be:
Or the response from your WebConnect is different... The script has quite a lot of debugs, so should see if it fails/succeeds in any way
Login seems to be ok - i tested the login for both user and installer.
IP and port seems correct and web connect only works with http (https fails via browser).
I did check the python script and it doesn't provide much debugging as it literally fails upon connection.
this is the error debug from the script anyway
DEBUG:asyncio:Using selector: EpollSelector ERROR:pysma:Could not start session, Session ID expected [result.sid], got {'result': {'sid': None}} INFO:main:No session ID
FYI this is the same issue i had when i try logging in using domcrawler with my own script - i just assume angular must have built in functionality to prevent website scraping checking user agent etc etc as i can't get a sid unless I use a browser (which is why i was thinking of using something like PhantomJS to see if that works but thought i might try your script first).
Edit ill go through your sma library see if i can enable more debugging
Did you find a solution for this?
Hi, any clues as to why I'm getting thrown this error?
SBFSpot connects fine, but was hoping to get a simpler program to work, so I can send the data elsewhere.