Hi, it's for a heating rod. I'd like to set a Power management which is more dynamic.
Actually it more a static range for power up and down.
The input signal is in a constant timerate, actually 1msg/s but it's possible to max 1msg/250ms.
[
{
"id": "394b90dd0f76e1eb",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "30",
"payloadType": "num",
"x": 710,
"y": 3680,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "5cd54232cf19a43d",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "40",
"payloadType": "num",
"x": 710,
"y": 3740,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "5c80f73f0335850b",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "50",
"payloadType": "num",
"x": 710,
"y": 3800,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "512e3b7c11aa5c56",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "60",
"payloadType": "num",
"x": 710,
"y": 3860,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "7273dcbf3e4c3224",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "70",
"payloadType": "num",
"x": 710,
"y": 3920,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "329694499f1b0d71",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "80",
"payloadType": "num",
"x": 710,
"y": 3980,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "1261dcc3c2f5fbb9",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "90",
"payloadType": "num",
"x": 710,
"y": 4040,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "08982fa878da5df7",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "20",
"payloadType": "num",
"x": 710,
"y": 3620,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "1be571d3c12523f9",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "10",
"payloadType": "num",
"x": 710,
"y": 3560,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "12858cf00763e2a2",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "num",
"x": 710,
"y": 3500,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "d14404b6bac28543",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "-10",
"payloadType": "num",
"x": 710,
"y": 3440,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "74256f09c8dc0619",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "-20",
"payloadType": "num",
"x": 710,
"y": 3380,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "cf2ff1c36fd7fae9",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "-30",
"payloadType": "num",
"x": 710,
"y": 3320,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "c1ddd4997a1f7a84",
"type": "switch",
"z": "6f607e7be4f8184e",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 930,
"y": 3600,
"wires": [
[
"f1fa5335c50eb855"
]
]
},
{
"id": "25b6280d.1ecf6",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "decrement -",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 1870,
"y": 3640,
"wires": [
[
"8a41c1.6006b64"
]
]
},
{
"id": "285e0e19.b9680a",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "increment +",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 1870,
"y": 3560,
"wires": [
[
"ce8d952f.18666"
]
]
},
{
"id": "fda0a334.bc9588",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "reset",
"repeat": "",
"crontab": "",
"once": false,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 1850,
"y": 3600,
"wires": [
[
"17cce981.975686"
]
]
},
{
"id": "ce8d952f.18666",
"type": "function",
"z": "6f607e7be4f8184e",
"name": "msg object",
"func": "msg.increment = 3;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 2030,
"y": 3560,
"wires": [
[
"ac65bf94.6e609"
]
]
},
{
"id": "17cce981.975686",
"type": "function",
"z": "6f607e7be4f8184e",
"name": "msg object",
"func": "msg.reset = true;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 2030,
"y": 3600,
"wires": [
[
"ac65bf94.6e609"
]
]
},
{
"id": "8a41c1.6006b64",
"type": "function",
"z": "6f607e7be4f8184e",
"name": "msg object",
"func": "msg.decrement = 3;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 2030,
"y": 3640,
"wires": [
[
"ac65bf94.6e609"
]
]
},
{
"id": "ac65bf94.6e609",
"type": "counter",
"z": "6f607e7be4f8184e",
"name": "",
"init": "0",
"step": "1",
"lower": "0",
"upper": "100",
"mode": "increment",
"outputs": 2,
"x": 2220,
"y": 3600,
"wires": [
[
"9bc803da88d7a81c"
],
[]
]
},
{
"id": "f1fa5335c50eb855",
"type": "switch",
"z": "6f607e7be4f8184e",
"name": "Eingang",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1080,
"y": 3600,
"wires": [
[
"0ddbe65e8ee6dc7f"
]
]
},
{
"id": "0ddbe65e8ee6dc7f",
"type": "switch",
"z": "6f607e7be4f8184e",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "50",
"vt": "num"
},
{
"t": "btwn",
"v": "50",
"vt": "num",
"v2": "100",
"v2t": "num"
},
{
"t": "lt",
"v": "50",
"vt": "num"
},
{
"t": "lt",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 1290,
"y": 3600,
"wires": [
[
"8f457e3b4483feca"
],
[
"285690d8d097abcd",
"98fc2e2e39d81a53"
],
[
"6b7bdc93c4810e47"
],
[
"98fc2e2e39d81a53",
"285690d8d097abcd",
"045b51a0549a85c3"
]
]
},
{
"id": "8f457e3b4483feca",
"type": "trigger",
"z": "6f607e7be4f8184e",
"name": "größer als",
"op1": "true",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "-250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "stop",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1500,
"y": 3520,
"wires": [
[
"285690d8d097abcd",
"ce8d952f.18666"
]
]
},
{
"id": "6b7bdc93c4810e47",
"type": "trigger",
"z": "6f607e7be4f8184e",
"name": "kleiner als",
"op1": "true",
"op2": "",
"op1type": "bool",
"op2type": "nul",
"duration": "-250",
"extend": false,
"overrideDelay": false,
"units": "ms",
"reset": "stop",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1500,
"y": 3680,
"wires": [
[
"98fc2e2e39d81a53",
"8a41c1.6006b64"
]
]
},
{
"id": "98fc2e2e39d81a53",
"type": "change",
"z": "6f607e7be4f8184e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1530,
"y": 3640,
"wires": [
[
"8f457e3b4483feca"
]
]
},
{
"id": "285690d8d097abcd",
"type": "change",
"z": "6f607e7be4f8184e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "stop",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1530,
"y": 3560,
"wires": [
[
"6b7bdc93c4810e47"
]
]
},
{
"id": "9bc803da88d7a81c",
"type": "rpi-gpio out",
"z": "6f607e7be4f8184e",
"name": "",
"pin": "12",
"set": "",
"level": "0",
"freq": "100",
"out": "pwm",
"bcm": true,
"x": 2420,
"y": 3580,
"wires": []
},
{
"id": "045b51a0549a85c3",
"type": "switch",
"z": "6f607e7be4f8184e",
"name": "<0",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 1490,
"y": 3600,
"wires": [
[
"17cce981.975686"
]
]
},
{
"id": "eca29a029066e63f",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "150",
"payloadType": "num",
"x": 710,
"y": 4100,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "c459ebe4f79c0824",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1000",
"payloadType": "num",
"x": 710,
"y": 4160,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "d7eb897f7fc06209",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "1700",
"payloadType": "num",
"x": 710,
"y": 4220,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
},
{
"id": "2b0818ca6e61637d",
"type": "inject",
"z": "6f607e7be4f8184e",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "-2000",
"payloadType": "num",
"x": 710,
"y": 3260,
"wires": [
[
"c1ddd4997a1f7a84"
]
]
}
]