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
Request -> SMA solar Inverter Data via SBFSpot #335
Comments
here's an output with some more data with all production informations from the past 10 month that comes directly from the solar inverter. the commandline parameter -am is requesting the production data of the past X months (for a detailed day output for the past X days you can use -ad for detailed day data)
the Total Pac is the energy that is acutally produced by the solar facility. so here i'm having approx. 9Kw/h which is surely enough to power a washing machine, dishwasher and other devices alltogether. The data can also be exported to a csv file |
@leader21 I'm using I guess you could also |
👍 at the moment i'm trying to set up the pimatic-log-reager plugin to readout the output of SBFspot and create a variable like $pvcurent for the actual pv-output (Total Pac). if this works,i hope i'm having all i wanted for now. Then i could switch some power plug when $pvcurrent has a value of let's say 2000 watt by rule. but unfortunately i fail :( maybe there is somebody that could give me the missing link... from the above output (have a look two posts upwards) i need the value of Total Pac(in this example it would be 8.870) as a variable. here's my logreader config :
where's my mistake?! |
@leader21 I've not used logreader yet. Another approach would be using shell-execute. For an idea look at my Raspi examples added here: https://github.com/pimatic/pimatic-shell-execute |
You need to supply a regular expression to match the value. Give this a try: {
"id": "pv-current-from-logfile",
"name": "PV-Current",
"class": "LogWatcher",
"file": "/home/pi/sbfspot.log",
"attributes": [
{
"name": "acout",
"type": "number",
"unit": "kW"
}
],
"lines": [
{
"match": "\s*Total Pac\s*:\s*([0-9]+\.[0-9]+)kW",
"acout": "$1"
}
]
},
It should be updated, every time it is logged. |
Ups, did forget that you have to escape the backslash in json:
|
sorry to bother again :( |
Oliver, all's good! The cron job should update the logfile every 10 minutes. I messed up in the crontab and did the update every 10 hours (stupid me ...) |
Here we go! At last i made it so far ... now i can use rules for switching devices like dishwasher or washing machine etc. when there's enough power produced from the intverter. here's my logreader device at the config.json
Also I used the ping-plugin to visualize the network status of the SMA inverter. |
Wondering if there are any photovoltaic owners out there using pimatic?
I just installed SBFSpot. This is a program to collect datas about the power output from SMA photovoltaic inverters and stores these in a sqlite or mysql database.
Maybe this could be useful to monitor your photovoltaic facility with pimatic.
here is the homepage of the script : https://sbfspot.codeplex.com/
the output created via comandline parameters is something like that :
http://pastebin.com/evsQgqgN
there's no productivity data (AC and DC spot data) at the moment since it's dark outside ^^
I can provide some other output or the sql database or more if pimatic would benefit from and somebody is able to adopt this feature since i'm no coder ...
The very useful thing about this could be (if it works) to setup a rule that triggers a switch/remote power plug at a certain powerlevel of the inverter. this can save lots of money since the machines that use lots of power could be switched on when there's enough energy delivered from the solar inverter.
lets say your washing machine is connected to a switch device. so now you're filling up your washing machine and set up a rule like
IF $ACpowerlevel is > 2000 THEN switch on washing-machine
This should switch your washing machine when there are 2000 watts delivered from the inverter.
Actually this can be done by a very expensive device from SMA called "Sunny Home Manager". This costs about 500 Euro with two remote power plugs :(
What do you think about that? I suggest this is a job for pimatic :)
The text was updated successfully, but these errors were encountered: