Hello Leo,
Regarding what you ask me, I don’t have yaml automation for this application. I have no programming knowledge and was not able to do it that way.
The yaml configuration I have for this application, I have shared it in my previous post.
I tell you how I managed to make it work (it’s not elegant, but it worked for me).
For the ON/OFF selectors and for the sliders, I have used helpers, because I was not able to make it work otherwise (I am quite novice in HA).
For ON/OFF I used boolean helpers.
For the sliders I used numeric type helpers (setting as maximum and minimum the ones I considered as maximum and minimum suitable for each case).
To send “orders” to the Toshiba machine, I used node-red. Attached is the JSON flow below.
Helpers images:
Lovelace Toshiba:
Node-red flow image:
JSON node-red flow:
[{"id":"eebb5d95cd83e80a","type":"tab","label":"Compartir_Toshiba","disabled":false,"info":"","env":[]},{"id":"9dbb1826f55d1884","type":"modbus-flex-write","z":"eebb5d95cd83e80a","name":"40006: Temp. ACS","showStatusActivities":false,"showErrors":false,"showWarnings":true,"server":"7f91eb9f08442e19","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":1050,"y":120,"wires":[[],[]]},{"id":"928e9fdc9a778c1d","type":"function","z":"eebb5d95cd83e80a","name":"Temp. ACS","func":"msg.payload = { \n value: msg.payload, \n 'fc': 6, \n 'unitid': 1, \n 'address': 5 , \n 'quantity': 1 } \nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":120,"wires":[["9dbb1826f55d1884"]]},{"id":"fc7392f65b8db62c","type":"poll-state","z":"eebb5d95cd83e80a","name":"Barra temp. ACS","server":"3c1b4095.37154","version":3,"exposeAsEntityConfig":"","updateInterval":"5","updateIntervalType":"num","updateIntervalUnits":"seconds","outputInitially":false,"outputOnChanged":true,"entityId":"input_number.temperatura_acs","stateType":"num","ifState":"","ifStateType":"num","ifStateOperator":"is","outputs":1,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":120,"y":120,"wires":[["928e9fdc9a778c1d"]]},{"id":"213b38321f0aadb8","type":"modbus-flex-write","z":"eebb5d95cd83e80a","name":"40004: Temp. Calefacción","showStatusActivities":false,"showErrors":false,"showWarnings":true,"server":"7f91eb9f08442e19","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":1070,"y":180,"wires":[[],[]]},{"id":"815a66a4f29ca1e8","type":"function","z":"eebb5d95cd83e80a","name":"Temp. Calefacción","func":"msg.payload = { \n value: msg.payload, \n 'fc': 6, \n 'unitid': 1, \n 'address': 3 , \n 'quantity': 1 } \nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":770,"y":180,"wires":[["213b38321f0aadb8"]]},{"id":"f6ebb2e0421a6f8d","type":"poll-state","z":"eebb5d95cd83e80a","name":"Barra temp. Calefacción","server":"3c1b4095.37154","version":3,"exposeAsEntityConfig":"","updateInterval":"5","updateIntervalType":"num","updateIntervalUnits":"seconds","outputInitially":false,"outputOnChanged":true,"entityId":"input_number.temperatura_suelo_radiante","stateType":"num","ifState":"","ifStateType":"num","ifStateOperator":"is","outputs":1,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":140,"y":180,"wires":[["815a66a4f29ca1e8"]]},{"id":"7866ef793e2b781d","type":"modbus-flex-write","z":"eebb5d95cd83e80a","name":"40002: Calef. Suelo Radiante","showStatusActivities":false,"showErrors":false,"showWarnings":true,"server":"7f91eb9f08442e19","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":1080,"y":300,"wires":[[],[]]},{"id":"4910959e0f82e8ec","type":"function","z":"eebb5d95cd83e80a","name":"Estado Calefacción","func":"msg.payload = { \n value: msg.payload, \n 'fc': 6, \n 'unitid': 1, \n 'address': 0 , \n 'quantity': 1 } \nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":770,"y":300,"wires":[["7866ef793e2b781d"]]},{"id":"f3bd32eb7a7590c8","type":"poll-state","z":"eebb5d95cd83e80a","name":"Estado Calefacción Suelo Radiante","server":"3c1b4095.37154","version":3,"exposeAsEntityConfig":"","updateInterval":"5","updateIntervalType":"num","updateIntervalUnits":"hours","outputInitially":false,"outputOnChanged":true,"entityId":"input_boolean.estado_suelo_radiante","stateType":"habool","ifState":"","ifStateType":"str","ifStateOperator":"is","outputs":1,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":180,"y":300,"wires":[["ee088d2bf502ef83"]]},{"id":"ee088d2bf502ef83","type":"change","z":"eebb5d95cd83e80a","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":300,"wires":[["4910959e0f82e8ec"]]},{"id":"81cf76b8d57066d6","type":"poll-state","z":"eebb5d95cd83e80a","name":"Estado ACS","server":"3c1b4095.37154","version":3,"exposeAsEntityConfig":"","updateInterval":"5","updateIntervalType":"num","updateIntervalUnits":"hours","outputInitially":false,"outputOnChanged":true,"entityId":"input_boolean.estado_acs","stateType":"habool","ifState":"","ifStateType":"str","ifStateOperator":"is","outputs":1,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":110,"y":240,"wires":[["43b0c8240c02f2fb"]]},{"id":"cca336e609a9c085","type":"modbus-flex-write","z":"eebb5d95cd83e80a","name":"40001: Estado ACS","showStatusActivities":false,"showErrors":false,"showWarnings":true,"server":"7f91eb9f08442e19","emptyMsgOnFail":false,"keepMsgProperties":false,"delayOnStart":false,"startDelayTime":"","x":1050,"y":240,"wires":[[],[]]},{"id":"9444a925a463af11","type":"function","z":"eebb5d95cd83e80a","name":"Estado ACS","func":"msg.payload = { \n value: msg.payload, \n 'fc': 6, \n 'unitid': 1, \n 'address': 1 , \n 'quantity': 1 } \nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":750,"y":240,"wires":[["cca336e609a9c085"]]},{"id":"43b0c8240c02f2fb","type":"change","z":"eebb5d95cd83e80a","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"1","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":240,"wires":[["9444a925a463af11"]]},{"id":"7f91eb9f08442e19","type":"modbus-client","name":"BMS-TCP-RTU","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"failureLogEnabled":true,"tcpHost":"192.168.3.232","tcpPort":"1","tcpType":"TCP-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","serialAsciiResponseStartDelimiter":"0x3A","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":false,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true,"showErrors":false,"showWarnings":true,"showLogs":true},{"id":"3c1b4095.37154","type":"server","name":"Home Assistant","addon":true}]
I hope this can help you.
Regards,


