SMA Dashboard

Dashboard für eine SMA PV-Anlage mit Pufferbatterie SMA SUNNY TRIPOWER 8.0 Wechselrichter SMA Sunny Boy Storage 5.0 Speicher Wechselrichter

Danke an rlindner für node-red-contrib-sma-webconnect

[{"id":"73601004.100a8","type":"tab","label":"PV","disabled":false,"info":""},{"id":"f6b78416.0ce198","type":"debug","z":"73601004.100a8","name":"87","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":630,"y":80,"wires":[]},{"id":"f3679e8c.d7852","type":"function","z":"73601004.100a8","name":"Erzeugung","func":"var power = {};\npower.payload = Math.round( msg.payload.power / 10 ) / 100;\nreturn power;","outputs":1,"noerr":0,"x":530,"y":160,"wires":[["f341b3a1.72e17"]]},{"id":"2346c812.729148","type":"function","z":"73601004.100a8","name":"Verbrauch","func":"var power = {};\npower.payload = Math.round( msg.payload.grid_consumption / 10 ) / 100;\nreturn power;","outputs":1,"noerr":0,"x":530,"y":280,"wires":[["5fbfe71a.298a68"]]},{"id":"6a0e855a.7a332c","type":"function","z":"73601004.100a8","name":"Gesamtverbrauch","func":"var consumption = {};\nconsumption.payload = Math.round( ( msg.payload.power - msg.payload.current_charging_w + msg.payload.grid_consumption +  msg.payload.current_discharge_w) / 10 ) / 100;\nreturn consumption;","outputs":1,"noerr":0,"x":550,"y":220,"wires":[["4970980e.3840d8"]]},{"id":"fc5e11eb.ba21a","type":"debug","z":"73601004.100a8","name":"90","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":510,"y":480,"wires":[]},{"id":"a4c26300.abcf4","type":"sma-webconnect","z":"73601004.100a8","ip_address":"IP_BATTERIE","right":"istl","use_tls":true,"device_selection":"sb_storage","x":280,"y":540,"wires":[["fc5e11eb.ba21a","3bfa5404.4d703c","5e69c7db.dafd38","1086b520.5d1b7b","a31e461f.8e82a8"]]},{"id":"a31e461f.8e82a8","type":"sma-webconnect","z":"73601004.100a8","ip_address":"IP_WECHSELRICHTER","right":"istl","use_tls":true,"device_selection":"sb_tripower","x":300,"y":80,"wires":[["f6b78416.0ce198","f3679e8c.d7852","2346c812.729148","1086b520.5d1b7b"]]},{"id":"3bfa5404.4d703c","type":"function","z":"73601004.100a8","name":"Batteriefüllung","func":"var ladung = {};\nladung.payload = ( msg.payload.charge_percent );\nreturn ladung;","outputs":1,"noerr":0,"x":540,"y":540,"wires":[["486ee9ca.3c39f8","5e1bbeba.dd405"]]},{"id":"28d6057e.3ada1a","type":"ui_template","z":"73601004.100a8","group":"dbbe76ba.098d98","name":"Icon Batterie","order":8,"width":1,"height":1,"format":"<i class=\"fa fa-battery-half\" style=\"color:lightgreen; font-size:10px;\">","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":110,"y":740,"wires":[[]]},{"id":"da9abfd6.c7ae","type":"ui_template","z":"73601004.100a8","group":"dbbe76ba.098d98","name":"Icon PV","order":1,"width":1,"height":1,"format":"<i class=\"fa fa-sun-o\" style=\"color:yellow; font-size:10px;\">","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":100,"y":700,"wires":[[]]},{"id":"5e69c7db.dafd38","type":"function","z":"73601004.100a8","name":"Batterieentladung","func":"var entladung = {};\nentladung.payload = Math.round (0 + ( msg.payload.current_charging_w - msg.payload.current_discharge_w )/10)/100;\nreturn entladung;","outputs":1,"noerr":0,"x":530,"y":620,"wires":[["4c2d2aab.a54ce4"]]},{"id":"486ee9ca.3c39f8","type":"ui_level","z":"73601004.100a8","group":"dbbe76ba.098d98","order":10,"width":2,"height":1,"name":"PV Batterie %","label":"","colorHi":"#00b500","colorWarn":"#ff9900","colorNormal":"#ca3838","colorOff":"#595959","min":0,"max":100,"segWarn":"20","segHigh":"40","unit":"%","layout":"sh","channelA":"","channelB":"","decimals":0,"animations":"soft","shape":2,"colorschema":"rainbow","textoptions":"custom","colorText":"#fbff00","fontLabel":"0.75","fontValue":"0.75","fontSmall":"","colorFromTheme":false,"textAnimations":true,"hideValue":false,"tickmode":"segments","peakmode":false,"peaktime":3000,"x":920,"y":480,"wires":[]},{"id":"e16ecd17.05741","type":"ui_chart","z":"73601004.100a8","name":"PV Batterie kWh","group":"dbbe76ba.098d98","order":9,"width":3,"height":3,"label":"<font size = 2 color = \"#00B500\">Batterie {{msg.payload}} kWh","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"step","nodata":"","dot":false,"ymin":"0","ymax":"7.68","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#00b500","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":920,"y":540,"wires":[[]]},{"id":"f341b3a1.72e17","type":"ui_chart","z":"73601004.100a8","name":"PV","group":"dbbe76ba.098d98","order":2,"width":3,"height":3,"label":"<font size = 2 color = \"#FFF700\">PV {{msg.payload}} kW","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"9","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#fff700","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":930,"y":160,"wires":[[]]},{"id":"4970980e.3840d8","type":"ui_text","z":"73601004.100a8","group":"dbbe76ba.098d98","order":3,"width":2,"height":1,"name":"Gesamtverbrauch text","label":"","format":"<font size = 2 color = lightblue>{{msg.payload}} kW","layout":"row-left","x":880,"y":220,"wires":[]},{"id":"5fbfe71a.298a68","type":"ui_text","z":"73601004.100a8","group":"dbbe76ba.098d98","order":5,"width":2,"height":1,"name":"Netzbezug text","label":"","format":"<font size = 2 color = red>{{msg.payload}} kW","layout":"row-left","x":900,"y":280,"wires":[]},{"id":"1086b520.5d1b7b","type":"join","z":"73601004.100a8","name":"","mode":"custom","build":"merged","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":310,"y":220,"wires":[["6a0e855a.7a332c","cbfbb788.9f1938"]]},{"id":"cbfbb788.9f1938","type":"debug","z":"73601004.100a8","name":"kombiniert","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":640,"y":400,"wires":[]},{"id":"69b3f5e4.91e03c","type":"comment","z":"73601004.100a8","name":"Wechselrichter","info":"","x":300,"y":40,"wires":[]},{"id":"1a88b121.82245f","type":"comment","z":"73601004.100a8","name":"Batterie","info":"","x":250,"y":500,"wires":[]},{"id":"5e1bbeba.dd405","type":"function","z":"73601004.100a8","name":"Batterie in kWh","func":"var ladung = {};\nladung.payload = Math.round( msg.payload *7.68 / 1 )/100;\nreturn ladung;","outputs":1,"noerr":0,"x":720,"y":540,"wires":[["e16ecd17.05741"]]},{"id":"4c2d2aab.a54ce4","type":"ui_gauge","z":"73601004.100a8","name":"","group":"dbbe76ba.098d98","order":12,"width":2,"height":2,"gtype":"gage","title":"<font size=1 color=\"#00B500\">Ladung","label":"kW","format":"{{value}}","min":"-4.7","max":"4.7","colors":["#ca3838","#595959","#00b500"],"seg1":"-0.1","seg2":"0.1","x":850,"y":620,"wires":[]},{"id":"c2cbe90f.c60308","type":"interval","z":"73601004.100a8","name":"20s","interval":"20","onstart":true,"msg":"ping","showstatus":false,"unit":"seconds","statusformat":"YYYY-MM-D HH:mm:ss","x":70,"y":540,"wires":[["a4c26300.abcf4"]]},{"id":"dbbe76ba.098d98","type":"ui_group","z":"","name":"PV","tab":"6dd6fbb7.f2a4b4","order":1,"disp":false,"width":6,"collapse":false},{"id":"6dd6fbb7.f2a4b4","type":"ui_tab","z":"","name":"Tardis","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Flow Info

Created 4 years, 11 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x3)
  • function (x6)
  • join (x1)
Other

Tags

  • SMA
  • PV
  • Photovoltaik
  • Wechselrichter
  • Dashboard
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option