What a great work. I’m using Domoticz at the moment (unfortunately) but I’ve used the code to control my fireplace with it as well.
Only one problem occurs when configuring the Wave pattern.
I use the flow as suggested for that:
[{"id":"fb6a7742.8e6508","type":"inject","z":"fb344059.73db6","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":1500,"wires":[["6624e634.fec378"]]},{"id":"6624e634.fec378","type":"function","z":"fb344059.73db6","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":420,"y":1500,"wires":[["e24f425c.735fb"]]},{"id":"e24f425c.735fb","type":"modbus-flex-write","z":"fb344059.73db6","name":"test flex write","showStatusActivities":true,"showErrors":true,"server":"e702863e.44b568","x":600,"y":1500,"wires":[[],[]]},{"id":"13b4349f.9fdcdb","type":"comment","z":"fb344059.73db6","name":"Eco Wave COMFORT","info":"","x":280,"y":1460,"wires":[]},{"id":"1f4db27c.1bcafe","type":"function","z":"fb344059.73db6","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":420,"y":1600,"wires":[["e24f425c.735fb"]]},{"id":"9d606100.4b5e3","type":"inject","z":"fb344059.73db6","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":1600,"wires":[["1f4db27c.1bcafe"]]},{"id":"1cfcc137.ff23df","type":"comment","z":"fb344059.73db6","name":"Eco Wave ECO","info":"","x":260,"y":1560,"wires":[]},{"id":"e702863e.44b568","type":"modbus-client","z":"","name":"DRU","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"172.16.11.51","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectTimeout":2000}]
But nothing happens and reding the debug I get the following message:
msg : error
"Error: Modbus exception 3: Illegal data value (value cannot be written to this register)"
On this page the error is described but I cannot find out what is wrong with the value that I send. Anyone experiencing the same problem?