home-assistant/node_red_wohnzimmer_chantal_esstisch.json
2025-07-31 17:16:08 +02:00

1088 lines
28 KiB
JSON

[
{
"id": "93d1419f5dd7545e",
"type": "group",
"z": "7dc1ba39fe55ca4f",
"name": "Wohnzimmer Essbereich Saugen / Wischen",
"style": {
"fill": "#ffff7f",
"label": true
},
"nodes": [
"10abee785d6a0ec6",
"342d2c4a9fad677d",
"6ac579e5624460f6",
"7b5a5ffce9b85007",
"bc807389418cad87",
"3f1760e7c362d799",
"a068d4033a3a8004",
"905dfa8b1b458979",
"ee2a4b63750954e8",
"b260aaf66baaabfc",
"a14a4eb58f0a82db",
"7d48ec4d33704e01",
"8af1484a51a80a09",
"642d9e8cd2dd3cbd",
"19912619fd5427a5",
"6ba659eef75d156e",
"2a7bf2fea23a9a47",
"4b23062b9ea1c727",
"cb42b8ead0271f53",
"f8bfd468d66b3442",
"83b233cd104bf026",
"a812499588c312b1",
"13036550828cd132",
"a69c5763820bb3ab",
"5818b966517e4bea",
"7c35d07152d7e49c",
"1f428ca1cab0884e"
],
"x": 34,
"y": 179,
"w": 1692,
"h": 482
},
{
"id": "10abee785d6a0ec6",
"type": "server-state-changed",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Wohnzimmer Stühle",
"server": "162e4f7136cd343a",
"version": 6,
"outputs": 1,
"exposeAsEntityConfig": "",
"entities": {
"entity": [
"binary_sensor.wohnzimmer_stuhl_3_contact",
"binary_sensor.wohnzimmer_stuhl_1_contact",
"binary_sensor.wohnzimmer_stuhl_2_contact",
"binary_sensor.wohnzimmer_stuhl_4_contact"
],
"substring": [],
"regex": []
},
"outputInitially": false,
"stateType": "str",
"ifState": "",
"ifStateType": "str",
"ifStateOperator": "is",
"outputOnlyOnStateChange": true,
"for": "",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": false,
"ignorePrevStateUnknown": false,
"ignorePrevStateUnavailable": false,
"ignoreCurrentStateUnknown": false,
"ignoreCurrentStateUnavailable": false,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "",
"valueType": "triggerId"
}
],
"x": 150,
"y": 260,
"wires": [
[
"a068d4033a3a8004"
]
]
},
{
"id": "342d2c4a9fad677d",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 1",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_1_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 160,
"y": 620,
"wires": [
[
"6ac579e5624460f6"
],
[]
]
},
{
"id": "6ac579e5624460f6",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 2",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_2_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 380,
"y": 620,
"wires": [
[
"7b5a5ffce9b85007"
],
[]
]
},
{
"id": "7b5a5ffce9b85007",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 3",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_3_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 600,
"y": 620,
"wires": [
[
"bc807389418cad87"
],
[]
]
},
{
"id": "bc807389418cad87",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 4",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 2,
"halt_if": "off",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_4_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 820,
"y": 620,
"wires": [
[
"3f1760e7c362d799"
],
[]
]
},
{
"id": "3f1760e7c362d799",
"type": "api-call-service",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Nachricht Alexas ausgeben",
"server": "162e4f7136cd343a",
"version": 7,
"debugenabled": false,
"action": "script.notification_board",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{\t \"message\":\"Chantal fährt in 2 Minuten los, bitte eventuelle Gegenstände beiseite räumen.\",\t \"notify_alexa_durchsagen\":true\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "script",
"service": "notification_board",
"x": 1060,
"y": 620,
"wires": [
[
"2a7bf2fea23a9a47"
]
]
},
{
"id": "a068d4033a3a8004",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Wohnungsstatus prüfen",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "input_select.wohnungsstatus",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "",
"forType": "num",
"forUnits": "hours",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 430,
"y": 260,
"wires": [
[
"905dfa8b1b458979"
]
]
},
{
"id": "905dfa8b1b458979",
"type": "switch",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Wohnungsstatus N/WE",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Normal",
"vt": "str"
},
{
"t": "eq",
"v": "Wochenende",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 190,
"y": 400,
"wires": [
[
"342d2c4a9fad677d",
"ee2a4b63750954e8"
],
[
"342d2c4a9fad677d",
"ee2a4b63750954e8"
]
]
},
{
"id": "ee2a4b63750954e8",
"type": "delay",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"pauseType": "delay",
"timeout": "3",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 580,
"y": 400,
"wires": [
[
"b260aaf66baaabfc",
"a14a4eb58f0a82db",
"7d48ec4d33704e01",
"8af1484a51a80a09"
]
]
},
{
"id": "b260aaf66baaabfc",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 1",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_1_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "topic",
"propertyType": "msg",
"value": "Stuhl 1",
"valueType": "str"
}
],
"for": "",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 920,
"y": 220,
"wires": [
[
"13036550828cd132"
]
]
},
{
"id": "a14a4eb58f0a82db",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 2",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_2_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "topic",
"propertyType": "msg",
"value": "Stuhl 2",
"valueType": "str"
}
],
"for": "",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 920,
"y": 260,
"wires": [
[
"a69c5763820bb3ab"
]
]
},
{
"id": "7d48ec4d33704e01",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 3",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_3_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "topic",
"propertyType": "msg",
"value": "Stuhl 3",
"valueType": "str"
}
],
"for": "",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 920,
"y": 300,
"wires": [
[
"5818b966517e4bea"
]
]
},
{
"id": "8af1484a51a80a09",
"type": "api-current-state",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Status Stuhl 4",
"server": "162e4f7136cd343a",
"version": 3,
"outputs": 1,
"halt_if": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.wohnzimmer_stuhl_4_contact",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "topic",
"propertyType": "msg",
"value": "Stuhl 4",
"valueType": "str"
}
],
"for": "",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 920,
"y": 340,
"wires": [
[
"a812499588c312b1"
]
]
},
{
"id": "642d9e8cd2dd3cbd",
"type": "join",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Join Sensoren",
"mode": "custom",
"build": "array",
"property": "payload",
"useparts": true,
"count": "4",
"x": 1400,
"y": 280,
"wires": [
[
"19912619fd5427a5"
]
]
},
{
"id": "19912619fd5427a5",
"type": "function",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Summe bilden",
"func": "let sum = msg.payload.reduce((a, b) => a + b, 0);\nmsg.payload = sum;\nreturn msg;",
"outputs": 1,
"x": 1600,
"y": 280,
"wires": [
[
"cb42b8ead0271f53"
]
]
},
{
"id": "6ba659eef75d156e",
"type": "api-call-service",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Nachricht Alexas ausgeben 1 Stuhl",
"server": "162e4f7136cd343a",
"version": 7,
"debugenabled": false,
"action": "script.notification_board",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{\t \"message\":\"Du hast erst einen Stuhl hochgestellt, ist das richtig? Wenn nicht bitte die restlichen hochstellen!\",\t \"notify_alexa_durchsagen\":true\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "script",
"service": "notification_board",
"x": 1000,
"y": 460,
"wires": [
[
"1f428ca1cab0884e"
]
]
},
{
"id": "2a7bf2fea23a9a47",
"type": "delay",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1320,
"y": 620,
"wires": [
[
"4b23062b9ea1c727"
]
]
},
{
"id": "4b23062b9ea1c727",
"type": "api-call-service",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Zonen Reinigung",
"server": "162e4f7136cd343a",
"version": 7,
"debugenabled": false,
"action": "roborock.vacuum_clean_zone",
"floorId": [],
"areaId": [],
"deviceId": [
"b82848bc678cc94d55f01df7a8cb13d2"
],
"entityId": [],
"labelId": [],
"data": "{\t \"zone\":[[22208, 21236, 25099, 23913]],\t \"repeats\":2\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "roborock",
"service": "vacuum_clean_zone",
"x": 1610,
"y": 620,
"wires": [
[]
]
},
{
"id": "cb42b8ead0271f53",
"type": "switch",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Melsung unterscheiden",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 610,
"y": 500,
"wires": [
[
"6ba659eef75d156e"
],
[
"f8bfd468d66b3442"
],
[
"83b233cd104bf026"
],
[]
]
},
{
"id": "f8bfd468d66b3442",
"type": "api-call-service",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Nachricht Alexas ausgeben 2 Stühe",
"server": "162e4f7136cd343a",
"version": 7,
"debugenabled": false,
"action": "script.notification_board",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{\t \"message\":\"Du hast erst zwei Stühle hochgestellt, ist das richtig? Wenn nicht bitte die restlichen hochstellen!\",\t \"notify_alexa_durchsagen\":true\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "script",
"service": "notification_board",
"x": 1000,
"y": 500,
"wires": [
[
"1f428ca1cab0884e"
]
]
},
{
"id": "83b233cd104bf026",
"type": "api-call-service",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "Nachricht Alexas ausgeben 3 Stühe",
"server": "162e4f7136cd343a",
"version": 7,
"debugenabled": false,
"action": "script.notification_board",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [],
"labelId": [],
"data": "{\t \"message\":\"Du hast erst drei Stühle hochgestellt, ist das richtig? Wenn nicht bitte die restlichen hochstellen!\",\t \"notify_alexa_durchsagen\":true\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "script",
"service": "notification_board",
"x": 1000,
"y": 540,
"wires": [
[
"1f428ca1cab0884e"
]
]
},
{
"id": "a812499588c312b1",
"type": "change",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1130,
"y": 340,
"wires": [
[
"642d9e8cd2dd3cbd"
]
]
},
{
"id": "13036550828cd132",
"type": "change",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1130,
"y": 220,
"wires": [
[
"642d9e8cd2dd3cbd"
]
]
},
{
"id": "a69c5763820bb3ab",
"type": "change",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1130,
"y": 260,
"wires": [
[
"642d9e8cd2dd3cbd"
]
]
},
{
"id": "5818b966517e4bea",
"type": "change",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1130,
"y": 300,
"wires": [
[
"642d9e8cd2dd3cbd"
]
]
},
{
"id": "7c35d07152d7e49c",
"type": "inject",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "TEST",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 170,
"y": 320,
"wires": [
[
"a068d4033a3a8004"
]
]
},
{
"id": "1f428ca1cab0884e",
"type": "delay",
"z": "7dc1ba39fe55ca4f",
"g": "93d1419f5dd7545e",
"name": "",
"pauseType": "delay",
"timeout": "2",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1320,
"y": 500,
"wires": [
[
"8af1484a51a80a09",
"7d48ec4d33704e01",
"a14a4eb58f0a82db",
"b260aaf66baaabfc"
]
]
},
{
"id": "162e4f7136cd343a",
"type": "server",
"name": "Home Assistant",
"version": 5,
"addon": false,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true,
"cacheJson": true,
"heartbeat": true,
"heartbeatInterval": "10",
"areaSelector": "friendlyName",
"deviceSelector": "friendlyName",
"entitySelector": "friendlyName",
"statusSeparator": ": ",
"statusYear": "hidden",
"statusMonth": "short",
"statusDay": "numeric",
"statusHourCycle": "default",
"statusTimeFormat": "h:m",
"enableGlobalContextStore": false
}
]