Automatic upload from SMA inverter

Is it possible to create an automatic upload for the SMA inverter?
I know it is possible to create an automatic upload van Sunny Explorer to

Uploads from SMA are usually sent from the inverter via bluetooth.

There are a few scripts to upload from SMA listed below -

SBFspot running on a Raspberry Pi is working well for me.

1 Like

Mine works very well too
I would like to add consumption to that too, that’s why I ended up here

I’m running this script on a Raspberry Pi Zero W, to automatically fetch data from my SMA Inverter…

Works like a charm - Polls the Inverter every 5 min via Bluetooth, and uploads the data. It doubles as a HD webcam also :smile:

oskitch. Pleased to see that your Raspi is working well. I have been using the Pi version 2 for a number of years to upload data to PVoutput. I now have BT FTTH installed and although the Pi is well connected by ethernet and clearly visible to the BT Hub 6 it has not been able to upload any data since the switch from Plusnet copper to the exchange to BT. Has anyone got any ideas please? I have changed the gateway in the pi ethernet settings.

Can you see the Internet from the Pi (e.g. can you ping I sometimes find that if I reboot my rooter my Pi looses connection to the Internet and I also have to reboot my Pi to fix this.


Thanks bobboulby for your comment on my pi problem. Using putty I can communicate with the pi 100%. I can ping it from my pc. However I cannot ping anything from the pi on my local network let alone anything outside it.
Here is the network setup file on the pi:
GNU nano 2.2.6 File: /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

As I probably mentioned before the only change here is the ip address of the new bt hub 6 / router. Unfortunately I had never tried the ping command on the pi when it was connected to another bb provider…

Ah! Think I was not understanding how putty works. It would appear that the pi can ping pvoutputs address:
pi@raspberrypi ~ $ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=51 time=125 ms
64 bytes from icmp_req=2 ttl=51 time=124 ms
64 bytes from icmp_req=3 ttl=51 time=124 ms
64 bytes from icmp_req=4 ttl=51 time=124 ms
64 bytes from icmp_req=5 ttl=51 time=124 ms
— ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 124.621/124.808/125.024/0.342 ms

pi@raspberrypi ~ $ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=57 time=9.79 ms
64 bytes from icmp_req=2 ttl=57 time=9.53 ms
64 bytes from icmp_req=3 ttl=57 time=9.48 ms
64 bytes from icmp_req=4 ttl=57 time=9.56 ms
64 bytes from icmp_req=5 ttl=57 time=9.83 ms
— ping statistics —
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 9.483/9.642/9.834/0.154 ms

I’m assuming that you are using SBFSpot on the pi? If so have you checked the log file in smadata/logs? There should be a log file for each day. Also can you ping say from the pi (as opposed to just an ip address)? If not it may be a DNS error.

Finally (and please treat this with caution as I’m no pi networking expert), the gateway of doesn’t look right to me. I’d expect it to be 192.168.1.something.


Thanks Bob for another suggestion. Yes I am definitely using SBFspot in the pi. The router / bt hub 6’s ip address is set to as it saved setting all the devices on my network to new ip addresses.
As you can see below I cannot ping from the pi but can ping ip addresses. Maybe there is a clue here?
pi@raspberrypi ~ $ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=51 time=131 ms
64 bytes from icmp_req=2 ttl=51 time=130 ms
64 bytes from icmp_req=3 ttl=51 time=124 ms
64 bytes from icmp_req=4 ttl=51 time=125 ms
64 bytes from icmp_req=5 ttl=51 time=127 ms
64 bytes from icmp_req=6 ttl=51 time=132 ms
64 bytes from icmp_req=7 ttl=51 time=124 ms
64 bytes from icmp_req=8 ttl=51 time=125 ms
— ping statistics —
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 124.710/127.636/132.000/2.936 ms
pi@raspberrypi ~ $ ping
ping: unknown host
pi@raspberrypi ~ $
pi@raspberrypi ~ $ ping
ping: unknown host
pi@raspberrypi ~ $ ^C
pi@raspberrypi ~ $ ping
ping: unknown host


Looks like a DNS problem then. I’m afraid my expertise is running out now - maybe somebody else here can help or ask over in the Raspberry Pi support forums


Yes I was about to hit the raspi forum as well. Again many thanks Bob for the dialogue.

Hope you get it sorted - I’d be interested to know what the outcome is.


Hi Bob

Still not got this problem licked! However today I used my S7e 'phone to ping “” using the 4G connection and it works. When I turned on the wifi (ie using the BT Fibre route the ping test failed.
This does rather point to BT not resolving the web address. Previously they denied that could happen so I will get onto them again. I wonder if anyone else has had this problem with smaspot on the Pi when using BT for broadband.
BTW I have not had any useful response yet from the Pi forum.
If you know how to make my problem more visible on the pvoutput forum then I would be grateful.

Regards, Martin

Sorry I’ve been away so have only just got around to reading this. It does seem like hard work, BT are a popular ISP so you’d think there would be help available. The fact that you’re having problems with multiple devices on your network does suggest that it’s a BT problem - is it the same from your computer (assuming that you have one)?

The only other thing I could suggest is to to factory reset your router to see if that solves it. You could also try deleting and recreating the wi-fi connection on the Pi although as it’s also happening on your phone I’m not confident that this would work.

Good luck :slight_smile:


Nice to hear from you Bob. I solved the problem only yesterday with some on line help from the Raspi Forum. Dead simple of course. There is file in the Pi “/etc/resolve.conf” . In Putty all you have to do is type this command once logged in to Pi: sudo nano /etc/resolve.conf. One line of text in there “nameserver” No inverted commas so typically it would look like this:
nameserver 8.8.8 8 (note the spaces between the ip addresses) The & are alternative dns servers (google). I now you don’t need this but It is for the benefit of the others who may be stuck. I must have put my original router’s ip address in this file because it was there but it was a while back when I confugured the Pi!! So it was a dns problem, nothing to do with the bb service provider, in my case BT. BTW my Pi is connected with good old ethernet cable! Again many thanks for your interest in my problem.

That’s great news. Assuming that you are fc_solar2011 I can see that you are back on-line although there seem to be a few gaps in your data. I’ve always found SBFspot to be good at catching up when I’ve been off line but never for as long as you.


Yes I am fc_solar2011! Back on line properly today now. I have filled in the missing days manually but the data does not update the daily live production graph.
At least the sun is shining today!

I know I’m pretty late here, but I just got a RPi for some test projects, I have a solar array, so I said “what the heck”, let’s try connecting those two and getting some sweet stats. The things is, everything (or so I see it) goes through Well, what if the site shuts down or something? I personally don’t mind sending my data here, sharring and comparing it with the rest of the world (though I can see how others would), but what I expect is reliability. The idea that, whatever happens to this site, or the internet for that matter, my RPi as long as it receives electricity and is connected to the inverter, it will record, and store everything.
So my question is, is there a script for offline storage and monitoring, or do those other scripts I see here already provide that?