Gerne…
[{"id":"4d4f3690.a8f5a","type":"mqtt in","z":"e4bcc9e7.1e358","name":"go-eCharger - Status","topic":"go-eCharger/ID-XXX/status","qos":"2","datatype":"auto","broker":"9ec0115c.8f7488","nl":false,"rap":false,"rh":"0","x":200,"y":1320,"wires":[["62bd4004.b11798"]]},{"id":"62bd4004.b11798","type":"json","z":"e4bcc9e7.1e358","name":"","pretty":false,"x":350,"y":1400,"wires":[["cbf09105.74cf2","5034e712.55d5c8","cc5ce598.9c88c","3fbda5e6.b105aa","1fc89b43.6512cd","abe83582.1c523","285cd5cd.333d8a","8fd680da.a53e1","1bf211f6.d1e956"]]},{"id":"cbf09105.74cf2","type":"function","z":"e4bcc9e7.1e358","name":"Ladestrom","func":"msg.payload = {\"attribute\":{\"id\":1002,\"value\":Number(msg.payload.amp)}};\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":1360,"wires":[["499a096c.48bdd8"]]},{"id":"62dd2ade.53a1fc","type":"switch","z":"e4bcc9e7.1e358","name":"Knöpfe","property":"payload.attributeId","propertyType":"msg","rules":[{"t":"eq","v":"1001","vt":"num"},{"t":"eq","v":"1002","vt":"str"},{"t":"eq","v":"1005","vt":"str"}],"checkall":"false","repair":false,"outputs":3,"x":440,"y":1900,"wires":[["163d37e.ed7fbc8"],["e0d66ec4.fdc918"],["fe4271f5.8cb398"]],"outputLabels":["Modus","Ladestrom","Aktivierung"]},{"id":"f0585f9f.54116","type":"mqtt out","z":"e4bcc9e7.1e358","name":"go-eCharger - Request","topic":"go-eCharger/ID-XXX/cmd/req","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"9ec0115c.8f7488","x":1270,"y":1880,"wires":[]},{"id":"e0d66ec4.fdc918","type":"function","z":"e4bcc9e7.1e358","name":"Ladestrom","func":"msg.payload = \"amp=\"+msg.payload.targetValue;\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":1880,"wires":[["f0585f9f.54116"]]},{"id":"fe76bba4.1bdd6","type":"link in","z":"e4bcc9e7.1e358","name":"","links":["84d6000f.79eca8"],"x":315,"y":1900,"wires":[["62dd2ade.53a1fc"]]},{"id":"84d6000f.79eca8","type":"link out","z":"e4bcc9e7.1e358","name":"go-eCharger OUT","links":["fe76bba4.1bdd6"],"x":1355,"y":1380,"wires":[]},{"id":"5034e712.55d5c8","type":"function","z":"e4bcc9e7.1e358","name":"akt. Ladevorgang","func":"msg.payload = {\"attribute\":{\"id\":1006,\"value\":Number(msg.payload.dws)*10/3600/1000}};\nreturn msg;","outputs":1,"noerr":0,"x":810,"y":1400,"wires":[["6ab42d4f.32be74"]]},{"id":"dcdc673b.6e5ee","type":"homeeDevice","z":"e4bcc9e7.1e358","virtual-homee":"","name":"go-eCharger","nodeId":"1000","showNodeId":false,"profile":"11","icon":"default","attributes":[{"id":1001,"node_id":1000,"instance":0,"minimum":1,"maximum":2,"current_value":0,"target_value":0,"last_value":0,"unit":"","step_value":1,"editable":1,"type":2,"state":1,"last_changed":1573669587,"changed_by":1,"changed_by_id":0,"based_on":1,"data":"","options":{"automations":["step"]}},{"id":1002,"node_id":1000,"instance":1,"minimum":6,"maximum":16,"current_value":0,"target_value":0,"last_value":0,"unit":"A","step_value":1,"editable":1,"type":2,"state":1,"last_changed":1573669587,"changed_by":1,"changed_by_id":0,"based_on":1,"data":"","options":{"automations":["step"]}},{"id":1005,"node_id":1000,"instance":0,"minimum":0,"maximum":1,"current_value":0,"target_value":0,"last_value":0,"unit":"","step_value":1,"editable":1,"type":1,"state":1,"last_changed":1577388774,"changed_by":1,"changed_by_id":0,"based_on":1,"data":""},{"id":1006,"node_id":1000,"instance":0,"minimum":0,"maximum":100,"current_value":0,"target_value":0,"last_value":0,"unit":"kWh","step_value":0.01,"editable":0,"type":4,"state":1,"last_changed":1579510989,"changed_by":1,"changed_by_id":0,"based_on":1,"data":""},{"id":1007,"node_id":1000,"instance":0,"minimum":0,"maximum":25000,"current_value":0,"target_value":0,"last_value":0,"unit":"W","step_value":1,"editable":0,"type":3,"state":1,"last_changed":1579512125,"changed_by":1,"changed_by_id":0,"based_on":1,"data":""},{"id":1008,"node_id":1000,"instance":1,"minimum":0,"maximum":100000,"current_value":0,"target_value":0,"last_value":0,"unit":"kWh","step_value":0.01,"editable":0,"type":4,"state":1,"last_changed":1579510989,"changed_by":1,"changed_by_id":0,"based_on":1,"data":""}],"x":1230,"y":1380,"wires":[["84d6000f.79eca8"]]},{"id":"163d37e.ed7fbc8","type":"switch","z":"e4bcc9e7.1e358","name":"","property":"payload.targetValue","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":1820,"wires":[["b7021b0b.3553"],["b456eefd.3741d"]],"outputLabels":["Sofort","Strompreis"]},{"id":"b7021b0b.3553","type":"function","z":"e4bcc9e7.1e358","name":"Sofort","func":"global.set(\"goeModus\",1);\nvar msg1 = { payload:\"amp=16\" };\nvar msg2 = { payload:\"ast=0\" };\nvar msg3 = { payload:\"alw=1\" };\nvar msg4 = { payload:\"stp=0\" };\nreturn [ [ msg1, msg2, msg3, msg4 ]];","outputs":1,"noerr":0,"x":770,"y":1800,"wires":[["f0585f9f.54116"]]},{"id":"fe4271f5.8cb398","type":"function","z":"e4bcc9e7.1e358","name":"Aktivierung","func":"msg.payload = \"alw=\"+msg.payload.targetValue;\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":1920,"wires":[["f0585f9f.54116"]]},{"id":"cc5ce598.9c88c","type":"function","z":"e4bcc9e7.1e358","name":"Aktivierung","func":"msg.payload = {\"attribute\":{\"id\":1005,\"value\":Number(msg.payload.alw)}};\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":1320,"wires":[["7b75c7bb.6e80e"]]},{"id":"3fbda5e6.b105aa","type":"function","z":"e4bcc9e7.1e358","name":"akt. Ladeleistung","func":"msg.payload = {\"attribute\":{\"id\":1007,\"value\":Number(msg.payload.nrg[11])*10}};\nreturn msg;","outputs":1,"noerr":0,"x":810,"y":1440,"wires":[["34a1959a.1d345a"]]},{"id":"1fc89b43.6512cd","type":"function","z":"e4bcc9e7.1e358","name":"Gesamt","func":"msg.payload = {\"attribute\":{\"id\":1008,\"value\":Number(msg.payload.eto)/10}};\nreturn msg;","outputs":1,"noerr":0,"x":780,"y":1480,"wires":[["2c9878f.a453808"]]},{"id":"b456eefd.3741d","type":"function","z":"e4bcc9e7.1e358","name":"Überschuss Start","func":"global.set(\"goeModus\",2);\nvar msg1 = { payload:\"amp=6\" };\nvar msg2 = { payload:\"ast=0\" };\nvar msg3 = { payload:\"alw=0\" };\nvar msg4 = { payload:\"stp=0\" };\nreturn [ [ msg1, msg2, msg3, msg4 ]];","outputs":1,"noerr":0,"x":810,"y":1840,"wires":[["f0585f9f.54116"]]},{"id":"7b75c7bb.6e80e","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1010,"y":1320,"wires":[["dcdc673b.6e5ee"]]},{"id":"499a096c.48bdd8","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1010,"y":1360,"wires":[["dcdc673b.6e5ee"]]},{"id":"6ab42d4f.32be74","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1010,"y":1400,"wires":[["dcdc673b.6e5ee"]]},{"id":"34a1959a.1d345a","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1010,"y":1440,"wires":[["dcdc673b.6e5ee"]]},{"id":"2c9878f.a453808","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":1010,"y":1480,"wires":[["dcdc673b.6e5ee"]]},{"id":"abe83582.1c523","type":"switch","z":"e4bcc9e7.1e358","name":"Auto da?","property":"payload.car","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":580,"y":1520,"wires":[["4ffc80db.d43138","b456eefd.3741d"]]},{"id":"4ffc80db.d43138","type":"function","z":"e4bcc9e7.1e358","name":"Modus = 2","func":"msg.payload = {\"attribute\":{\"id\":1001,\"value\":2}};\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":1560,"wires":[["164cee4.3728192"]]},{"id":"164cee4.3728192","type":"delay","z":"e4bcc9e7.1e358","name":"1msg/15s","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"15","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1000,"y":1560,"wires":[["dcdc673b.6e5ee"]]},{"id":"3fa08e77.3a6fca","type":"function","z":"e4bcc9e7.1e358","name":"Start Überschussladung","func":"var aktUeberschuss = global.get(\"Einspeisung\");\nvar msgFreigabe;\n\nif (global.get(\"goeModus\") == 2 && ((Number(msg.payload.car) == 4) || (Number(msg.payload.car)) == 3) && Number(msg.payload.alw) === 0 && aktUeberschuss > 4140) {\n msgFreigabe = { payload:\"alw=1\" };\n}\nreturn msgFreigabe;","outputs":1,"noerr":0,"x":830,"y":1640,"wires":[["f0585f9f.54116"]]},{"id":"b54a1cdf.bffb7","type":"function","z":"e4bcc9e7.1e358","name":"Stopp Überschussladung","func":"var aktUeberschuss = global.get(\"Einspeisung\");\nvar msgFreigabe;\nvar negBatterie = global.get(\"Batterieentladung\");\nif (global.get(\"goeModus\") == 2 && Number(msg.payload.car) == 2 && Number(msg.payload.amp) == 6 && negBatterie < -500) {\n msgFreigabe = { payload:\"alw=0\" };\n}\nreturn msgFreigabe;","outputs":1,"noerr":0,"x":830,"y":1720,"wires":[["f0585f9f.54116"]]},{"id":"285cd5cd.333d8a","type":"delay","z":"e4bcc9e7.1e358","name":"1Msg/30s","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"30","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":580,"y":1640,"wires":[["3fa08e77.3a6fca","b54a1cdf.bffb7","e1e4d946.c3c3f"]]},{"id":"e1e4d946.c3c3f","type":"function","z":"e4bcc9e7.1e358","name":"Regelung Überschussladung","func":"var aktUeberschuss = global.get(\"Einspeisung\");\nvar negNetzbezug = global.get(\"Netzbezug\");\nvar negBatterie = global.get(\"Batterieentladung\");\nvar Ladestrom;\nvar msgLadestrom;\nif (global.get(\"goeModus\") == 2 && Number(msg.payload.car) == 2) {\n Ladestrom = (Number(msg.payload.amp) + ((aktUeberschuss + negNetzbezug + negBatterie) / 710)).toFixed(0); \n if (Ladestrom > 16)\n Ladestrom = 16;\n else if (Ladestrom < 6)\n Ladestrom = 6;\n msgLadestrom = { payload:\"amp=\"+Ladestrom };\n}\nreturn msgLadestrom;","outputs":1,"noerr":0,"x":840,"y":1680,"wires":[["f0585f9f.54116"]]},{"id":"8fd680da.a53e1","type":"function","z":"e4bcc9e7.1e358","name":"","func":"if (Number(msg.payload.car) == 4 && Number(msg.payload.dws) > 350000) {msg.payload =1}else msg.payload=0;\nreturn msg;\n\n","outputs":1,"noerr":0,"x":390,"y":1240,"wires":[["cb4d3b8c.be724"]]},{"id":"f84bc0c5.80f18","type":"link out","z":"e4bcc9e7.1e358","name":"","links":["37366213.1e7b26","6ee29157.bfc2a8"],"x":775,"y":1240,"wires":[]},{"id":"fe2c22f9.16da08","type":"function","z":"e4bcc9e7.1e358","name":"","func":"var homeegramid = 200;\nif (msg.payload == 1)\n{return {payload: \"PUT:/homeegrams/\"+homeegramid+\"?play=1\"}}\n","outputs":1,"noerr":0,"x":670,"y":1240,"wires":[["f84bc0c5.80f18"]]},{"id":"cb4d3b8c.be724","type":"rbe","z":"e4bcc9e7.1e358","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":530,"y":1240,"wires":[["fe2c22f9.16da08"]]},{"id":"1bf211f6.d1e956","type":"debug","z":"e4bcc9e7.1e358","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":380,"y":1680,"wires":[]},{"id":"9ec0115c.8f7488","type":"mqtt-broker","name":"","broker":"192.168.1.27","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]