Beim Handtuchhalter sieht das "ON_TIME" msg.true falsch aus. Du musst vorher den payload auf 1/0 setzen.
Die filter node sorgt dafür, das es nur gesendet wird, wenn sich der Wert ändert. Gut für den DC.
Code: Alles auswählen
[
{
"id": "cda8f1a83a4d8f87",
"type": "inject",
"z": "c9bb2b5d2f7b23de",
"name": "50",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "50",
"payloadType": "num",
"x": 330,
"y": 720,
"wires": [
[
"1144572c9eedd72e"
]
]
},
{
"id": "e1c43ae90cb87821",
"type": "inject",
"z": "c9bb2b5d2f7b23de",
"name": "70",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "70",
"payloadType": "num",
"x": 330,
"y": 660,
"wires": [
[
"1144572c9eedd72e"
]
]
},
{
"id": "1144572c9eedd72e",
"type": "switch",
"z": "c9bb2b5d2f7b23de",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "60",
"vt": "str"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 530,
"y": 700,
"wires": [
[
"4748fcc1f6366709"
],
[
"e40bb832d7668e22"
]
]
},
{
"id": "4748fcc1f6366709",
"type": "change",
"z": "c9bb2b5d2f7b23de",
"name": "An",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "1",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 680,
"wires": [
[
"266c3207e8b846bc"
]
]
},
{
"id": "e40bb832d7668e22",
"type": "change",
"z": "c9bb2b5d2f7b23de",
"name": "Aus",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 740,
"wires": [
[
"266c3207e8b846bc"
]
]
},
{
"id": "266c3207e8b846bc",
"type": "rbe",
"z": "c9bb2b5d2f7b23de",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 850,
"y": 700,
"wires": [
[
"491992318cfa4f7b",
"5097dfdf6630b368"
]
]
},
{
"id": "491992318cfa4f7b",
"type": "debug",
"z": "c9bb2b5d2f7b23de",
"name": "debug 374",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1050,
"y": 700,
"wires": []
},
{
"id": "5097dfdf6630b368",
"type": "ccu-value",
"z": "c9bb2b5d2f7b23de",
"name": "",
"iface": "HmIP-RF",
"channel": "001A5D899A8ABA:4 U-Bad BSL:4",
"datapoint": "STATE",
"mode": "",
"start": true,
"change": true,
"cache": false,
"queue": false,
"on": 0,
"onType": "undefined",
"ramp": 0,
"rampType": "undefined",
"working": false,
"ccuConfig": "4e65f92cd8c8f37f",
"topic": "${CCU}/${Interface}/${channel}/${datapoint}",
"x": 1050,
"y": 780,
"wires": [
[]
]
},
{
"id": "4e65f92cd8c8f37f",
"type": "ccu-connection",
"name": "CCU Hobby",
"host": "192.168.0.55",
"regaEnabled": true,
"bcrfEnabled": true,
"iprfEnabled": true,
"virtEnabled": false,
"bcwiEnabled": false,
"jackEnabled": false,
"cuxdEnabled": false,
"regaPoll": false,
"regaInterval": "120",
"rpcPingTimeout": "60",
"rpcInitAddress": "",
"rpcServerHost": "192.168.0.42",
"rpcBinPort": "2064",
"rpcXmlPort": "2065",
"tls": true,
"inSecure": true,
"authentication": true,
"username": "Henke",
"password": "lo10012",
"queueTimeout": "5000",
"queuePause": "250",
"contextStore": "memory"
}
]