[
{
"id": "a04215d841bec8ee",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "Noche",
"func": "msg.payload = { \n value: 3, \n 'fc': 6, \n 'unitid': 0, \n 'address': 11 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 980,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "4e2e0d78e8751c3b",
"type": "modbus-flex-write",
"z": "e9233eba556b7ea9",
"name": "",
"showStatusActivities": false,
"showErrors": false,
"server": "6b719646c86bf0aa",
"emptyMsgOnFail": false,
"keepMsgProperties": false,
"x": 1150,
"y": 1080,
"wires": [
[],
[]
]
},
{
"id": "cc83900f0336a2c8",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "Confort",
"func": "msg.payload = { \n value: 2, \n 'fc': 6, \n 'unitid': 0, \n 'address': 11 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 1060,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "0b1ab15087e884e4",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "OFF",
"func": "msg.payload = { \n value: 0, \n 'fc': 6, \n 'unitid': 0, \n 'address': 11 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 900,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "4f56c53472b2a36d",
"type": "ha-button",
"z": "e9233eba556b7ea9",
"name": "OFF",
"version": 0,
"debugenabled": false,
"outputs": 1,
"entityConfig": "553effd10737a13a",
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "date"
}
],
"x": 210,
"y": 900,
"wires": [
[
"0b1ab15087e884e4"
]
]
},
{
"id": "56733779e6f5b14d",
"type": "ha-button",
"z": "e9233eba556b7ea9",
"name": "Confort",
"version": 0,
"debugenabled": false,
"outputs": 1,
"entityConfig": "23bcd94c5fefa33f",
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "date"
}
],
"x": 210,
"y": 1060,
"wires": [
[
"cc83900f0336a2c8"
]
]
},
{
"id": "7d4073f19a69cc8e",
"type": "ha-button",
"z": "e9233eba556b7ea9",
"name": "Noche",
"version": 0,
"debugenabled": false,
"outputs": 1,
"entityConfig": "c561c760b267f165",
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "date"
}
],
"x": 210,
"y": 980,
"wires": [
[
"a04215d841bec8ee"
]
]
},
{
"id": "f20b2f6f74e2a01e",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "Base",
"func": "msg.payload = { \n value: msg.payload *= 10, \n 'fc': 6, \n 'unitid': 0, \n 'address': 13 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 1280,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "5926ea6cab529ac2",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "Confort",
"func": "msg.payload = { \n value: msg.payload *= 10, \n 'fc': 6, \n 'unitid': 0, \n 'address': 12 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 1180,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "c95e42e2ef4ebc93",
"type": "function",
"z": "e9233eba556b7ea9",
"name": "Auto",
"func": "msg.payload = { \n value: 1, \n 'fc': 6, \n 'unitid': 0, \n 'address': 11 , \n 'quantity': 1 }\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 530,
"y": 840,
"wires": [
[
"4e2e0d78e8751c3b"
]
]
},
{
"id": "dcd5a743679bb10e",
"type": "ha-button",
"z": "e9233eba556b7ea9",
"name": "Auto",
"version": 0,
"debugenabled": false,
"outputs": 1,
"entityConfig": "736c91fce69df34f",
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "date"
}
],
"x": 210,
"y": 840,
"wires": [
[
"c95e42e2ef4ebc93"
]
]
},
{
"id": "795794a32ceb00b8",
"type": "trigger-state",
"z": "e9233eba556b7ea9",
"name": "Ajustar Confort",
"server": "9794940b.0fbbd8",
"version": 2,
"exposeToHomeAssistant": true,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityid": "input_number.confort",
"entityidfiltertype": "exact",
"debugenabled": false,
"constraints": [
{
"targetType": "this_entity",
"targetValue": "",
"propertyType": "current_state",
"propertyValue": "new_state.state",
"comparatorType": "is",
"comparatorValueDatatype": "str",
"comparatorValue": ""
}
],
"inputs": 0,
"outputs": 2,
"customoutputs": [],
"outputinitially": false,
"state_type": "num",
"enableInput": false,
"x": 260,
"y": 1180,
"wires": [
[],
[
"5926ea6cab529ac2"
]
]
},
{
"id": "4e59d5d13b9b482f",
"type": "trigger-state",
"z": "e9233eba556b7ea9",
"name": "Ajustar Noche",
"server": "9794940b.0fbbd8",
"version": 2,
"exposeToHomeAssistant": true,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityid": "input_number.ajuste_noche",
"entityidfiltertype": "exact",
"debugenabled": false,
"constraints": [
{
"targetType": "this_entity",
"targetValue": "",
"propertyType": "current_state",
"propertyValue": "new_state.state",
"comparatorType": "is",
"comparatorValueDatatype": "str",
"comparatorValue": ""
}
],
"inputs": 0,
"outputs": 2,
"customoutputs": [],
"outputinitially": false,
"state_type": "num",
"enableInput": false,
"x": 250,
"y": 1280,
"wires": [
[],
[
"f20b2f6f74e2a01e"
]
]
},
{
"id": "6b719646c86bf0aa",
"type": "modbus-client",
"name": "Okofen-Modbus",
"clienttype": "tcp",
"bufferCommands": false,
"stateLogEnabled": false,
"queueLogEnabled": true,
"tcpHost": "192.168.1.212",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "0x3A",
"unit_id": "0",
"commandDelay": "3",
"clientTimeout": "1000",
"reconnectOnTimeout": true,
"reconnectTimeout": "2000",
"parallelUnitIdsAllowed": true
},
{
"id": "553effd10737a13a",
"type": "ha-entity-config",
"server": "9794940b.0fbbd8",
"name": "OFF",
"version": 2,
"haConfig": [
{
"property": "name",
"value": "OFF"
},
{
"property": "icon",
"value": ""
},
{
"property": "device_class",
"value": "update"
}
],
"entityType": "button"
},
{
"id": "23bcd94c5fefa33f",
"type": "ha-entity-config",
"server": "9794940b.0fbbd8",
"name": "Confort",
"version": 2,
"haConfig": [
{
"property": "name",
"value": "Confort"
},
{
"property": "icon",
"value": ""
},
{
"property": "device_class",
"value": "update"
}
],
"entityType": "button"
},
{
"id": "c561c760b267f165",
"type": "ha-entity-config",
"server": "9794940b.0fbbd8",
"name": "Noche",
"version": 2,
"haConfig": [
{
"property": "name",
"value": "Noche"
},
{
"property": "icon",
"value": ""
},
{
"property": "device_class",
"value": "update"
}
],
"entityType": "button"
},
{
"id": "736c91fce69df34f",
"type": "ha-entity-config",
"server": "9794940b.0fbbd8",
"name": "Auto",
"version": 2,
"haConfig": [
{
"property": "name",
"value": "Auto"
},
{
"property": "icon",
"value": ""
},
{
"property": "device_class",
"value": "update"
}
],
"entityType": "button"
},
{
"id": "9794940b.0fbbd8",
"type": "server",
"name": "Home Assistant",
"version": 2,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": "30"
}
]
[
{
"id": "3fcd807dc51dc53b",
"type": "modbus-read",
"z": "e9233eba556b7ea9",
"name": "Caldera",
"topic": "",
"showStatusActivities": false,
"logIOActivities": false,
"showErrors": false,
"unitid": "",
"dataType": "HoldingRegister",
"adr": "102",
"quantity": "6",
"rate": "1",
"rateUnit": "s",
"delayOnStart": false,
"startDelayTime": "",
"server": "6b719646c86bf0aa",
"useIOFile": false,
"ioFile": "",
"useIOForPayload": false,
"emptyMsgOnFail": false,
"x": 410,
"y": 1560,
"wires": [
[],
[
"0fbcab8c16876812",
"6f2672c705e3e605",
"59502d40defb12df",
"ad695f7191207645",
"b03ca8301f5a2a26"
]
]
},
{
"id": "0fbcab8c16876812",
"type": "buffer-parser",
"z": "e9233eba556b7ea9",
"name": "Temperatura Caldera",
"data": "payload.buffer",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "Temperatura Caldera",
"offset": 0,
"length": 1,
"offsetbit": 0,
"scale": "/10",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": true,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 780,
"y": 1500,
"wires": [
[
"deef674cba8464ab"
]
]
},
{
"id": "6f2672c705e3e605",
"type": "buffer-parser",
"z": "e9233eba556b7ea9",
"name": "AjusteCaldera",
"data": "payload.buffer",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "Ajuste Caldera",
"offset": 2,
"length": 1,
"offsetbit": 0,
"scale": "/10",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": true,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 760,
"y": 1580,
"wires": [
[
"5cd3d22c9f611081"
]
]
},
{
"id": "59502d40defb12df",
"type": "buffer-parser",
"z": "e9233eba556b7ea9",
"name": "Modulacion",
"data": "payload.buffer",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "Modulacion",
"offset": 4,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": true,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 750,
"y": 1660,
"wires": [
[
"cf10c73745803212"
]
]
},
{
"id": "deef674cba8464ab",
"type": "ha-entity",
"z": "e9233eba556b7ea9",
"name": "Temperatura caldera",
"server": "9794940b.0fbbd8",
"version": 2,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Temperatura caldera"
},
{
"property": "device_class",
"value": "sensor"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "C"
},
{
"property": "state_class",
"value": ""
},
{
"property": "last_reset",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "payload",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1160,
"y": 1500,
"wires": [
[]
]
},
{
"id": "5cd3d22c9f611081",
"type": "ha-entity",
"z": "e9233eba556b7ea9",
"name": "Ajuste caldera",
"server": "9794940b.0fbbd8",
"version": 2,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Ajuste caldera"
},
{
"property": "device_class",
"value": "sensor"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "C"
},
{
"property": "state_class",
"value": ""
},
{
"property": "last_reset",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "payload",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1140,
"y": 1580,
"wires": [
[]
]
},
{
"id": "cf10c73745803212",
"type": "ha-entity",
"z": "e9233eba556b7ea9",
"name": "Modulacion",
"server": "9794940b.0fbbd8",
"version": 2,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Modulacion"
},
{
"property": "device_class",
"value": "sensor"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "%"
},
{
"property": "state_class",
"value": ""
},
{
"property": "last_reset",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "payload",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1130,
"y": 1660,
"wires": [
[]
]
},
{
"id": "ad695f7191207645",
"type": "buffer-parser",
"z": "e9233eba556b7ea9",
"name": "Horas",
"data": "payload.buffer",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "Horas",
"offset": 8,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": true,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 730,
"y": 1820,
"wires": [
[
"2862c91433ef455b"
]
]
},
{
"id": "b03ca8301f5a2a26",
"type": "buffer-parser",
"z": "e9233eba556b7ea9",
"name": "Arranques",
"data": "payload.buffer",
"dataType": "msg",
"specification": "spec",
"specificationType": "ui",
"items": [
{
"type": "int16be",
"name": "Arranques",
"offset": 10,
"length": 1,
"offsetbit": 0,
"scale": "1",
"mask": ""
}
],
"swap1": "",
"swap2": "",
"swap3": "",
"swap1Type": "swap",
"swap2Type": "swap",
"swap3Type": "swap",
"msgProperty": "payload",
"msgPropertyType": "str",
"resultType": "value",
"resultTypeType": "return",
"multipleResult": true,
"fanOutMultipleResult": false,
"setTopic": true,
"outputs": 1,
"x": 750,
"y": 1920,
"wires": [
[
"4ec44c7dfb718f5b"
]
]
},
{
"id": "4ec44c7dfb718f5b",
"type": "ha-entity",
"z": "e9233eba556b7ea9",
"name": "Aranques",
"server": "9794940b.0fbbd8",
"version": 2,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Arranques"
},
{
"property": "device_class",
"value": "sensor"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": ""
},
{
"property": "state_class",
"value": ""
},
{
"property": "last_reset",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "payload",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1120,
"y": 1920,
"wires": [
[]
]
},
{
"id": "2862c91433ef455b",
"type": "ha-entity",
"z": "e9233eba556b7ea9",
"name": "Horas",
"server": "9794940b.0fbbd8",
"version": 2,
"debugenabled": false,
"outputs": 1,
"entityType": "sensor",
"config": [
{
"property": "name",
"value": "Horas"
},
{
"property": "device_class",
"value": "sensor"
},
{
"property": "icon",
"value": ""
},
{
"property": "unit_of_measurement",
"value": "H"
},
{
"property": "state_class",
"value": ""
},
{
"property": "last_reset",
"value": ""
}
],
"state": "payload",
"stateType": "msg",
"attributes": [],
"resend": true,
"outputLocation": "payload",
"outputLocationType": "none",
"inputOverride": "allow",
"outputOnStateChange": false,
"outputPayload": "",
"outputPayloadType": "str",
"x": 1110,
"y": 1820,
"wires": [
[]
]
},
{
"id": "6b719646c86bf0aa",
"type": "modbus-client",
"name": "Okofen-Modbus",
"clienttype": "tcp",
"bufferCommands": false,
"stateLogEnabled": false,
"queueLogEnabled": true,
"tcpHost": "192.168.1.212",
"tcpPort": "502",
"tcpType": "DEFAULT",
"serialPort": "/dev/ttyUSB",
"serialType": "RTU-BUFFERD",
"serialBaudrate": "9600",
"serialDatabits": "8",
"serialStopbits": "1",
"serialParity": "none",
"serialConnectionDelay": "100",
"serialAsciiResponseStartDelimiter": "0x3A",
"unit_id": "0",
"commandDelay": "3",
"clientTimeout": "1000",
"reconnectOnTimeout": true,
"reconnectTimeout": "2000",
"parallelUnitIdsAllowed": true
},
{
"id": "9794940b.0fbbd8",
"type": "server",
"name": "Home Assistant",
"version": 2,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": false,
"heartbeatInterval": "30"
}
]