Hi, ik werk nog maar drie weken met Node-RED, kan dus nog genoeg leren. Ik weet niet of de beregeningsduur omgezet kan worden naar Ă©Ă©n node, maar ik begrijp dat dat de flow wel vereenvoudigt. Ik ben benieuwd naar de mogelijkheden.
De 'beregeningspomp: Aan' zijn inderdaad allemaal hetzelfde en zorgen ervoor dat de pomp wordt aangezet.
Hieronder de flow:
[{"id":"de88e96c.433c7","type":"tab","label":"Beregening","disabled":false,"info":""},{"id":"7d20aaa.73ed054","type":"switch","z":"de88e96c.433c7","name":"Switch","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Uit","vt":"str"},{"t":"eq","v":"30 minuten","vt":"str"},{"t":"eq","v":"60 minuten","vt":"str"},{"t":"eq","v":"90 minuten","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":350,"y":210,"wires":[["7911543f.296774"],["6c029897.9d6ca"],["406a4b93.482b24"],["81612243.4b5aa8"]]},{"id":"10fea9aa.bf56de","type":"server-state-changed","z":"de88e96c.433c7","name":"Beregeningsduur: Uit?","server":"ab0c7805.ea8858","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.beregening_handmatig","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"Uit","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":160,"y":120,"wires":[["7d20aaa.73ed054"],[]]},{"id":"6c029897.9d6ca","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningspomp: Aan","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"switch.fibaro_fgs222_beregeningspomp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":550,"y":180,"wires":[["8c7ad2fc.317e7"]]},{"id":"b7c32034.6c03b","type":"server-state-changed","z":"de88e96c.433c7","name":"Beregeningsduur: 30 min?","server":"ab0c7805.ea8858","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.beregening_handmatig","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"30 minuten","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":150,"y":180,"wires":[["7d20aaa.73ed054"],[]]},{"id":"1e78af24.05b219","type":"server-state-changed","z":"de88e96c.433c7","name":"Beregeningsduur 60 min?","server":"ab0c7805.ea8858","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.beregening_handmatig","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"60 minuten","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":150,"y":240,"wires":[["7d20aaa.73ed054"],[]]},{"id":"c2f169b8.0a6008","type":"server-state-changed","z":"de88e96c.433c7","name":"Beregeningsduur 90 min?","server":"ab0c7805.ea8858","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_select.beregening_handmatig","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"90 minuten","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":150,"y":300,"wires":[["7d20aaa.73ed054"],[]]},{"id":"406a4b93.482b24","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningspomp: Aan","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"switch.fibaro_fgs222_beregeningspomp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":550,"y":240,"wires":[["e6f6797a.45d53"]]},{"id":"81612243.4b5aa8","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningspomp: Aan","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_on","entityId":"switch.fibaro_fgs222_beregeningspomp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":550,"y":300,"wires":[["e0f6584e.6dcac8"]]},{"id":"7911543f.296774","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningspomp: Uit","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"switch.fibaro_fgs222_beregeningspomp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":120,"wires":[["439b69da.1fbe"]]},{"id":"cab977a1.5fb678","type":"comment","z":"de88e96c.433c7","name":"Beregening Handmatig","info":"","x":140,"y":60,"wires":[]},{"id":"732594f6.c76a5c","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningspomp: Uit","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"homeassistant","service":"turn_off","entityId":"switch.fibaro_fgs222_beregeningspomp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":210,"wires":[[]]},{"id":"d3517ad5.e261a8","type":"api-call-service","z":"de88e96c.433c7","name":"Beregeningsduur: Uit","server":"ab0c7805.ea8858","version":1,"debugenabled":false,"service_domain":"input_select","service":"select_option","entityId":"input_select.beregening_handmatig","data":"{\"option\": \"Uit\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":269,"wires":[[]]},{"id":"439b69da.1fbe","type":"change","z":"de88e96c.433c7","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":120,"wires":[["8c7ad2fc.317e7","e6f6797a.45d53","e0f6584e.6dcac8"]]},{"id":"8c7ad2fc.317e7","type":"trigger","z":"de88e96c.433c7","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"30","extend":false,"units":"min","reset":"","bytopic":"all","name":"30 min","x":750,"y":180,"wires":[["732594f6.c76a5c","d3517ad5.e261a8"]]},{"id":"e6f6797a.45d53","type":"trigger","z":"de88e96c.433c7","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"60","extend":false,"units":"min","reset":"","bytopic":"all","name":"60 min","x":750,"y":240,"wires":[["732594f6.c76a5c","d3517ad5.e261a8"]]},{"id":"e0f6584e.6dcac8","type":"trigger","z":"de88e96c.433c7","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"90","extend":false,"units":"min","reset":"","bytopic":"all","name":"90 min","x":750,"y":300,"wires":[["732594f6.c76a5c","d3517ad5.e261a8"]]},{"id":"ab0c7805.ea8858","type":"server","z":"","name":"Home Assistant","addon":true}]
Nogmaals bedankt voor het meedenken!