Advertisement
Guest User

Multiplus control

a guest
Apr 3rd, 2022
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.96 KB | None | 0 0
  1. [{"id":"0af1caf9b5706c0a","type":"inject","z":"0de42e6673f11eb1","name":"SOC","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"19","payloadType":"num","x":110,"y":40,"wires":[["c78f555baf2d63c0"]]},{"id":"b1ceb1e97969db4e","type":"inject","z":"0de42e6673f11eb1","name":"Ladebryter","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":120,"y":80,"wires":[["825c4e2a4f955e32"]]},{"id":"c78f555baf2d63c0","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"soc","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":40,"wires":[[]]},{"id":"825c4e2a4f955e32","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"ladebryter","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":80,"wires":[[]]},{"id":"1f15ce6d0ebe7784","type":"inject","z":"0de42e6673f11eb1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"soc","payloadType":"global","x":120,"y":200,"wires":[["d0664ae79ba3cb7d"]]},{"id":"d0664ae79ba3cb7d","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"soc","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":200,"wires":[["098dca52a96c2ac7"]]},{"id":"e2a1b7d2f9bec783","type":"inject","z":"0de42e6673f11eb1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ladebryter","payloadType":"global","x":140,"y":260,"wires":[["716370ddb394a3cd"]]},{"id":"716370ddb394a3cd","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"ladebryter","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":260,"wires":[["098dca52a96c2ac7"]]},{"id":"098dca52a96c2ac7","type":"join","z":"0de42e6673f11eb1","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":490,"y":260,"wires":[["8a7e5e57dc2deed0"]]},{"id":"4d13aa164bbbb011","type":"inject","z":"0de42e6673f11eb1","name":"Batteritemperatur","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"25","payloadType":"num","x":140,"y":120,"wires":[["96984cdc937780d4"]]},{"id":"96984cdc937780d4","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"batt_temp","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":120,"wires":[[]]},{"id":"a608a295c24a24e9","type":"inject","z":"0de42e6673f11eb1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"batt_temp","payloadType":"global","x":140,"y":320,"wires":[["3c723f83b07e5baa"]]},{"id":"3c723f83b07e5baa","type":"change","z":"0de42e6673f11eb1","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"batt_temp","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":320,"wires":[["098dca52a96c2ac7"]]},{"id":"9a40a4d74002aec1","type":"switch","z":"0de42e6673f11eb1","name":"SOC under 20?","property":"payload.soc","propertyType":"msg","rules":[{"t":"lte","v":"20","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":820,"y":260,"wires":[["ce60a2a3c1d3f4c0"]]},{"id":"8a7e5e57dc2deed0","type":"switch","z":"0de42e6673f11eb1","name":"Charger on?","property":"payload.ladebryter","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":650,"y":260,"wires":[["9a40a4d74002aec1","b2d775d720be7163"]]},{"id":"ce60a2a3c1d3f4c0","type":"switch","z":"0de42e6673f11eb1","name":"Batt_temp_route","property":"payload.batt_temp","propertyType":"msg","rules":[{"t":"lte","v":"0","vt":"str"},{"t":"btwn","v":"1","vt":"num","v2":"10","v2t":"num"},{"t":"btwn","v":"11","vt":"num","v2":"20","v2t":"num"},{"t":"btwn","v":"21","vt":"num","v2":"50","v2t":"num"},{"t":"gte","v":"51","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1010,"y":260,"wires":[["98de5866a2f22b57"],["85d0b8a3186eb566"],["66942aa972ea8a5f"],["731b2d8935d6b8d0"],["faa0d09cc25c45cd"]]},{"id":"b2d775d720be7163","type":"switch","z":"0de42e6673f11eb1","name":"SOC 21-30%","property":"payload.soc","propertyType":"msg","rules":[{"t":"btwn","v":"21","vt":"num","v2":"30","v2t":"num"}],"checkall":"true","repair":false,"outputs":1,"x":810,"y":480,"wires":[["9a17ebea7952145f"]]},{"id":"9a17ebea7952145f","type":"switch","z":"0de42e6673f11eb1","name":"Batt_temp_route","property":"payload.batt_temp","propertyType":"msg","rules":[{"t":"lte","v":"0","vt":"str"},{"t":"btwn","v":"1","vt":"num","v2":"10","v2t":"num"},{"t":"btwn","v":"11","vt":"num","v2":"20","v2t":"num"},{"t":"btwn","v":"21","vt":"num","v2":"50","v2t":"num"},{"t":"gte","v":"51","vt":"num"}],"checkall":"true","repair":false,"outputs":5,"x":1010,"y":480,"wires":[["57b558241628bd3f"],["f18c86024bce2876"],["1a20de13f0ef506e"],["83aa912de5517a09"],["01cc96239af6aae8"]]},{"id":"57b558241628bd3f","type":"debug","z":"0de42e6673f11eb1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":420,"wires":[]},{"id":"f18c86024bce2876","type":"debug","z":"0de42e6673f11eb1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":460,"wires":[]},{"id":"1a20de13f0ef506e","type":"debug","z":"0de42e6673f11eb1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":500,"wires":[]},{"id":"83aa912de5517a09","type":"debug","z":"0de42e6673f11eb1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":540,"wires":[]},{"id":"01cc96239af6aae8","type":"debug","z":"0de42e6673f11eb1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1230,"y":580,"wires":[]},{"id":"85d0b8a3186eb566","type":"change","z":"0de42e6673f11eb1","name":"Charger to 25A","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":220,"wires":[["8a10aba2dde1db08"]]},{"id":"66942aa972ea8a5f","type":"change","z":"0de42e6673f11eb1","name":"Charger to 70A","rules":[{"t":"set","p":"payload","pt":"msg","to":"70","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":260,"wires":[["8a10aba2dde1db08"]]},{"id":"98de5866a2f22b57","type":"change","z":"0de42e6673f11eb1","name":"Charger to 0A","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":180,"wires":[["8a10aba2dde1db08"]]},{"id":"731b2d8935d6b8d0","type":"change","z":"0de42e6673f11eb1","name":"Charger to 120A","rules":[{"t":"set","p":"payload","pt":"msg","to":"120","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":300,"wires":[["8a10aba2dde1db08"]]},{"id":"faa0d09cc25c45cd","type":"change","z":"0de42e6673f11eb1","name":"Charger to 60A","rules":[{"t":"set","p":"payload","pt":"msg","to":"60","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1260,"y":340,"wires":[["8a10aba2dde1db08"]]},{"id":"8a10aba2dde1db08","type":"debug","z":"0de42e6673f11eb1","name":"Multiplus","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1560,"y":280,"wires":[]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement