Replies: 10 comments 5 replies
-
With the current version of SBFspot, the 5min power values can't be send via MQTT. Only the spot values (the power at the time of running SBFspot) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your clear reply, even though it is negative for my purposes. |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying. I simply want to output regular (roughly real-time)
values of the kW delivered by my inverter as mqtt messages, in the same way
as I send kW values (derived from the kWh readings) from my P1 smartmeter.
If I can extract the kW values (in an infinite loop) I can handle the mqtt
part myself using PAHO.
…On Tue, 30 May 2023, 08:10 SBF, ***@***.***> wrote:
even though it is negative for my purposes
What exactly do you have in mind? Sending the last known 5min value should
be possible to add.
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMH663XPY5ZUVTCMSNZQLQDXIWFL3ANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok, thanks for that. I'll look into it. Do I understand that I can set up
SBFspot to publish the mqtt message directly and that I
should just organise my Python script to run it regularly?
…On Tue, 30 May 2023, 10:26 SBF, ***@***.***> wrote:
You can run SBFspot every 5 à 10 seconds to publish the actual power value
(use -ad0 -am0 -ae0 -nocsv -nosql options to disable the things you don't
need)
Some time ago, somebody forked my project
<https://github.com/fasihi01/SBFspot> to run it continuously fot MQTT
purposes
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMH663SHULXY3RPAUSDY5T3XIWVLTANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This kind of recipe might go well into the MQTT doc
https://github.com/SBFspot/SBFspot/wiki/MQTT#quick-reference-for-sbfspot-mqtt
(or perhaps a dedicated more-in-detail page, maybe Quickstart doesn't fit)
…On Tue, 30 May 2023, 20:11 SBF, ***@***.***> wrote:
Do I understand that I can set up SBFspot to publish the mqtt message
directly and that I should just organise my Python script to run it
regularly?
Yes, complete the MQTT settings in the config and add the -mqtt option to
the command line
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABF47HD2X6I2773LCC242UDXIZA6NANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, but (in spite of a lot of searching) I haven't found any
documentation that refers to those options, nor of their use. Where should
I look for that?
Op di 30 mei 2023 om 10:26 schreef SBF ***@***.***>:
… You can run SBFspot every 5 à 10 seconds to publish the actual power value
(use -ad0 -am0 -ae0 -nocsv -nosql options to disable the things you don't
need)
Some time ago, somebody forked my project
<https://github.com/fasihi01/SBFspot> to run it continuously fot MQTT
purposes
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMH663SHULXY3RPAUSDY5T3XIWVLTANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your previous help.
I have now got SBFspot delivering mqtt messages once per minute,
containing only the current power output, as required.
I can read them into Node-red using my mosquitto broker.
The format shown in a debug node is "{"PACTot" : 2500.000 }".
I have tried a lot of ways to convert this in a node-red function node so
that InfluxDB will accept it, but so far without success. I had no problems
earlier with my temperature sensors and my smartmeter outputs.
Do I need to change the SBFspot settings, or can you perhaps suggest how to
reformat the messages in Node-red?
Bob Harris
Op wo 31 mei 2023 om 20:12 schreef SBF ***@***.***>:
… SBFspot -? shows you all the options 😉
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMH663V6UL35AOXEHR6NFD3XI6CYPANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks. In the meantime I realised that SBFspot was outputting JSON code. I
simply inserted a JSON parsing node which outputs a JS object and the
problem went away. I am now able to store the inverter power readings in
InfluxDB and display them as 5 minute averages in Grafana.
SBFspot allows me to select from an enormous range of inverter data and I
may well add more to my system in the future.
Great tool. Thanks for making it available.
…On Thu, 8 Jun 2023, 14:21 SBF, ***@***.***> wrote:
Sorry, I'm not familiar with node red...
You can ask at tweakers.net
<https://gathering.tweakers.net/forum/list_messages/1489893> and mention
AUijtdehaag <https://tweakers.net/gallery/192109>
It's a Dutch forum, but I guess that's not a problem for you ;-)
—
Reply to this email directly, view it on GitHub
<#645 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMH663SWQFUV7VHDKP2FGATXKG7TVANCNFSM6AAAAAAYS3GTPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, this looks exactly like what I'm looking for... I have my SBFspot uploading to PVOutput and also via MQTT to my local home assistant. So if I look at the current "daydata" structure is the following and runs through crontab every 5 minutes:
Do I create a separate file just for MQTT and run more often? So something like this:
Andrun that every minute? |
Beta Was this translation helpful? Give feedback.
-
Sure, here's a concise version: `import requests while True: |
Beta Was this translation helpful? Give feedback.
-
I am building a pretty standard home IOT monitoring system based on sensors/mqtt/node-red/ influxDB and grafana.
The first parts are working well, with
I now want to add (only) the power output from my Sunny Boy 3.6 inverter (to compare with the P1 meter readings) and hope to use SBFSpot installed on a RPI 3B+.
I can connect to my inverter (ethernet)
I don't need (or want) long term storage (SQL or CSV) on the 3B+, nor do I need all the other data that SBFSpot can deliver.
I do not plan to send data to PVOutput.
What is the best approach for extracting and publishing the 5-minute power readings as (timestamped) mqtt messages?
Or is SBFSpot overkill for my purposes and would I be better off scraping the power values from my inverter's web interface?
Beta Was this translation helpful? Give feedback.
All reactions