From 559e507770ba5bf78980424342953756da8a1fdc Mon Sep 17 00:00:00 2001 From: theautomation Date: Mon, 4 Mar 2024 16:44:00 +0100 Subject: [PATCH] Add kitchen security flow --- src/data/flows/security_kitchen.json | 497 +++++++++++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 src/data/flows/security_kitchen.json diff --git a/src/data/flows/security_kitchen.json b/src/data/flows/security_kitchen.json new file mode 100644 index 0000000..e7d7341 --- /dev/null +++ b/src/data/flows/security_kitchen.json @@ -0,0 +1,497 @@ +[ + { + "id": "2fdf3d9bec5f1748", + "type": "tab", + "label": "security_kitchen", + "disabled": false, + "info": "", + "env": [] + }, + { + "id": "0490826048e616a0", + "type": "group", + "z": "2fdf3d9bec5f1748", + "name": "notify", + "style": { + "label": true + }, + "nodes": [ + "6e679db82914212d", + "28d7678ffbc9ea54", + "f513a1a6c1ad56d9", + "509313ec35867636", + "2137fd353b4905ee", + "335c7c4596657191", + "dedcddec2131fd4e", + "e986602efbf956a6" + ], + "x": 1174, + "y": 39, + "w": 422, + "h": 242 + }, + { + "id": "3564b4f51c2e9f2b", + "type": "junction", + "z": "2fdf3d9bec5f1748", + "x": 280, + "y": 100, + "wires": [ + [ + "609e3ac6425b0cac" + ] + ] + }, + { + "id": "509313ec35867636", + "type": "junction", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "x": 1200, + "y": 80, + "wires": [ + [ + "28d7678ffbc9ea54", + "6e679db82914212d", + "2137fd353b4905ee", + "dedcddec2131fd4e", + "e986602efbf956a6" + ] + ] + }, + { + "id": "769359a8fd5e96e4", + "type": "comment", + "z": "2fdf3d9bec5f1748", + "name": "Kitchen motion detection flow", + "info": "", + "x": 140, + "y": 20, + "wires": [] + }, + { + "id": "3a6a5555b220835e", + "type": "server-state-changed", + "z": "2fdf3d9bec5f1748", + "name": "wall tablet motion sensor", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 2, + "exposeAsEntityConfig": "", + "entityId": "binary_sensor.wall_tablet", + "entityIdType": "exact", + "outputInitially": false, + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": "0", + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": true, + "ignorePrevStateUnavailable": true, + "ignoreCurrentStateUnknown": true, + "ignoreCurrentStateUnavailable": true, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } + ], + "x": 130, + "y": 60, + "wires": [ + [ + "96e5fecc3b401af6" + ], + [ + "3564b4f51c2e9f2b" + ] + ] + }, + { + "id": "96e5fecc3b401af6", + "type": "api-current-state", + "z": "2fdf3d9bec5f1748", + "name": "home security is on", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "on", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "input_boolean.home_security", + "state_type": "str", + "blockInputOverrides": false, + "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": 370, + "y": 60, + "wires": [ + [ + "7b68d77ebd125cba" + ], + [] + ] + }, + { + "id": "703bd25addecc618", + "type": "change", + "z": "2fdf3d9bec5f1748", + "name": "set msg.alarm on", + "rules": [ + { + "t": "set", + "p": "alarm", + "pt": "msg", + "to": "on", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1010, + "y": 60, + "wires": [ + [ + "411c3c903ef0bd56", + "509313ec35867636" + ] + ] + }, + { + "id": "609e3ac6425b0cac", + "type": "change", + "z": "2fdf3d9bec5f1748", + "name": "set msg.alarm off", + "rules": [ + { + "t": "set", + "p": "alarm", + "pt": "msg", + "to": "off", + "tot": "str" + } + ], + "action": "", + "property": "", + "from": "", + "to": "", + "reg": false, + "x": 1010, + "y": 100, + "wires": [ + [ + "411c3c903ef0bd56" + ] + ] + }, + { + "id": "411c3c903ef0bd56", + "type": "link out", + "z": "2fdf3d9bec5f1748", + "name": "link_out_light_dynamics_1", + "mode": "link", + "links": [ + "5d17a23a9ac5fe01" + ], + "x": 1205, + "y": 340, + "wires": [] + }, + { + "id": "6e679db82914212d", + "type": "template", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "icon", + "field": "notify.icon", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 1310, + "y": 120, + "wires": [ + [ + "f513a1a6c1ad56d9" + ] + ] + }, + { + "id": "28d7678ffbc9ea54", + "type": "template", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Alarm", + "output": "str", + "x": 1310, + "y": 80, + "wires": [ + [ + "f513a1a6c1ad56d9" + ] + ] + }, + { + "id": "f513a1a6c1ad56d9", + "type": "join", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "", + "mode": "custom", + "build": "merged", + "property": "notify", + "propertyType": "msg", + "key": "topic", + "joiner": "\\n", + "joinerType": "str", + "accumulate": false, + "timeout": "", + "count": "5", + "reduceRight": false, + "reduceExp": "", + "reduceInit": "", + "reduceInitType": "", + "reduceFixup": "", + "x": 1470, + "y": 100, + "wires": [ + [ + "335c7c4596657191" + ] + ] + }, + { + "id": "2137fd353b4905ee", + "type": "template", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "notification id", + "field": "notify.notification_id", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "kitchen_alarm", + "output": "str", + "x": 1330, + "y": 160, + "wires": [ + [ + "f513a1a6c1ad56d9" + ] + ] + }, + { + "id": "335c7c4596657191", + "type": "link out", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "link_out_notify_1", + "mode": "link", + "links": [ + "8ed3b0974336e55b" + ], + "x": 1555, + "y": 100, + "wires": [] + }, + { + "id": "dedcddec2131fd4e", + "type": "template", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "message", + "field": "notify.message", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Beweging in de keuken gedetecteerd!", + "output": "str", + "x": 1320, + "y": 200, + "wires": [ + [ + "f513a1a6c1ad56d9" + ] + ] + }, + { + "id": "e986602efbf956a6", + "type": "template", + "z": "2fdf3d9bec5f1748", + "g": "0490826048e616a0", + "name": "notification channel", + "field": "notify.channel", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Warning", + "output": "str", + "x": 1350, + "y": 240, + "wires": [ + [ + "f513a1a6c1ad56d9" + ] + ] + }, + { + "id": "7b68d77ebd125cba", + "type": "api-current-state", + "z": "2fdf3d9bec5f1748", + "name": "nobody is home", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "not_home", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "group.persons", + "state_type": "str", + "blockInputOverrides": false, + "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": 560, + "y": 60, + "wires": [ + [ + "b654879d08aad928" + ], + [] + ] + }, + { + "id": "b654879d08aad928", + "type": "api-current-state", + "z": "2fdf3d9bec5f1748", + "name": "guest mode is off", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "off", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "input_boolean.guest", + "state_type": "str", + "blockInputOverrides": false, + "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": 750, + "y": 60, + "wires": [ + [ + "703bd25addecc618" + ], + [] + ] + }, + { + "id": "4ba92433.2478cc", + "type": "server", + "name": "Home Assistant", + "version": 5, + "addon": false, + "rejectUnauthorizedCerts": false, + "ha_boolean": "y|yes|true|on|home|open", + "connectionDelay": true, + "cacheJson": true, + "heartbeat": true, + "heartbeatInterval": "30", + "areaSelector": "id", + "deviceSelector": "id", + "entitySelector": "id", + "statusSeparator": "at: ", + "statusYear": "hidden", + "statusMonth": "short", + "statusDay": "numeric", + "statusHourCycle": "h23", + "statusTimeFormat": "h:m", + "enableGlobalContextStore": true + } +] \ No newline at end of file