J’ai également lancé un monitoring du cos phi sur l’entrée et la sortie du Multiplus-II. La valeur est calculée sur base de la puissance active qui est déjà tronquée par le système, donc imprécise. Il y a certainement beaucoup d’impression dans le processus mais je n’ai rien trouvé de mieux.
[{"id":"6fb8331931b7123d","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/ActiveIn/L1/V","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/ActiveIn/L1/V","name":"/Ac/ActiveIn/L1/V","type":"number","value":231.07000732421875},"name":"","onlyChanges":false,"x":700,"y":1000,"wires":[["cd2a0cc80b51d747"]]},{"id":"f81c585edc93b72c","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/ActiveIn/L1/P","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/ActiveIn/L1/P","name":"/Ac/ActiveIn/L1/P","type":"number","value":358},"name":"","onlyChanges":false,"x":700,"y":960,"wires":[["d66203ae2ff5b2f5"]]},{"id":"ef5df9ec2aade5b6","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/ActiveIn/L1/I","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/ActiveIn/L1/I","name":"/Ac/ActiveIn/L1/I","type":"number","value":2.200000047683716},"name":"","onlyChanges":false,"x":700,"y":920,"wires":[["91a8ff21e19f9341"]]},{"id":"91a8ff21e19f9341","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"in_l1_i","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":920,"wires":[[]]},{"id":"d66203ae2ff5b2f5","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"in_l1_p","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":960,"wires":[[]]},{"id":"cd2a0cc80b51d747","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"in_l1_v","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":1000,"wires":[[]]},{"id":"4dcf8762e6cda30e","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/Out/L1/V","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/Out/L1/V","name":"/Ac/Out/L1/V","type":"number","value":232.0500030517578},"name":"","onlyChanges":false,"x":690,"y":1140,"wires":[["9a53759e39670628"]]},{"id":"e31a42f972021315","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/Out/L1/P","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/Out/L1/P","name":"/Ac/Out/L1/P","type":"number","value":288},"name":"","onlyChanges":false,"x":690,"y":1100,"wires":[["f3af81827a3e6025"]]},{"id":"c5b5b2678d02b488","type":"victron-input-custom","z":"b8a1eff49a5f225d","service":"com.victronenergy.vebus/276","path":"/Ac/Out/L1/I","serviceObj":{"service":"com.victronenergy.vebus/276","name":"Multiplus-II 5kVA (276)"},"pathObj":{"path":"/Ac/Out/L1/I","name":"/Ac/Out/L1/I","type":"number","value":1.4600000381469727},"name":"","onlyChanges":false,"x":680,"y":1060,"wires":[["8b271922a388d348"]]},{"id":"8b271922a388d348","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"out_l1_i","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":1060,"wires":[[]]},{"id":"f3af81827a3e6025","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"out_l1_p","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":1100,"wires":[[]]},{"id":"9a53759e39670628","type":"change","z":"b8a1eff49a5f225d","name":"","rules":[{"t":"set","p":"out_l1_v","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":980,"y":1140,"wires":[[]]},{"id":"7528976fb0518586","type":"inject","z":"b8a1eff49a5f225d","name":"Every 1s","props":[],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":620,"y":1200,"wires":[["659c8f1c92765732"]]},{"id":"659c8f1c92765732","type":"function","z":"b8a1eff49a5f225d","name":"Insert","func":"let in_i = flow.get('in_l1_i');\nlet in_v = flow.get('in_l1_v');\nlet in_p = flow.get('in_l1_p');\nlet out_i = flow.get('out_l1_i');\nlet out_v = flow.get('out_l1_v');\nlet out_p = flow.get('out_l1_p');\n\nlet in_pf = in_p/(in_i*in_v);\nlet out_pf = out_p/(out_i*out_v);\n\nnode.status({fill:'grey',shape:'dot',text:in_pf.toFixed(3) + ' | ' + out_pf.toFixed(3)});\n\nlet msg1 = {\n topic: `INSERT INTO VictronPF(in_i, in_v, in_p, in_pf, out_i, out_v, out_p, out_pf)\n VALUES (:in_i, :in_v, :in_p, :in_pf, :out_i, :out_v, :out_p, :out_pf);`,\n payload: {\n in_i: in_i,\n in_v: in_v,\n in_p: in_p,\n in_pf: in_pf,\n out_i: out_i,\n out_v: out_v,\n out_p: out_p,\n out_pf: out_pf\n }\n}\n\nreturn msg1;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":790,"y":1200,"wires":[["29f654d3aff65ee7"]]},{"id":"29f654d3aff65ee7","type":"mysql","z":"b8a1eff49a5f225d","mydb":"8ad113fad435e2b6","name":"MySQL","x":960,"y":1200,"wires":[[]]},{"id":"8ad113fad435e2b6","type":"MySQLdatabase","name":"MySQL","host":"192.168.1.1","port":"3306","db":"NodeRed","tz":"","charset":"UTF8"}]
Avec cette méthode, j’obtiens des cos φ supérieure à 1 (voir capture). Preuve que les imprécisions sont nombreuses et faussent les résultats.