diff --git a/src/data/flows/automation_guest_mode.json b/src/data/flows/automation_guest_mode.json index 6987e0b..026b3e0 100644 --- a/src/data/flows/automation_guest_mode.json +++ b/src/data/flows/automation_guest_mode.json @@ -25,7 +25,7 @@ "b2e6817cd694ba28" ], "x": 1174, - "y": 199, + "y": 239, "w": 442, "h": 202 }, @@ -35,7 +35,7 @@ "z": "a7a34028d045deee", "g": "022e7feb1e4ea3ae", "x": 1200, - "y": 280, + "y": 320, "wires": [ [ "d5d46cfd65fffc12", @@ -46,89 +46,25 @@ ] }, { - "id": "3564790484706ae2", - "type": "template", - "z": "a7a34028d045deee", - "g": "022e7feb1e4ea3ae", - "name": "icon", - "field": "notify.icon", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "", - "output": "str", - "x": 1290, - "y": 320, - "wires": [ - [ - "a3cf07381c3dba65" - ] - ] - }, - { - "id": "d5d46cfd65fffc12", + "id": "b2e6817cd694ba28", "type": "template", "z": "a7a34028d045deee", "g": "022e7feb1e4ea3ae", - "name": "title", - "field": "notify.title", + "name": "notification id", + "field": "notify.notification_id", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Gastmodus", + "template": "guest_mode", "output": "str", - "x": 1290, - "y": 240, + "x": 1310, + "y": 400, "wires": [ [ "a3cf07381c3dba65" ] ] }, - { - "id": "ba0bdc1db6e4e011", - "type": "link out", - "z": "a7a34028d045deee", - "g": "022e7feb1e4ea3ae", - "name": "link_out_notify_1", - "mode": "link", - "links": [ - "c76d311bb4b6991b", - "d1753081ba6b4004" - ], - "x": 1575, - "y": 280, - "wires": [] - }, - { - "id": "a3cf07381c3dba65", - "type": "join", - "z": "a7a34028d045deee", - "g": "022e7feb1e4ea3ae", - "name": "", - "mode": "custom", - "build": "merged", - "property": "notify", - "propertyType": "msg", - "key": "topic", - "joiner": "\\n", - "joinerType": "str", - "accumulate": false, - "timeout": "", - "count": "8", - "reduceRight": false, - "reduceExp": "", - "reduceInit": "", - "reduceInitType": "", - "reduceFixup": "", - "x": 1490, - "y": 280, - "wires": [ - [ - "ba0bdc1db6e4e011" - ] - ] - }, { "id": "88a668a5509178e0", "type": "change", @@ -171,6 +107,70 @@ "to": "", "reg": false, "x": 1310, + "y": 320, + "wires": [ + [ + "a3cf07381c3dba65" + ] + ] + }, + { + "id": "a3cf07381c3dba65", + "type": "join", + "z": "a7a34028d045deee", + "g": "022e7feb1e4ea3ae", + "name": "", + "mode": "custom", + "build": "merged", + "property": "notify", + "propertyType": "msg", + "key": "topic", + "joiner": "\\n", + "joinerType": "str", + "accumulate": false, + "timeout": "", + "count": "8", + "reduceRight": false, + "reduceExp": "", + "reduceInit": "", + "reduceInitType": "", + "reduceFixup": "", + "x": 1490, + "y": 320, + "wires": [ + [ + "ba0bdc1db6e4e011" + ] + ] + }, + { + "id": "ba0bdc1db6e4e011", + "type": "link out", + "z": "a7a34028d045deee", + "g": "022e7feb1e4ea3ae", + "name": "link_out_notify_1", + "mode": "link", + "links": [ + "c76d311bb4b6991b", + "d1753081ba6b4004" + ], + "x": 1575, + "y": 320, + "wires": [] + }, + { + "id": "d5d46cfd65fffc12", + "type": "template", + "z": "a7a34028d045deee", + "g": "022e7feb1e4ea3ae", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Gastmodus", + "output": "str", + "x": 1290, "y": 280, "wires": [ [ @@ -179,18 +179,18 @@ ] }, { - "id": "b2e6817cd694ba28", + "id": "3564790484706ae2", "type": "template", "z": "a7a34028d045deee", "g": "022e7feb1e4ea3ae", - "name": "notification id", - "field": "notify.notification_id", + "name": "icon", + "field": "notify.icon", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "guest_mode", + "template": "", "output": "str", - "x": 1310, + "x": 1290, "y": 360, "wires": [ [ @@ -244,7 +244,7 @@ } ], "x": 130, - "y": 120, + "y": 100, "wires": [ [ "0f8b5cf3541d59c4" @@ -256,10 +256,10 @@ "id": "4fd065fd91ad5c32", "type": "comment", "z": "a7a34028d045deee", - "name": "turn on guest mode if calendar event with words \"past\" is found in Lise calendar", + "name": "turn on guest mode if calendar event with words \"past\" is found in Lise or Beau calendar", "info": "", - "x": 320, - "y": 80, + "x": 340, + "y": 60, "wires": [] }, { @@ -284,7 +284,7 @@ "outputProperties": [], "queue": "none", "x": 350, - "y": 120, + "y": 100, "wires": [ [] ] @@ -296,7 +296,7 @@ "name": "flow to turn on or off guest most based on certain events", "info": "", "x": 220, - "y": 40, + "y": 20, "wires": [] }, { @@ -306,7 +306,7 @@ "name": "If persons are not at home and a door has been opened, ask if the guest mode needs to be turned on.", "info": "", "x": 390, - "y": 180, + "y": 220, "wires": [] }, { @@ -316,7 +316,7 @@ "name": "listen to guest mode on action notification answer event ", "info": "", "x": 240, - "y": 380, + "y": 420, "wires": [] }, { @@ -346,7 +346,7 @@ ], "event_type": "", "x": 110, - "y": 420, + "y": 460, "wires": [ [ "9fc1160da24a5102" @@ -375,7 +375,7 @@ "outputProperties": [], "queue": "none", "x": 310, - "y": 420, + "y": 460, "wires": [ [] ] @@ -426,7 +426,7 @@ } ], "x": 130, - "y": 220, + "y": 260, "wires": [ [ "39691718b80b4105" @@ -451,7 +451,7 @@ "repair": false, "outputs": 1, "x": 790, - "y": 220, + "y": 260, "wires": [ [ "1ec3bf6ac9ee7791" @@ -489,7 +489,7 @@ "to": "", "reg": false, "x": 940, - "y": 220, + "y": 260, "wires": [ [ "b02f456b71574261" @@ -523,7 +523,7 @@ ], "event_type": "", "x": 130, - "y": 320, + "y": 360, "wires": [ [ "59a9a1e67b92890a" @@ -567,7 +567,7 @@ "entity_location": "data", "override_data": "msg", "x": 350, - "y": 220, + "y": 260, "wires": [ [ "4c5e48409ce3be8d" @@ -612,7 +612,7 @@ "entity_location": "data", "override_data": "msg", "x": 580, - "y": 220, + "y": 260, "wires": [ [ "88e2c415c85c433e" @@ -627,7 +627,7 @@ "name": "if shelly click event where fired and nobody is home and guest mode is off, ask if the guest mode needs to be turned on.", "info": "", "x": 440, - "y": 280, + "y": 320, "wires": [] }, { @@ -667,7 +667,7 @@ "entity_location": "data", "override_data": "msg", "x": 580, - "y": 320, + "y": 360, "wires": [ [ "6f1338fff56e9176" @@ -712,7 +712,7 @@ "entity_location": "data", "override_data": "msg", "x": 350, - "y": 320, + "y": 360, "wires": [ [ "072df3e380eea942" @@ -732,7 +732,7 @@ "template": "De {{topic}} is geopend en gastmodus is uitgeschakeld. Wil je gastmodus inschakelen?", "output": "str", "x": 1080, - "y": 220, + "y": 260, "wires": [ [ "f7038caa7a76e6f3" @@ -751,13 +751,67 @@ "template": "Er lijkt iemand in huis te zijn omdat er lampen zijn in- of uitgeschakeld, gastmodus is uitgeschakeld.\\nWil je de gastmodus inschakelen?", "output": "str", "x": 1080, - "y": 320, + "y": 360, "wires": [ [ "f7038caa7a76e6f3" ] ] }, + { + "id": "daacb8ae6b24ed5b", + "type": "server-state-changed", + "z": "a7a34028d045deee", + "name": "babysitter calendar event ", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 2, + "exposeAsEntityConfig": "", + "entityId": "calendar.beau_babysitter", + "entityIdType": "exact", + "outputInitially": true, + "stateType": "str", + "ifState": "on", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": "0", + "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": 130, + "y": 160, + "wires": [ + [ + "0f8b5cf3541d59c4" + ], + [] + ] + }, { "id": "4ba92433.2478cc", "type": "server",