SMA Sunny Boy 1.5

Moderator: leecollings

rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post by rklomp »

Do you have pip installed?
Can you try running "sudo pip3 install requests"

- René
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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"
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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.
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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?
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post by rklomp »

Try running:

python3 get-pip.py
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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?
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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]
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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.
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post by rklomp »

Good to hear! If you come across any other issues please let me know :)
svdhaar
Posts: 36
Joined: Friday 10 April 2020 7:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
Joske
Posts: 40
Joined: Wednesday 10 June 2020 9:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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.
Joske
Posts: 40
Joined: Wednesday 10 June 2020 9:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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 :(
Joske
Posts: 40
Joined: Wednesday 10 June 2020 9:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post 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
rklomp
Posts: 20
Joined: Thursday 19 March 2020 22:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: SMA Sunny Boy 1.5

Post by rklomp »

Yes best is to use my version.
Can you supply the log output?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests