From 978cdf52c142a23783791cadbb63fd6ca3253f4d Mon Sep 17 00:00:00 2001 From: theautomation Date: Sun, 31 Dec 2023 14:09:31 +0100 Subject: [PATCH] Closed Exclude lights sleepmode #20 --- src/data/flows/sleepmode.json | 1102 +++++++++++++++++++-------------- 1 file changed, 646 insertions(+), 456 deletions(-) diff --git a/src/data/flows/sleepmode.json b/src/data/flows/sleepmode.json index 5beed35..c88e2a8 100644 --- a/src/data/flows/sleepmode.json +++ b/src/data/flows/sleepmode.json @@ -8,7 +8,29 @@ "env": [] }, { - "id": "13b1135f0e749c31", + "id": "bd90d247a95feb9d", + "type": "group", + "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "notify", + "style": { + "label": true + }, + "nodes": [ + "ad62962b589ed07d", + "cae0f9255059d5ce", + "f5a1c4dd087e0795", + "c1f0224f374a67a6", + "ce2746e7cd66f603", + "13dd6df8c5e31625" + ], + "x": 1074, + "y": 419, + "w": 432, + "h": 162 + }, + { + "id": "12e8b8acaeaeb3fa", "type": "group", "z": "e4381ced98d2a929", "style": { @@ -21,13 +43,36 @@ "color": "#a4a4a4" }, "nodes": [ - "f9ccc0bad1f19231", - "8ee38710dd301911" + "38276d0327ca72c0", + "c20492a470484001", + "5d3c3503fee346db", + "c527f80ad015aec2", + "dbd19cce541f73bc", + "3d90af805342334d", + "0ccbc5bbe180df8e", + "1583a7af300c58e0", + "6f6fc24f15222254", + "b9a725c627f8ca76", + "013e749edd3fa5ad", + "9c4864f0ca0d2d96", + "c49e5bd8f93bd496", + "d1324fbb34721b63", + "3dd82a4a5a5f543f", + "2db276d509393d03", + "cdc4fcc574f8d36a", + "0135d0d0e0806d33", + "269da6e81145bb4b", + "47f54cec68e78d0a", + "a0bb528ecdb6c5fe", + "aab38cb48d0dd6a2", + "7804abbba8a75b19", + "bd90d247a95feb9d", + "a1aa1dc96a54a58d" ], "x": 434, - "y": 579, - "w": 532, - "h": 82 + "y": 19, + "w": 1432, + "h": 588 }, { "id": "1fb2b225cc711d77", @@ -57,7 +102,7 @@ "h": 202 }, { - "id": "12e8b8acaeaeb3fa", + "id": "13b1135f0e749c31", "type": "group", "z": "e4381ced98d2a929", "style": { @@ -70,50 +115,28 @@ "color": "#a4a4a4" }, "nodes": [ - "38276d0327ca72c0", - "c20492a470484001", - "5d3c3503fee346db", - "c527f80ad015aec2", - "dbd19cce541f73bc", - "3d90af805342334d", - "0ccbc5bbe180df8e", - "1583a7af300c58e0", - "6f6fc24f15222254", - "b9a725c627f8ca76", - "013e749edd3fa5ad", - "9c4864f0ca0d2d96", - "c49e5bd8f93bd496", - "d1324fbb34721b63", - "3dd82a4a5a5f543f", - "2db276d509393d03", - "cdc4fcc574f8d36a", - "0135d0d0e0806d33" + "f9ccc0bad1f19231", + "8ee38710dd301911" ], "x": 434, - "y": -1, - "w": 992, - "h": 502 + "y": 619, + "w": 532, + "h": 82 }, { - "id": "bd90d247a95feb9d", - "type": "group", + "id": "ce2746e7cd66f603", + "type": "junction", "z": "e4381ced98d2a929", - "name": "notify", - "style": { - "label": true - }, - "nodes": [ - "ad62962b589ed07d", - "cae0f9255059d5ce", - "f5a1c4dd087e0795", - "c1f0224f374a67a6", - "ce2746e7cd66f603", - "13dd6df8c5e31625" - ], - "x": 1454, - "y": 339, - "w": 432, - "h": 162 + "g": "bd90d247a95feb9d", + "x": 1100, + "y": 500, + "wires": [ + [ + "cae0f9255059d5ce", + "ad62962b589ed07d", + "13dd6df8c5e31625" + ] + ] }, { "id": "2db276d509393d03", @@ -121,7 +144,7 @@ "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", "x": 1180, - "y": 200, + "y": 260, "wires": [ [ "9c4864f0ca0d2d96" @@ -156,93 +179,130 @@ "cdc4fcc574f8d36a", "c20492a470484001", "8ee38710dd301911", - "0135d0d0e0806d33" + "0135d0d0e0806d33", + "269da6e81145bb4b" ] ] }, { - "id": "ce2746e7cd66f603", - "type": "junction", + "id": "13dd6df8c5e31625", + "type": "template", "z": "e4381ced98d2a929", "g": "bd90d247a95feb9d", - "x": 1480, - "y": 420, + "name": "notification id", + "field": "notify.notification_id", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 1230, + "y": 540, "wires": [ [ - "cae0f9255059d5ce", - "ad62962b589ed07d", - "13dd6df8c5e31625" + "c1f0224f374a67a6" ] ] }, { - "id": "0135d0d0e0806d33", + "id": "c1f0224f374a67a6", + "type": "join", + "z": "e4381ced98d2a929", + "g": "bd90d247a95feb9d", + "name": "", + "mode": "custom", + "build": "merged", + "property": "notify", + "propertyType": "msg", + "key": "topic", + "joiner": "\\n", + "joinerType": "str", + "accumulate": false, + "timeout": "", + "count": "4", + "reduceRight": false, + "reduceExp": "", + "reduceInit": "", + "reduceInitType": "", + "reduceFixup": "", + "x": 1370, + "y": 480, + "wires": [ + [ + "f5a1c4dd087e0795" + ] + ] + }, + { + "id": "f5a1c4dd087e0795", "type": "link out", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "link out sleepmode", + "g": "bd90d247a95feb9d", + "name": "link_out_notify_basement_ventilation", "mode": "link", "links": [ - "51f8fd5354fac718" + "8ed3b0974336e55b", + "a97f87cfab413716", + "aeee8468f3d1b7ad", + "c4660dc11fb0e5b8" ], - "x": 475, - "y": 40, + "x": 1465, + "y": 480, "wires": [] }, { - "id": "f69361468483265d", - "type": "api-current-state", + "id": "cae0f9255059d5ce", + "type": "template", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "state backyard light off", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "off", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "light.shellydimmer_backyard_string_l", - "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", - "x": 780, - "y": 840, + "g": "bd90d247a95feb9d", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Afval", + "output": "str", + "x": 1210, + "y": 460, "wires": [ [ - "3392b339fb5fe297" - ], - [] + "c1f0224f374a67a6" + ] ] }, { - "id": "3fd3c31faf84dc25", + "id": "ad62962b589ed07d", + "type": "template", + "z": "e4381ced98d2a929", + "g": "bd90d247a95feb9d", + "name": "icon", + "field": "notify.icon", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 1210, + "y": 500, + "wires": [ + [ + "c1f0224f374a67a6" + ] + ] + }, + { + "id": "3dd82a4a5a5f543f", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "state frontdoor light off", + "g": "12e8b8acaeaeb3fa", + "name": "state outdoor dark", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "off", + "halt_if": "dark", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "light.shelly1_front_door", + "entity_id": "sensor.outdoor_light_dark", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -262,21 +322,23 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 780, - "y": 900, + "x": 550, + "y": 240, "wires": [ [ - "28d474865ab8bbeb" + "3d90af805342334d" ], - [] + [ + "2db276d509393d03" + ] ] }, { - "id": "3392b339fb5fe297", + "id": "d1324fbb34721b63", "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "turn on light backyard", + "g": "12e8b8acaeaeb3fa", + "name": "turn on light kitchen", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, @@ -285,35 +347,62 @@ "areaId": [], "deviceId": [], "entityId": [ - "light.shellydimmer_backyard_string_l" + "light.shellydimmer_kitchen" ], - "data": "", + "data": "{\"brightness_pct\":45}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1000, - "y": 840, + "x": 890, + "y": 220, "wires": [ - [] + [ + "c49e5bd8f93bd496" + ] ] }, { - "id": "28d474865ab8bbeb", + "id": "c49e5bd8f93bd496", + "type": "delay", + "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "", + "pauseType": "delay", + "timeout": "20", + "timeoutUnits": "minutes", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": false, + "outputs": 1, + "x": 1070, + "y": 220, + "wires": [ + [ + "9c4864f0ca0d2d96" + ] + ] + }, + { + "id": "9c4864f0ca0d2d96", "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "turn on light front door ", + "g": "12e8b8acaeaeb3fa", + "name": "turn off light kitchen", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, "domain": "light", - "service": "turn_on", + "service": "turn_off", "areaId": [], "deviceId": [], "entityId": [ - "light.shelly1_front_door" + "light.shellydimmer_kitchen" ], "data": "", "dataType": "json", @@ -321,25 +410,25 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1000, - "y": 900, + "x": 1410, + "y": 220, "wires": [ [] ] }, { - "id": "ab4badbb40ac3f96", + "id": "013e749edd3fa5ad", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "state outdoor dark", + "g": "12e8b8acaeaeb3fa", + "name": "state doorbell chime off", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "dark", + "halt_if": "off", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "sensor.outdoor_light_dark", + "entity_id": "switch.doorbell_chime_active", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -359,31 +448,30 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 550, - "y": 840, + "x": 570, + "y": 300, "wires": [ [ - "3fd3c31faf84dc25", - "f69361468483265d" + "b9a725c627f8ca76" ], [] ] }, { - "id": "38276d0327ca72c0", + "id": "b9a725c627f8ca76", "type": "api-call-service", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "start timer security", + "name": "turn on switch chime active", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, - "domain": "timer", - "service": "start", + "domain": "switch", + "service": "turn_on", "areaId": [], "deviceId": [], "entityId": [ - "timer.home_security" + "switch.doorbell_chime_active" ], "data": "", "dataType": "json", @@ -391,53 +479,53 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 790, - "y": 340, + "x": 820, + "y": 300, "wires": [ [] ] }, { - "id": "c20492a470484001", + "id": "6f6fc24f15222254", "type": "api-call-service", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "start speedtest", + "name": "turn on home security", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, - "domain": "homeassistant", - "service": "update_entity", + "domain": "input_boolean", + "service": "turn_on", "areaId": [], "deviceId": [], "entityId": [ - "sensor.speedtest_download" + "input_boolean.home_security" ], "data": "", - "dataType": "jsonata", + "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 540, - "y": 120, + "x": 960, + "y": 360, "wires": [ [] ] }, { - "id": "5d3c3503fee346db", + "id": "1583a7af300c58e0", "type": "api-current-state", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "state garbage today", + "name": "state home security off", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "Geen", + "halt_if": "off", "halt_if_type": "str", - "halt_if_compare": "is_not", - "entity_id": "sensor.afval_vandaag", + "halt_if_compare": "is", + "entity_id": "input_boolean.home_security", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -454,130 +542,116 @@ "valueType": "entity" } ], - "for": "0", + "for": 0, "forType": "num", "forUnits": "minutes", - "override_topic": false, - "state_location": "payload", - "override_payload": "msg", - "entity_location": "data", - "override_data": "msg", - "x": 720, - "y": 460, + "x": 560, + "y": 360, "wires": [ [ - "c527f80ad015aec2" + "0ccbc5bbe180df8e", + "38276d0327ca72c0" ], [] ] }, { - "id": "cdc4fcc574f8d36a", - "type": "time-range-switch", + "id": "0ccbc5bbe180df8e", + "type": "delay", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", "name": "", - "lat": "52.0434", - "lon": "5.6773", - "startTime": "05:00", - "endTime": "00:00", - "startOffset": 0, - "endOffset": 0, - "x": 530, - "y": 400, + "pauseType": "delay", + "timeout": "20", + "timeoutUnits": "minutes", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": false, + "outputs": 1, + "x": 770, + "y": 360, "wires": [ [ - "dbd19cce541f73bc" - ], - [ - "5d3c3503fee346db" + "6f6fc24f15222254" ] ] }, { - "id": "c527f80ad015aec2", - "type": "template", + "id": "3d90af805342334d", + "type": "delay", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "message", - "field": "notify.message", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "Let op, morgen wordt de {{payload}} container opgehaald.", - "output": "str", - "x": 960, - "y": 400, + "name": "", + "pauseType": "delay", + "timeout": "3", + "timeoutUnits": "seconds", + "rate": "1", + "nbRateUnits": "1", + "rateUnits": "second", + "randomFirst": "1", + "randomLast": "5", + "randomUnits": "seconds", + "drop": false, + "allowrate": false, + "outputs": 1, + "x": 720, + "y": 220, "wires": [ [ - "ce2746e7cd66f603" + "d1324fbb34721b63" ] ] }, { - "id": "dbd19cce541f73bc", - "type": "api-current-state", + "id": "ec72f7b2db4cc37c", + "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "state garbage tomorrow", + "g": "1fb2b225cc711d77", + "name": "stop timer security", "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "Geen", - "halt_if_type": "str", - "halt_if_compare": "is_not", - "entity_id": "sensor.afval_morgen", - "state_type": "str", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "payload", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } + "version": 5, + "debugenabled": false, + "domain": "timer", + "service": "cancel", + "areaId": [], + "deviceId": [], + "entityId": [ + "timer.home_security" ], - "for": "0", - "forType": "num", - "forUnits": "minutes", - "override_topic": false, - "state_location": "payload", - "override_payload": "msg", - "entity_location": "data", - "override_data": "msg", - "x": 730, - "y": 400, + "data": "", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 790, + "y": 780, "wires": [ - [ - "c527f80ad015aec2" - ], [] ] }, { - "id": "8ee38710dd301911", + "id": "764ff273496b0193", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "13b1135f0e749c31", - "name": "state doorbell chime off", + "g": "1fb2b225cc711d77", + "name": "state timer security active", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "off", + "halt_if": "active", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "switch.doorbell_chime_active", + "entity_id": "timer.home_security", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ { - "property": "payload", + "property": "timer.security", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -593,10 +667,10 @@ "forType": "num", "forUnits": "minutes", "x": 570, - "y": 620, + "y": 780, "wires": [ [ - "f9ccc0bad1f19231" + "ec72f7b2db4cc37c" ], [] ] @@ -624,29 +698,29 @@ "outputProperties": [], "queue": "none", "x": 820, - "y": 620, + "y": 660, "wires": [ [] ] }, { - "id": "764ff273496b0193", + "id": "8ee38710dd301911", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "state timer security active", + "g": "13b1135f0e749c31", + "name": "state doorbell chime off", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "active", + "halt_if": "off", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "timer.home_security", + "entity_id": "switch.doorbell_chime_active", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ { - "property": "timer.security", + "property": "payload", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -662,106 +736,116 @@ "forType": "num", "forUnits": "minutes", "x": 570, - "y": 780, + "y": 660, "wires": [ [ - "ec72f7b2db4cc37c" + "f9ccc0bad1f19231" ], [] ] }, { - "id": "ec72f7b2db4cc37c", - "type": "api-call-service", + "id": "dbd19cce541f73bc", + "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "1fb2b225cc711d77", - "name": "stop timer security", + "g": "12e8b8acaeaeb3fa", + "name": "state garbage tomorrow", "server": "4ba92433.2478cc", - "version": 5, - "debugenabled": false, - "domain": "timer", - "service": "cancel", - "areaId": [], - "deviceId": [], - "entityId": [ - "timer.home_security" + "version": 3, + "outputs": 2, + "halt_if": "Geen", + "halt_if_type": "str", + "halt_if_compare": "is_not", + "entity_id": "sensor.afval_morgen", + "state_type": "str", + "blockInputOverrides": false, + "outputProperties": [ + { + "property": "payload", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "entity" + } ], - "data": "", - "dataType": "json", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "x": 790, - "y": 780, + "for": "0", + "forType": "num", + "forUnits": "minutes", + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 730, + "y": 480, "wires": [ + [ + "c527f80ad015aec2" + ], [] ] }, { - "id": "3d90af805342334d", - "type": "delay", + "id": "c527f80ad015aec2", + "type": "template", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "", - "pauseType": "delay", - "timeout": "3", - "timeoutUnits": "seconds", - "rate": "1", - "nbRateUnits": "1", - "rateUnits": "second", - "randomFirst": "1", - "randomLast": "5", - "randomUnits": "seconds", - "drop": false, - "allowrate": false, - "outputs": 1, - "x": 720, - "y": 160, + "name": "message", + "field": "notify.message", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Let op, morgen wordt de {{payload}} container opgehaald.", + "output": "str", + "x": 960, + "y": 480, "wires": [ [ - "d1324fbb34721b63" + "ce2746e7cd66f603" ] ] }, { - "id": "0ccbc5bbe180df8e", - "type": "delay", + "id": "cdc4fcc574f8d36a", + "type": "time-range-switch", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", "name": "", - "pauseType": "delay", - "timeout": "20", - "timeoutUnits": "minutes", - "rate": "1", - "nbRateUnits": "1", - "rateUnits": "second", - "randomFirst": "1", - "randomLast": "5", - "randomUnits": "seconds", - "drop": false, - "outputs": 1, - "x": 770, - "y": 300, + "lat": "52.0434", + "lon": "5.6773", + "startTime": "05:00", + "endTime": "00:00", + "startOffset": 0, + "endOffset": 0, + "x": 530, + "y": 480, "wires": [ [ - "6f6fc24f15222254" + "dbd19cce541f73bc" + ], + [ + "5d3c3503fee346db" ] ] }, { - "id": "1583a7af300c58e0", + "id": "5d3c3503fee346db", "type": "api-current-state", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "state home security off", + "name": "state garbage today", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "off", + "halt_if": "Geen", "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "input_boolean.home_security", + "halt_if_compare": "is_not", + "entity_id": "sensor.afval_vandaag", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -778,62 +862,66 @@ "valueType": "entity" } ], - "for": 0, + "for": "0", "forType": "num", "forUnits": "minutes", - "x": 560, - "y": 300, + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 720, + "y": 540, "wires": [ [ - "0ccbc5bbe180df8e", - "38276d0327ca72c0" + "c527f80ad015aec2" ], [] ] }, { - "id": "6f6fc24f15222254", + "id": "c20492a470484001", "type": "api-call-service", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "turn on home security", + "name": "start speedtest", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, - "domain": "input_boolean", - "service": "turn_on", + "domain": "homeassistant", + "service": "update_entity", "areaId": [], "deviceId": [], "entityId": [ - "input_boolean.home_security" + "sensor.speedtest_download" ], "data": "", - "dataType": "json", + "dataType": "jsonata", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 960, - "y": 300, + "x": 540, + "y": 180, "wires": [ [] ] }, { - "id": "b9a725c627f8ca76", + "id": "38276d0327ca72c0", "type": "api-call-service", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "turn on switch chime active", + "name": "start timer security", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, - "domain": "switch", - "service": "turn_on", + "domain": "timer", + "service": "start", "areaId": [], "deviceId": [], "entityId": [ - "switch.doorbell_chime_active" + "timer.home_security" ], "data": "", "dataType": "json", @@ -841,25 +929,25 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 820, - "y": 240, + "x": 790, + "y": 420, "wires": [ [] ] }, { - "id": "013e749edd3fa5ad", + "id": "ab4badbb40ac3f96", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "state doorbell chime off", + "g": "1fb2b225cc711d77", + "name": "state outdoor dark", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "off", + "halt_if": "dark", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "switch.doorbell_chime_active", + "entity_id": "sensor.outdoor_light_dark", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -879,74 +967,50 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 570, - "y": 240, + "x": 550, + "y": 840, "wires": [ [ - "b9a725c627f8ca76" + "3fd3c31faf84dc25", + "f69361468483265d" ], [] ] }, { - "id": "9c4864f0ca0d2d96", + "id": "28d474865ab8bbeb", "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "turn off light kitchen", + "g": "1fb2b225cc711d77", + "name": "turn on light front door ", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, "domain": "light", - "service": "turn_off", + "service": "turn_on", "areaId": [], "deviceId": [], "entityId": [ - "light.shellydimmer_kitchen" + "light.shelly1_front_door" ], "data": "", "dataType": "json", - "mergeContext": "", - "mustacheAltTags": false, - "outputProperties": [], - "queue": "none", - "x": 1310, - "y": 160, - "wires": [ - [] - ] - }, - { - "id": "c49e5bd8f93bd496", - "type": "delay", - "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "", - "pauseType": "delay", - "timeout": "20", - "timeoutUnits": "minutes", - "rate": "1", - "nbRateUnits": "1", - "rateUnits": "second", - "randomFirst": "1", - "randomLast": "5", - "randomUnits": "seconds", - "drop": false, - "outputs": 1, - "x": 1070, - "y": 160, + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 1000, + "y": 900, "wires": [ - [ - "9c4864f0ca0d2d96" - ] + [] ] }, { - "id": "d1324fbb34721b63", + "id": "3392b339fb5fe297", "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "turn on light kitchen", + "g": "1fb2b225cc711d77", + "name": "turn on light backyard", "server": "4ba92433.2478cc", "version": 5, "debugenabled": false, @@ -955,35 +1019,33 @@ "areaId": [], "deviceId": [], "entityId": [ - "light.shellydimmer_kitchen" + "light.shellydimmer_backyard_string_l" ], - "data": "{\"brightness_pct\":45}", + "data": "", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 890, - "y": 160, + "x": 1000, + "y": 840, "wires": [ - [ - "c49e5bd8f93bd496" - ] + [] ] }, { - "id": "3dd82a4a5a5f543f", + "id": "3fd3c31faf84dc25", "type": "api-current-state", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "state outdoor dark", + "g": "1fb2b225cc711d77", + "name": "state frontdoor light off", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "dark", + "halt_if": "off", "halt_if_type": "str", "halt_if_compare": "is", - "entity_id": "sensor.outdoor_light_dark", + "entity_id": "light.shelly1_front_door", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -1003,17 +1065,70 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 550, - "y": 180, + "x": 780, + "y": 900, "wires": [ [ - "3d90af805342334d" + "28d474865ab8bbeb" ], + [] + ] + }, + { + "id": "f69361468483265d", + "type": "api-current-state", + "z": "e4381ced98d2a929", + "g": "1fb2b225cc711d77", + "name": "state backyard light off", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "off", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "light.shellydimmer_backyard_string_l", + "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", + "x": 780, + "y": 840, + "wires": [ [ - "2db276d509393d03" - ] + "3392b339fb5fe297" + ], + [] ] }, + { + "id": "0135d0d0e0806d33", + "type": "link out", + "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "link out sleepmode", + "mode": "link", + "links": [ + "51f8fd5354fac718" + ], + "x": 475, + "y": 60, + "wires": [] + }, { "id": "731b5d2bba1d9446", "type": "switch", @@ -1111,108 +1226,183 @@ "wires": [] }, { - "id": "ad62962b589ed07d", - "type": "template", + "id": "269da6e81145bb4b", + "type": "ha-get-entities", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "icon", - "field": "notify.icon", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "", - "output": "str", - "x": 1590, - "y": 420, + "g": "12e8b8acaeaeb3fa", + "name": "lookup lights on", + "server": "4ba92433.2478cc", + "version": 1, + "rules": [ + { + "property": "entity_id", + "logic": "starts_with", + "value": "light.", + "valueType": "str" + }, + { + "property": "state", + "logic": "is", + "value": "on", + "valueType": "str" + } + ], + "outputType": "split", + "outputEmptyResults": false, + "outputLocationType": "msg", + "outputLocation": "payload", + "outputResultsCount": 1, + "x": 540, + "y": 120, "wires": [ [ - "c1f0224f374a67a6" + "47f54cec68e78d0a" ] ] }, { - "id": "cae0f9255059d5ce", - "type": "template", + "id": "47f54cec68e78d0a", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "title", - "field": "notify.title", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "Afval", - "output": "str", - "x": 1590, - "y": 380, + "g": "12e8b8acaeaeb3fa", + "name": "is not upstairs hall light", + "property": "payload.entity_id", + "propertyType": "msg", + "rules": [ + { + "t": "neq", + "v": "light.shelly1_upstairs_hall", + "vt": "str" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 740, + "y": 120, "wires": [ [ - "c1f0224f374a67a6" + "aab38cb48d0dd6a2" ] ] }, { - "id": "f5a1c4dd087e0795", - "type": "link out", + "id": "aab38cb48d0dd6a2", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "link_out_notify_basement_ventilation", - "mode": "link", - "links": [ - "8ed3b0974336e55b", - "a97f87cfab413716", - "aeee8468f3d1b7ad", - "c4660dc11fb0e5b8" + "g": "12e8b8acaeaeb3fa", + "name": "is not kitchen light", + "property": "payload.entity_id", + "propertyType": "msg", + "rules": [ + { + "t": "neq", + "v": "light.shellydimmer_kitchen", + "vt": "str" + } ], - "x": 1845, - "y": 400, - "wires": [] + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 950, + "y": 120, + "wires": [ + [ + "a1aa1dc96a54a58d" + ] + ] }, { - "id": "c1f0224f374a67a6", - "type": "join", + "id": "a0bb528ecdb6c5fe", + "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "", - "mode": "custom", - "build": "merged", - "property": "notify", + "g": "12e8b8acaeaeb3fa", + "name": "turn off lights", + "server": "4ba92433.2478cc", + "version": 5, + "debugenabled": false, + "domain": "light", + "service": "turn_off", + "areaId": [], + "deviceId": [], + "entityId": [ + "{{payload.entity_id}}" + ], + "data": "", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 1770, + "y": 140, + "wires": [ + [] + ] + }, + { + "id": "7804abbba8a75b19", + "type": "switch", + "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "lights on longer then 10 min", + "property": "payload.timeSinceChangedMs", "propertyType": "msg", - "key": "topic", - "joiner": "\\n", - "joinerType": "str", - "accumulate": false, - "timeout": "", - "count": "4", - "reduceRight": false, - "reduceExp": "", - "reduceInit": "", - "reduceInitType": "", - "reduceFixup": "", - "x": 1750, - "y": 400, + "rules": [ + { + "t": "gt", + "v": "60000", + "vt": "num" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 1540, + "y": 100, "wires": [ [ - "f5a1c4dd087e0795" + "a0bb528ecdb6c5fe" ] ] }, { - "id": "13dd6df8c5e31625", - "type": "template", + "id": "a1aa1dc96a54a58d", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "notification id", - "field": "notify.notification_id", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "", - "output": "str", - "x": 1610, - "y": 460, + "g": "12e8b8acaeaeb3fa", + "name": "light is bathroom or master_bedroom", + "property": "payload.entity_id", + "propertyType": "msg", + "rules": [ + { + "t": "eq", + "v": "light.shelly1_bathroom", + "vt": "str" + }, + { + "t": "eq", + "v": "light.shellydimmer_master_bedroom", + "vt": "str" + }, + { + "t": "else" + } + ], + "checkall": "true", + "repair": false, + "outputs": 3, + "x": 1210, + "y": 120, "wires": [ [ - "c1f0224f374a67a6" + "7804abbba8a75b19" + ], + [ + "7804abbba8a75b19" + ], + [ + "a0bb528ecdb6c5fe" ] ] },