The SMA Power Reducer Box is a device for control of PV plants via some external control (usually ripple receiver from the grid operator). It has 4 digital inputs to select from up to 16 states of active and reactive power limitation.
For whatever reason, reading the current active power limitation setpoint value via Modbus is not possible. Nor can the value be read from the inverters or other plant devices – or SMA Webbox – using Modbus.
The solution I came up with is a bit hacky – but using Mango Automation, you can configure a HTTP retriever data source and regex expression to scrape and parse the value from the Power Reducer Box’s internal web server:
The public-access URL for the setpoint is:
1 |
http:\/\/1.2.3.4\/index.php?module=PlantStatus&action=index |
And this is the regex expression that will match the active power limitation setpoint:
1 |
(?<=L3: )(.*)(?=%) |
And here is the complete JSON export:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
{ "dataSources":[ { "xid":"DS_158029", "name":"Power Reducer Box", "enabled":true, "type":"HTTP_RETRIEVER", "alarmLevels":{ "PARSE_EXCEPTION":"NONE", "DATA_RETRIEVAL_FAILURE":"INFORMATION", "SET_POINT_FAILURE":"NONE" }, "purgeType":"YEARS", "updatePeriodType":"MINUTES", "quantize":true, "retries":2, "setPointUrl":"", "timeoutSeconds":30, "updatePeriods":5, "url":"http:\/\/1.2.3.4\/index.php?module=PlantStatus&action=index", "purgeOverride":true, "purgePeriod":1 } ], "dataPoints":[ { "xid":"DP_172704", "name":"Active Power Limitation Setpoint", "enabled":true, "loggingType":"ON_CHANGE", "intervalLoggingPeriodType":"MINUTES", "intervalLoggingType":"INSTANT", "purgeType":"YEARS", "pointLocator":{ "dataType":"NUMERIC", "ignoreIfMissing":false, "setPointName":"", "settable":false, "timeFormat":"", "timeRegex":"", "valueFormat":"###.#", "valueRegex":"(?<=L3: )(.*)(?=%)" }, "eventDetectors":[ { "xid":"PED_028817", "type":"LOW_LIMIT", "alarmLevel":"INFORMATION", "limit":99.0, "durationType":"SECONDS", "duration":60, "alias":"" } ], "plotType":"STEP", "unit":"%", "chartColour":"", "chartRenderer":{ "type":"TABLE", "limit":10 }, "dataSourceXid":"DS_158029", "defaultCacheSize":1, "deviceName":"Power Reducer Box", "discardExtremeValues":false, "discardHighLimit":0.0, "discardLowLimit":0.0, "intervalLoggingPeriod":15, "intervalLoggingSampleWindowSize":0, "overrideIntervalLoggingSamples":false, "purgeOverride":true, "purgePeriod":1, "textRenderer":{ "type":"PLAIN", "useUnitAsSuffix":true, "unit":"%", "renderedUnit":"%", "suffix":"" }, "tolerance":0.0 } ] } |
Misc logos and graphics
I dug up some old logos and graphics that I had created for various purposes (circa 2008-2011). Concept logos for a university drama society/club: Logo concept for an online counselling website Logo concepts ... Read more
2003 Prius (NHW11) stock stereo replacement
I installed a JVC KD-R80BT in the CD Changer slot (the single-DIN slot just below the air con controls) of my NHW11 2003 Prius. It works perfectly and I'm really happy with how ... Read more