[{"id":"b26387e6.b756a8","type":"comment","z":"57b27d1b.16f004","name":"Run predefined program - 100% flame height to ecowave comfort","info":"","x":364,"y":980,"wires":[]},{"id":"d9927486.3697c8","type":"switch","z":"57b27d1b.16f004","name":"Evaluate DruControl State","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"COMFORT","vt":"str"},{"t":"eq","v":"ECO","vt":"str"},{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":430,"y":1060,"wires":[["f5a7f25b.e9ce3"],["a622d26a.49b8c"],["6410654c.8806dc"]]},{"id":"1830d2bd.1baacd","type":"switch","z":"57b27d1b.16f004","name":"Evaluate DruStatus","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"15424","vt":"str"},{"t":"neq","v":"15424","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":994,"y":960,"wires":[["16cf5c52.521b94"],["6d4abcc0.eb9414"]]},{"id":"c2d7d88.70cbf28","type":"switch","z":"57b27d1b.16f004","name":"Evaluate DruStatus","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"15424","vt":"num"},{"t":"neq","v":"15424","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":994,"y":1060,"wires":[["c3989f71.12cb3"],["7a69563f.e8bf78"]]},{"id":"cdf10470.b227f8","type":"switch","z":"57b27d1b.16f004","name":"Evaluate DruStatus","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"15424","vt":"num"},{"t":"neq","v":"15424","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":994,"y":1200,"wires":[[],["de48f2c7.600ea"]]},{"id":"5de44339.12cfdc","type":"modbus-write","z":"57b27d1b.16f004","name":"40200","showStatusActivities":true,"showErrors":true,"unitid":"2","dataType":"HoldingRegister","adr":"40200","quantity":"1","server":"2ed1d669.4e523a","x":2474,"y":1020,"wires":[[],[]]},{"id":"e033c4e0.6d6398","type":"comment","z":"57b27d1b.16f004","name":"Action register","info":"","x":2504,"y":980,"wires":[]},{"id":"de48f2c7.600ea","type":"change","z":"57b27d1b.16f004","name":"Turn DRU OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1224,"y":1200,"wires":[["5de44339.12cfdc"]]},{"id":"16cf5c52.521b94","type":"change","z":"57b27d1b.16f004","name":"Turn DRU ON (all burners)","rules":[{"t":"set","p":"payload","pt":"msg","to":"101","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1254,"y":880,"wires":[["5de44339.12cfdc","3dee4beb.951424"]]},{"id":"3dee4beb.951424","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1304,"y":920,"wires":[["aafce51b.630c48"]]},{"id":"2ce6f610.63015a","type":"modbus-write","z":"57b27d1b.16f004","name":"40201","showStatusActivities":true,"showErrors":true,"unitid":"2","dataType":"HoldingRegister","adr":"40201","quantity":"1","server":"2ed1d669.4e523a","x":2474,"y":1100,"wires":[[],[]]},{"id":"b9d0436.1fc5ac","type":"comment","z":"57b27d1b.16f004","name":"Flame Height register","info":"","x":2524,"y":1060,"wires":[]},{"id":"aafce51b.630c48","type":"change","z":"57b27d1b.16f004","name":"Set Flame Height to 100%","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1544,"y":880,"wires":[["2ce6f610.63015a","c262f496.e89aa8"]]},{"id":"c262f496.e89aa8","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1594,"y":940,"wires":[["2000fa72.64d0d6"]]},{"id":"2000fa72.64d0d6","type":"change","z":"57b27d1b.16f004","name":"Activate EcoWave","rules":[{"t":"set","p":"payload","pt":"msg","to":"105","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1814,"y":880,"wires":[["5de44339.12cfdc","9cbf5e57.f3dc5"]]},{"id":"77f3012b.ab0ae","type":"modbus-write","z":"57b27d1b.16f004","name":"40420","showStatusActivities":true,"showErrors":true,"unitid":"2","dataType":"HoldingRegister","adr":"40420","quantity":"1","server":"2ed1d669.4e523a","x":2474,"y":1180,"wires":[[],[]]},{"id":"c084492f.2eaed8","type":"comment","z":"57b27d1b.16f004","name":"Eco Wave interval time","info":"","x":2524,"y":1140,"wires":[]},{"id":"9cbf5e57.f3dc5","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1844,"y":920,"wires":[["45eb9634.5b7348"]]},{"id":"45eb9634.5b7348","type":"change","z":"57b27d1b.16f004","name":"Set EcoWave interval","rules":[{"t":"set","p":"payload","pt":"msg","to":"15","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":2064,"y":880,"wires":[["77f3012b.ab0ae","6207c377.44c78c"]]},{"id":"6207c377.44c78c","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":2104,"y":920,"wires":[["5d1b1cf6.919994"]]},{"id":"5d1b1cf6.919994","type":"function","z":"57b27d1b.16f004","name":"Startup Values","func":"msg.payload = { value:[2569,3340,3854,3342,2572,1801,773,514,1027,2054], \n'fc': 16, \n'unitid': 2, \n'address': 40421, \n'quantity': 10 } \nreturn msg","outputs":1,"noerr":0,"x":2504,"y":1260,"wires":[["4b5958e9.3fd888"]]},{"id":"4b5958e9.3fd888","type":"modbus-flex-write","z":"57b27d1b.16f004","name":"test flex write","showStatusActivities":true,"showErrors":true,"server":"2ed1d669.4e523a","x":2750,"y":1300,"wires":[[],[]]},{"id":"8b5f6d3a.aee4b","type":"comment","z":"57b27d1b.16f004","name":"Eco Wave Scene - Comfort","info":"","x":2544,"y":1220,"wires":[]},{"id":"f0acfe61.64aa2","type":"comment","z":"57b27d1b.16f004","name":"Eco Wave Scene - Eco","info":"","x":2524,"y":1300,"wires":[]},{"id":"c3989f71.12cb3","type":"change","z":"57b27d1b.16f004","name":"Turn DRU ON (all burners)","rules":[{"t":"set","p":"payload","pt":"msg","to":"101","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1254,"y":1060,"wires":[["cc925fff.7fbc2","5de44339.12cfdc"]]},{"id":"cc925fff.7fbc2","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1340,"y":1100,"wires":[["29c541c.2a89ebe"]]},{"id":"29c541c.2a89ebe","type":"change","z":"57b27d1b.16f004","name":"Set Flame Height to 100%","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1544,"y":1060,"wires":[["b337aafa.c05488","2ce6f610.63015a"]]},{"id":"b337aafa.c05488","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1594,"y":1120,"wires":[["879cc06c.e7302"]]},{"id":"879cc06c.e7302","type":"change","z":"57b27d1b.16f004","name":"Activate EcoWave","rules":[{"t":"set","p":"payload","pt":"msg","to":"105","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1814,"y":1060,"wires":[["3dda3013.a4a7b","5de44339.12cfdc"]]},{"id":"3dda3013.a4a7b","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1844,"y":1100,"wires":[["5f49980.5e73b68"]]},{"id":"5f49980.5e73b68","type":"change","z":"57b27d1b.16f004","name":"Set EcoWave interval","rules":[{"t":"set","p":"payload","pt":"msg","to":"15","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":2064,"y":1060,"wires":[["8924c62.715fe38","77f3012b.ab0ae"]]},{"id":"8924c62.715fe38","type":"delay","z":"57b27d1b.16f004","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":2104,"y":1100,"wires":[["45e2eca6.3c38b4"]]},{"id":"6d4abcc0.eb9414","type":"change","z":"57b27d1b.16f004","name":"reset delay","rules":[{"t":"set","p":"reset","pt":"msg","to":"clear","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1214,"y":960,"wires":[["2000fa72.64d0d6","b337aafa.c05488","c262f496.e89aa8"]]},{"id":"7a69563f.e8bf78","type":"change","z":"57b27d1b.16f004","name":"reset delay","rules":[{"t":"set","p":"reset","pt":"msg","to":"clear","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1214,"y":1140,"wires":[["879cc06c.e7302","c262f496.e89aa8","b337aafa.c05488"]]},{"id":"45e2eca6.3c38b4","type":"function","z":"57b27d1b.16f004","name":"Startup Values","func":"msg.payload = { value:[1797,2312,2569,2313,1800,1029,259,257,513,1283], \n'fc': 16, \n'unitid': 2, \n'address': 40421, \n'quantity': 10 } \nreturn msg","outputs":1,"noerr":0,"x":2504,"y":1340,"wires":[["4b5958e9.3fd888"]]},{"id":"6f6bdf77.27ae6","type":"trigger-state","z":"57b27d1b.16f004","name":"","server":"1d1be924.0329f7","entityid":"input_select.drucontrol","entityidfiltertype":"exact","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":3,"customoutputs":[{"outputId":"3d7agvzqfb4","messageType":"default","messageValue":"","messageValueType":"json","comparatorPropertyType":"always","comparatorPropertyValue":"","comparatorType":"is","comparatorValue":""}],"outputinitially":false,"state_type":"str","x":140,"y":1080,"wires":[["d9927486.3697c8"],[],[]]},{"id":"f5a7f25b.e9ce3","type":"api-current-state","z":"57b27d1b.16f004","name":"","server":"1d1be924.0329f7","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_text.drustatus","state_type":"num","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":780,"y":1000,"wires":[["1830d2bd.1baacd"]]},{"id":"a622d26a.49b8c","type":"api-current-state","z":"57b27d1b.16f004","name":"","server":"1d1be924.0329f7","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_text.drustatus","state_type":"num","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":720,"y":1100,"wires":[["c2d7d88.70cbf28"]]},{"id":"6410654c.8806dc","type":"api-current-state","z":"57b27d1b.16f004","name":"","server":"1d1be924.0329f7","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_text.drustatus","state_type":"num","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":740,"y":1200,"wires":[["cdf10470.b227f8"]]},{"id":"2ed1d669.4e523a","type":"modbus-client","z":"","name":"DRU","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"192.168.2.12","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB0","serialType":"RTU-BUFFERD","serialBaudrate":"19200","serialDatabits":"8","serialStopbits":"1","serialParity":"even","serialConnectionDelay":"200","unit_id":"1","commandDelay":"500","clientTimeout":"1000","reconnectTimeout":"2000"},{"id":"1d1be924.0329f7","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]