Bonjour,
Pour ma part, j’utilise une compteur avec des pinces (Exemple en Zigbee) Pouconnaître ma production et ma consommationon en instantané ce qui me permet ensuite d’ allumer tel ou tel objet (le chauffe-eaux , la voiture, le radiateur…) pour le surplus, j’en ai presque pas car j’utilise un routeur solaire ( MK2PVrouter) c’est le top pour chauffer ton eau chaude (sanitaire ou chauffage). Et pour répondre à ta question effectivement c’est du on off les onduleur (DCBEL) ne sont pas vendu en france et trés chére mais ça serais le top si tu a comme moi une voiture électrique. Un exemple ce que ce j’ai fait (NodRed) pour l’enclenchement de ma pompe de piscine en fonction du mode que je chosis (ON/OFF/ECO/NORMAL). Si cela peut t’aidé un peu, je pense que c’est loin d’être parfait mais cela fonctionne pour moi et j’essaie de l’optimiser quand je peux.
[{"id":"f399d89b87dc56d2","type":"group","z":"e849edfbed05891e","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["e3514eb6b2d0fbb5","5bd3498da1648c56","eb84a5050f9fe342","9082e8e53e0c8bb3","fe49d5b40a06f712","8f48860932730bf7","dabfe893bdd7472f","ee9c3848dd8b707b","5af96519936e024d","b56d53c0d26e6be7","740cda549d910ae3","e87687f994c4caa0","22982f457c97ca97","df538994fc61cbc8","65c6d473e41c9813","bf3968997ddf07e0","6ed159cf996a3d66","d66c290bab92f962","2ceb4e576bde1963","93412f0e85f274b8","5aa0c67bd7437345","071fe8cdaac13fd8","e648d8446679a71d","3e8ce3154c62d692","83364ef2021c341b","25132785f14da09c","8d6522a69d1c573b","318b978f08788405","2254f2f0697066df","df655e741276f9c3","3db86996b7c4f7a1","55df5cdfd3d0b121","0896047c2f0ce4da","8c293bc85295043f"],"x":174,"y":3779,"w":1932,"h":402},{"id":"76d10c2a9a2521c1","type":"subflow","name":"Subflow 1 (ProdSolaire-Conso)","info":"","category":"","in":[{"x":140,"y":120,"wires":[{"id":"bb887f20e0281a5f"}]}],"out":[{"x":1220,"y":120,"wires":[{"id":"ebe431ae67d730f1","port":0}]}],"env":[],"meta":{},"color":"#DDAA99"},{"id":"125343b26917a4b7","type":"api-current-state","z":"76d10c2a9a2521c1","name":"Conso","server":"a7515b50e9498ec2","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.shelly_shem_485519c9c2da_1_current_consumption","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"conso","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":310,"y":80,"wires":[["806250211cd55fc5"]]},{"id":"eedd36a0cdb53279","type":"api-current-state","z":"76d10c2a9a2521c1","name":"Prod","server":"a7515b50e9498ec2","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.shelly_shem_485519c9c2da_2_current_consumption","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"topic","propertyType":"msg","value":"prod","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":310,"y":160,"wires":[["e7f39985b0e8a796"]]},{"id":"4eb79edf9e1cc7ee","type":"join","z":"76d10c2a9a2521c1","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"1","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":630,"y":120,"wires":[["7e353c58ae5ac963"]]},{"id":"7e353c58ae5ac963","type":"change","z":"76d10c2a9a2521c1","name":"Prod - Conso ","rules":[{"t":"set","p":"payload","pt":"msg","to":"$max([payload.prod, 0]) - $max([payload.conso, 0])","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":120,"wires":[["ebe431ae67d730f1"]]},{"id":"e7f39985b0e8a796","type":"switch","z":"76d10c2a9a2521c1","name":">=0","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":160,"wires":[["4eb79edf9e1cc7ee"]]},{"id":"ebe431ae67d730f1","type":"smooth","z":"76d10c2a9a2521c1","name":"Moyenne sur 5 min ","property":"payload","action":"mean","count":"20","round":"","mult":"single","reduce":false,"x":1070,"y":120,"wires":[[]]},{"id":"806250211cd55fc5","type":"switch","z":"76d10c2a9a2521c1","name":">=0","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":80,"wires":[["4eb79edf9e1cc7ee"]]},{"id":"bb887f20e0281a5f","type":"junction","z":"76d10c2a9a2521c1","x":200,"y":120,"wires":[["125343b26917a4b7","eedd36a0cdb53279"]]},{"id":"a7515b50e9498ec2","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"e3514eb6b2d0fbb5","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ON Pompe Pac Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine","switch.pompe_piscine"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1970,"y":4040,"wires":[[]]},{"id":"5bd3498da1648c56","type":"rbe","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1670,"y":4040,"wires":[["318b978f08788405"]]},{"id":"eb84a5050f9fe342","type":"rbe","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1670,"y":3920,"wires":[["8d6522a69d1c573b"]]},{"id":"9082e8e53e0c8bb3","type":"rbe","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1670,"y":4100,"wires":[["df655e741276f9c3"]]},{"id":"fe49d5b40a06f712","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"> 1000w","rules":[{"t":"set","p":"payload","pt":"msg","to":">1000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1540,"y":4040,"wires":[["5bd3498da1648c56"]]},{"id":"8f48860932730bf7","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"> 1500w","rules":[{"t":"set","p":"payload","pt":"msg","to":">1500","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1540,"y":3920,"wires":[["eb84a5050f9fe342"]]},{"id":"dabfe893bdd7472f","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"-500w","rules":[{"t":"set","p":"payload","pt":"msg","to":"<-500","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1530,"y":4100,"wires":[["9082e8e53e0c8bb3"]]},{"id":"ee9c3848dd8b707b","type":"rbe","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1670,"y":3980,"wires":[["b56d53c0d26e6be7"]]},{"id":"5af96519936e024d","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"< 0w","rules":[{"t":"set","p":"payload","pt":"msg","to":"<0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1530,"y":3980,"wires":[["ee9c3848dd8b707b"]]},{"id":"b56d53c0d26e6be7","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"OFF Pac Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1950,"y":3980,"wires":[[]]},{"id":"740cda549d910ae3","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"OFF Pac Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1950,"y":4100,"wires":[[]]},{"id":"e87687f994c4caa0","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ON Pompe Pac Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine","switch.pompe_piscine"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1970,"y":3920,"wires":[[]]},{"id":"22982f457c97ca97","type":"debug","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"OFF","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1250,"y":3840,"wires":[]},{"id":"df538994fc61cbc8","type":"debug","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ON","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1250,"y":4140,"wires":[]},{"id":"65c6d473e41c9813","type":"switch","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"Test Mode PAC Piscine","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"PAC Piscine OFF","vt":"str"},{"t":"eq","v":"PAC Piscine ECO","vt":"str"},{"t":"eq","v":"PAC Piscine NORMAL","vt":"str"},{"t":"eq","v":"PAC Piscine ON","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":350,"y":4000,"wires":[["071fe8cdaac13fd8"],["2ceb4e576bde1963"],["93412f0e85f274b8"],["3e8ce3154c62d692"]]},{"id":"bf3968997ddf07e0","type":"comment","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"PAC Piscine","info":"","x":270,"y":3820,"wires":[]},{"id":"6ed159cf996a3d66","type":"api-current-state","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"Mode PAC Piscine","server":"795cbd51.9e8064","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_select.pac_piscine","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":350,"y":4060,"wires":[["65c6d473e41c9813"]]},{"id":"d66c290bab92f962","type":"link in","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"link in 52","links":["26a6fcc138e50d62","39971fb2e071bd27","3fb6d283d56cf722","3a8568e6fa9bf3d3","47cf503d20df0eeb","e14e530f81913139","5b961b8afd702c7a","57d821ea16314833","9535abb87a39f8b9","e6b5f6961c5eafc2","1791f04aed8f8c60"],"x":225,"y":4060,"wires":[["6ed159cf996a3d66"]],"icon":"node-red-contrib-modbus/modbus-icon.png"},{"id":"2ceb4e576bde1963","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"Eco","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":579,"y":3980,"wires":[["55df5cdfd3d0b121"]]},{"id":"93412f0e85f274b8","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"Nrmal","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":579,"y":4020,"wires":[["0896047c2f0ce4da"]]},{"id":"5aa0c67bd7437345","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ON Pompe et PAC Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine","switch.pompe_piscine"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1040,"y":4140,"wires":[["df538994fc61cbc8"]]},{"id":"071fe8cdaac13fd8","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"OFF","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":579,"y":3940,"wires":[["3db86996b7c4f7a1"]]},{"id":"e648d8446679a71d","type":"api-call-service","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"OFF PAC Piscine","server":"795cbd51.9e8064","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":[],"entityId":["switch.pac_piscine"],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","output_location":"","output_location_type":"none","x":1010,"y":3840,"wires":[["22982f457c97ca97"]]},{"id":"3e8ce3154c62d692","type":"change","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ON","rules":[{"t":"set","p":"payload","pt":"msg","to":"ON","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":579,"y":4060,"wires":[["8c293bc85295043f"]]},{"id":"83364ef2021c341b","type":"inject","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":350,"y":4120,"wires":[["6ed159cf996a3d66"]]},{"id":"25132785f14da09c","type":"switch","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"1500","vt":"str"},{"t":"lt","v":"0","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1390,"y":3940,"wires":[["8f48860932730bf7"],["5af96519936e024d"]]},{"id":"8d6522a69d1c573b","type":"delay","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"1mg/5'","pauseType":"rate","timeout":"4","timeoutUnits":"hours","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":1790,"y":3920,"wires":[["e87687f994c4caa0"]]},{"id":"318b978f08788405","type":"delay","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"1mg/5'","pauseType":"rate","timeout":"4","timeoutUnits":"hours","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":1790,"y":4040,"wires":[["e3514eb6b2d0fbb5"]]},{"id":"2254f2f0697066df","type":"switch","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"1000","vt":"str"},{"t":"lt","v":"-500","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1390,"y":4060,"wires":[["fe49d5b40a06f712"],["dabfe893bdd7472f"]]},{"id":"df655e741276f9c3","type":"delay","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"1mg/1'","pauseType":"rate","timeout":"4","timeoutUnits":"hours","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":1790,"y":4100,"wires":[["740cda549d910ae3"]]},{"id":"3db86996b7c4f7a1","type":"delay","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","pauseType":"rate","timeout":"4","timeoutUnits":"hours","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":780,"y":3840,"wires":[["e648d8446679a71d"]]},{"id":"55df5cdfd3d0b121","type":"subflow:76d10c2a9a2521c1","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ProdSolaire-Conso","x":1010,"y":3940,"wires":[["25132785f14da09c"]]},{"id":"0896047c2f0ce4da","type":"subflow:76d10c2a9a2521c1","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"ProdSolaire-Conso","x":1010,"y":4060,"wires":[["2254f2f0697066df"]]},{"id":"8c293bc85295043f","type":"delay","z":"e849edfbed05891e","g":"f399d89b87dc56d2","name":"","pauseType":"rate","timeout":"4","timeoutUnits":"hours","rate":"1","nbRateUnits":"5","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":780,"y":4140,"wires":[["5aa0c67bd7437345"]]},{"id":"795cbd51.9e8064","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
@+