Hello,
I have a short question for my heating system at home.
I have set temperatures from 10 to 30 degreed.
if the set value is under 18, then the changing node have to change it to 18 back.
[
{
"id": "aa53b2534b60a64a",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "21",
"payloadType": "num",
"x": 270,
"y": 320,
"wires": [
[
"2a5315906043b90c",
"de30d778c529f126"
]
]
},
{
"id": "7beaf9a86a98fcf5",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "16",
"payloadType": "num",
"x": 270,
"y": 400,
"wires": [
[
"2a5315906043b90c",
"de30d778c529f126"
]
]
},
{
"id": "2cbe9c7f1177aefb",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "18",
"payloadType": "num",
"x": 270,
"y": 360,
"wires": [
[
"2a5315906043b90c",
"de30d778c529f126"
]
]
},
{
"id": "9be09b68b1d93474",
"type": "inject",
"z": "1a0d5b259b9dac43",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "10",
"payloadType": "num",
"x": 270,
"y": 440,
"wires": [
[
"2a5315906043b90c",
"de30d778c529f126"
]
]
},
{
"id": "de30d778c529f126",
"type": "switch",
"z": "1a0d5b259b9dac43",
"name": "kleiner als 18 Grad C",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "18",
"vt": "num"
},
{
"t": "btwn",
"v": "10",
"vt": "num",
"v2": "17.5",
"v2t": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 460,
"y": 320,
"wires": [
[
"bc7671eb38bb8daf"
],
[
"f6bdaf5b322e92f8"
]
]
},
{
"id": "bc7671eb38bb8daf",
"type": "debug",
"z": "1a0d5b259b9dac43",
"name": "Auto und KĂĽhlen",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 950,
"y": 340,
"wires": []
},
{
"id": "f6bdaf5b322e92f8",
"type": "change",
"z": "1a0d5b259b9dac43",
"name": "10-17.5 = 18",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "payload",
"fromt": "msg",
"to": "18",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 380,
"wires": [
[
"bc7671eb38bb8daf"
]
]
}
]
How I can realize that?