[
{
"id": "2d55768c7365f5d3",
"type": "inject",
"z": "7e6af0015415146d",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "{\"src\":\"shellypro4pm-f008d1d8b8b8\",\"dst\":\"user_1\",\"method\":\"NotifyEvent\",\"params\":{\"ts\":1631266629.79,\"events\":[{\"component\":\"input:0\",\"id\":0,\"event\":\"long_push\",\"ts\":1631266629.79}]}}",
"payloadType": "json",
"x": 2410,
"y": 2240,
"wires": [
[
"64eb8e8d7476f747"
]
]
},
{
"id": "64eb8e8d7476f747",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Event of input:0",
"property": "payload.params.events[component=\"input:0\"].event",
"propertyType": "jsonata",
"rules": [
{
"t": "eq",
"v": "long_push",
"vt": "str"
},
{
"t": "eq",
"v": "double_push",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 2620,
"y": 2360,
"wires": [
[
"5b74af2f251d0335",
"3e7660c3a451876a"
],
[
"1fb9b2d47582aa92"
]
]
},
{
"id": "5b74af2f251d0335",
"type": "change",
"z": "7e6af0015415146d",
"name": "",
"rules": [
{
"t": "set",
"p": "auto",
"pt": "flow",
"to": "$exists($flowContext(\"auto\")) ? $not($flowContext(\"auto\")) : true\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2860,
"y": 2340,
"wires": [
[]
]
},
{
"id": "ae979309777cfd8f",
"type": "mqtt in",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/sonstiges/bwm_wk/status",
"qos": "2",
"datatype": "auto-detect",
"broker": "b22fc4d3e3f172bb",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 2190,
"y": 2580,
"wires": [
[
"b275779cdcb8ca87"
]
]
},
{
"id": "4d6c21f253707f3a",
"type": "mqtt in",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/sonstiges/bwm_flur_keller/status",
"qos": "2",
"datatype": "auto-detect",
"broker": "b22fc4d3e3f172bb",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 2220,
"y": 2640,
"wires": [
[
"ce3fea7966a34734"
]
]
},
{
"id": "ce3fea7966a34734",
"type": "switch",
"z": "7e6af0015415146d",
"name": "",
"property": "payload.motion",
"propertyType": "msg",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 2510,
"y": 2640,
"wires": [
[
"ad67b76febdf0a92"
]
]
},
{
"id": "de365cd7a4813149",
"type": "change",
"z": "7e6af0015415146d",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{\t \"id\":199,\t \"src\":\"hotspot_2\",\t \"method\":\"Switch.Set\",\t \"params\":{\"id\":0,\"on\":payload}\t}\t \t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 3490,
"y": 2660,
"wires": [
[
"541e8fa04f94475d",
"df00a6eda1372fa1",
"7e4aebe657e40852"
]
]
},
{
"id": "0e35c29460abd499",
"type": "mqtt out",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/waschkueche/rpc",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "b22fc4d3e3f172bb",
"x": 4690,
"y": 2740,
"wires": []
},
{
"id": "541e8fa04f94475d",
"type": "mqtt out",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/flur_keller_vorne/rpc",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "b22fc4d3e3f172bb",
"x": 3820,
"y": 2600,
"wires": []
},
{
"id": "658b57870ce763a7",
"type": "trigger",
"z": "7e6af0015415146d",
"name": "",
"op1": "true",
"op2": "false",
"op1type": "bool",
"op2type": "bool",
"duration": "5",
"extend": true,
"overrideDelay": false,
"units": "min",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 3290,
"y": 2660,
"wires": [
[
"de365cd7a4813149"
]
]
},
{
"id": "ad67b76febdf0a92",
"type": "ioBroker get",
"z": "7e6af0015415146d",
"name": "Schalter",
"topic": "0_userdata.0.hausautomation.bwm_flur_keller_aktiv",
"attrname": "payload",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 2660,
"y": 2640,
"wires": [
[
"c7a2538582f26f99"
]
]
},
{
"id": "c7a2538582f26f99",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Schalter = true?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 2840,
"y": 2640,
"wires": [
[
"b52632d1d3763274"
]
]
},
{
"id": "df00a6eda1372fa1",
"type": "mqtt out",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/flur_keller_hinten/rpc",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "b22fc4d3e3f172bb",
"x": 3820,
"y": 2660,
"wires": []
},
{
"id": "ccaf9c5d06ca071a",
"type": "switch",
"z": "7e6af0015415146d",
"d": true,
"name": "input:0 = btn_down",
"property": "payload.params.events[0].component=\"input:0\" and payload.params.events[0].event = \"btn_down\"",
"propertyType": "jsonata",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 2490,
"y": 2500,
"wires": [
[]
]
},
{
"id": "323856145be0390f",
"type": "ioBroker get",
"z": "7e6af0015415146d",
"name": "",
"topic": "0_userdata.0.hausautomation.lux_bewegungsmelder_wk",
"attrname": "limit_lux_wk",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 4050,
"y": 2720,
"wires": [
[
"29d46c0be09b69a6"
]
]
},
{
"id": "29d46c0be09b69a6",
"type": "switch",
"z": "7e6af0015415146d",
"name": "lux_wk < limit_lux_wk",
"property": "lux_wk",
"propertyType": "flow",
"rules": [
{
"t": "lte",
"v": "limit_lux_wk",
"vt": "msg"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 4400,
"y": 2720,
"wires": [
[
"0e35c29460abd499"
]
]
},
{
"id": "7e4aebe657e40852",
"type": "switch",
"z": "7e6af0015415146d",
"name": "",
"property": "payload.params.on",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 3710,
"y": 2740,
"wires": [
[
"323856145be0390f"
],
[
"519701bc8160d15c"
]
]
},
{
"id": "b275779cdcb8ca87",
"type": "change",
"z": "7e6af0015415146d",
"name": "",
"rules": [
{
"t": "set",
"p": "lux_wk",
"pt": "flow",
"to": "payload.lux",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 2450,
"y": 2580,
"wires": [
[
"ce3fea7966a34734"
]
]
},
{
"id": "eb3fcf783b74fd7a",
"type": "mqtt in",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/waschkueche/events/rpc",
"qos": "2",
"datatype": "auto-detect",
"broker": "b22fc4d3e3f172bb",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 2120,
"y": 2300,
"wires": [
[
"1e6515cac6ba6901"
]
]
},
{
"id": "90c60a9f3a115521",
"type": "mqtt in",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/flur_keller_hinten/events/rpc",
"qos": "2",
"datatype": "auto-detect",
"broker": "b22fc4d3e3f172bb",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 2140,
"y": 2360,
"wires": [
[
"1e6515cac6ba6901"
]
]
},
{
"id": "1416273ebfce58bb",
"type": "mqtt in",
"z": "7e6af0015415146d",
"name": "",
"topic": "shellies/licht/keller/flur_keller_vorne/events/rpc",
"qos": "2",
"datatype": "auto-detect",
"broker": "b22fc4d3e3f172bb",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 2130,
"y": 2420,
"wires": [
[
"1e6515cac6ba6901"
]
]
},
{
"id": "1e6515cac6ba6901",
"type": "switch",
"z": "7e6af0015415146d",
"name": "NotifyEvent",
"property": "payload.method",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "NotifyEvent",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 2430,
"y": 2360,
"wires": [
[
"64eb8e8d7476f747"
]
]
},
{
"id": "6ab813a6b99d1545",
"type": "ioBroker get",
"z": "7e6af0015415146d",
"name": "licht_flur_keller_manuell",
"topic": "0_userdata.0.hausautomation.licht_flur_keller_manuell",
"attrname": "licht_flur_keller_manuell",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 2730,
"y": 2500,
"wires": [
[]
]
},
{
"id": "b52632d1d3763274",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Automatik?",
"property": "auto",
"propertyType": "flow",
"rules": [
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 3030,
"y": 2640,
"wires": [
[
"658b57870ce763a7"
]
]
},
{
"id": "3e7660c3a451876a",
"type": "debug",
"z": "7e6af0015415146d",
"name": "long_push Event",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2850,
"y": 2280,
"wires": []
},
{
"id": "1fb9b2d47582aa92",
"type": "debug",
"z": "7e6af0015415146d",
"name": "double_push Event",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2830,
"y": 2400,
"wires": []
},
{
"id": "0a4a5cad7064557a",
"type": "junction",
"z": "7e6af0015415146d",
"x": 4500,
"y": 2760,
"wires": [
[
"0e35c29460abd499"
]
]
},
{
"id": "519701bc8160d15c",
"type": "junction",
"z": "7e6af0015415146d",
"x": 3840,
"y": 2760,
"wires": [
[
"0a4a5cad7064557a"
]
]
},
{
"id": "b22fc4d3e3f172bb",
"type": "mqtt-broker",
"name": "iobroker mqtt adapter",
"broker": "localhost",
"port": "1883",
"clientid": "mqttin_nodered",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]