Page 2 of 5

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 9:04
by rklomp
Do you have pip installed?
Can you try running "sudo pip3 install requests"

- René

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 9:49
by svdhaar
rklomp wrote: Friday 10 April 2020 9:04 Do you have pip installed?
Can you try running "sudo pip3 install requests"

- René
No pip installed. Will do it directly and let you if it helps.

Pip is installed succefully:

https://imgshare.io/image/4rUKl
I have added the SMA hardware again, still the same error.

Where / how to use the command sudo pip3 install requests?

"command not found"

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 9:50
by rklomp
What version of Python are you running? It looks like you have installed pip for python2.7. You should have pip for python3 aka pip3.
Try piping the curl command to python3 instead.

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 10:16
by svdhaar
I'm running Python 3.5.1-0108

When i use the general command, PIP 2 seems te get installed (pip20.0.2)
Image

https://imgshare.io/image/pip.4rJYw

Could you please help me with the correct syntaxt to download and /or install pip3?

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 10:24
by rklomp
Try running:

python3 get-pip.py

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 10:51
by svdhaar
Seems succesfully installed, but stil the same error in domoticz log and stil not possible to run the command sudo pip3



error from domoticz and install pip3 log
https://imgshare.io/image/pip.4rDzn

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 10:55
by rklomp
The issue is clearly stated in the warning.

add /volume1/@appstore/py3k/usr/local/bin to your PATH

or just run /volume1/@appstore/py3k/usr/local/bin/pip3

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 11:04
by svdhaar
Hi Rene,

As mentioned before, i'm a noob concerning SSH / Linux / developing..
sorry for my questions.

Could you please explain a bit more about your last comment?

where should i add the path you mentioned? in the plugin.py script?

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 11:06
by rklomp
https://opensource.com/article/17/6/set-path-linux

or just run

Code: Select all

/volume1/@appstore/py3k/usr/local/bin/pip3 install requests

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 12:29
by svdhaar
jeeeej, hardware and devices are visable.

one question about this error.
In the hardware config i specified the ipadres. It is an internal adres, so no https is configured.
It seems that port 443 is automatically added?



2020-04-10 12:25:05.084 (SMA omvormer) Error accessing SMA inverter on 192.168.0.200; HTTPSConnectionPool(host='192.168.0.200', port=443): Max retries exceeded with url: /dyn/login.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x4850ac50>: Failed to establish a new connection: [Errno 111]

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 12:40
by rklomp
What software version a you running?
Mine is using 3.10.16.R and serving https by default.

If you access 192.168.0.200 in your browser, are you only able to access it on port 80? not 443?

EDIT:
I made the protocol configurable now.
Go to the plugin directory and do a git pull
After that set the protocol in the domoticz GUI.

Re: SMA Sunny Boy 1.5

Posted: Friday 10 April 2020 12:55
by svdhaar
My converter is a SB1.5-1VL-40 293, with firmware version 3.10.5.R

via https the converter is not available. Via http://192.** it is available

super! thats quick.

What is de correct syntax for a git pull? :?

Nevermind :-)

Working like a charm!! thx for your support

Re: SMA Sunny Boy 1.5

Posted: Saturday 11 April 2020 0:11
by rklomp
Good to hear! If you come across any other issues please let me know :)

Re: SMA Sunny Boy 1.5

Posted: Tuesday 21 April 2020 8:03
by svdhaar
rklomp wrote: Saturday 11 April 2020 0:11 Good to hear! If you come across any other issues please let me know :)
Hi, one question. The script works really nice! But now and then an error occurs:
This seems to started after i installed https://github.com/Xorfor/Domoticz-Speedtest-Plugin

There's no issue with updating the sensors, but it's always better when there are no errors at all.

The query intervall is 10min on the SMA hardware, and i've setup the speedtest interval at 90min.



2020-04-21 07:32:13.949 Error: SMA omvormer hardware (5) thread seems to have ended unexpectedly
2020-04-21 07:32:28.896 Error: SMA omvormer hardware (5) thread seems to have ended unexpectedly
2020-04-21 07:32:29.047 Error: Internet speedtest hardware (9) thread seems to have ended unexpectedly
2020-04-21 07:32:43.543 Error: SMA omvormer hardware (5) thread seems to have ended unexpectedly
2020-04-21 07:32:43.573 Error: Internet speedtest hardware (9) thread seems to have ended unexpectedly

Re: SMA Sunny Boy 1.5

Posted: Tuesday 21 April 2020 12:56
by rklomp
I have seen that issue at my setup before as well, but have not been able to figure out the exact issue yet

Re: SMA Sunny Boy 1.5

Posted: Wednesday 10 June 2020 9:25
by Joske
Hello, first of all...thanks for sharing this all!!

A little question:
I dit everything like told and succesfully loaded the python script. In the pull down menu the SMA Sunnyboy is visible.
The only question i have:

I can only fill in user name / password.
But when i acces my Sunnyboy directly via my network (URL with IP) is also have to choose for 'installer/user'.

How do i have to login?

EDIT: I added 2 variantes:

1. http://192.168.1.XXX/?login=Gebruiker

and then bij the fiels 'password' i filled in my password.

2. http://192.168.1.XXX/?login=Gebruiker&password=XXX

On a direct URl (chrome) it works, but i can't see the device within Domoticz

Re: SMA Sunny Boy 1.5

Posted: Wednesday 10 June 2020 13:36
by rklomp
It uses the User account to login to the device.

At IP Address fill in the IP of the device, not the URL.
At User group password the password of the "User" account.

Re: SMA Sunny Boy 1.5

Posted: Wednesday 10 June 2020 13:48
by Joske
Thanks, sorry...i wasn't quite clear

I also tried:

192.168.1.X AND the password (the one i have to give AFTER i choose between INSTALLER or USER)

At hardware i filled in:

----------------

Type: SMA Sunny Boy 1.5 Solar Inverter
Timeout: Niet actief
SMA Sunny Boy 1.5 Solar Inverter Plugin
IP Adres:
192.168.1.X
User group password:
•••••••••••
Debug:
True

---------------
Nothing works :(

Re: SMA Sunny Boy 1.5

Posted: Wednesday 10 June 2020 14:31
by Joske
What i did now:

Went to (your) URL:https://github.com/rklomp/Domoticz-SMA- ... /plugin.py

And made an new plugin.py (via 'touch plugin.py) and via NANO is copied and pasted the sourcecode of your file

Still doesn't work

Re: SMA Sunny Boy 1.5

Posted: Wednesday 10 June 2020 14:34
by rklomp
Yes best is to use my version.
Can you supply the log output?