diff --git a/src/data/flows/light_dynamics_backyard.json b/src/data/flows/light_dynamics_backyard.json index fa6cb00..d8f22b4 100644 --- a/src/data/flows/light_dynamics_backyard.json +++ b/src/data/flows/light_dynamics_backyard.json @@ -229,7 +229,7 @@ "entityId": [ "{{payload.entity_id}}" ], - "data": "{\"brightness_pct\":\"65\"}", + "data": "{\"brightness_pct\":\"65\",\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, @@ -305,7 +305,7 @@ "entityId": [ "light.{{parts.key}}" ], - "data": "{\"brightness\":\"{{payload.attributes.brightness}}\"}", + "data": "{\"brightness\":\"{{payload.attributes.brightness}}\",\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, @@ -332,7 +332,7 @@ "entityId": [ "light.{{parts.key}}" ], - "data": "", + "data": "{\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, diff --git a/src/data/flows/scene_home_leaving.json b/src/data/flows/scene_home_leaving.json index ef831af..9a289c6 100644 --- a/src/data/flows/scene_home_leaving.json +++ b/src/data/flows/scene_home_leaving.json @@ -7,7 +7,7 @@ "info": "" }, { - "id": "14187342a7b09482", + "id": "cc3f4f06d9ee1050", "type": "group", "z": "8aa6edec.5a013", "name": "notify", @@ -15,18 +15,16 @@ "label": true }, "nodes": [ - "19cfd22b49a2e356", - "8aa74b4cb48558f8", - "3bdaf73ce37b7397", - "d512fe1ba0adbf42", - "83e460c17170065f", - "1b8772493fd3aa94", - "c8db6380b138fd4e" + "8bd431aac8edba25", + "1d9212ada487b166", + "2d9c5a51a0d3d65a", + "934778f06d5ff810", + "11441b9d4ec597d9" ], "x": 1594, - "y": 239, + "y": 459, "w": 412, - "h": 202 + "h": 162 }, { "id": "9c946ef945c199e5", @@ -49,7 +47,7 @@ "h": 162 }, { - "id": "cc3f4f06d9ee1050", + "id": "14187342a7b09482", "type": "group", "z": "8aa6edec.5a013", "name": "notify", @@ -57,30 +55,30 @@ "label": true }, "nodes": [ - "8bd431aac8edba25", - "1d9212ada487b166", - "2d9c5a51a0d3d65a", - "934778f06d5ff810", - "11441b9d4ec597d9" + "19cfd22b49a2e356", + "8aa74b4cb48558f8", + "3bdaf73ce37b7397", + "d512fe1ba0adbf42", + "83e460c17170065f", + "1b8772493fd3aa94", + "c8db6380b138fd4e" ], "x": 1594, - "y": 459, + "y": 239, "w": 412, - "h": 162 + "h": 202 }, { - "id": "83e460c17170065f", + "id": "11441b9d4ec597d9", "type": "junction", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", + "g": "cc3f4f06d9ee1050", "x": 1620, - "y": 320, + "y": 540, "wires": [ [ - "8aa74b4cb48558f8", - "19cfd22b49a2e356", - "1b8772493fd3aa94", - "c8db6380b138fd4e" + "1d9212ada487b166", + "8bd431aac8edba25" ] ] }, @@ -99,64 +97,109 @@ ] }, { - "id": "11441b9d4ec597d9", + "id": "83e460c17170065f", "type": "junction", "z": "8aa6edec.5a013", - "g": "cc3f4f06d9ee1050", + "g": "14187342a7b09482", "x": 1620, + "y": 320, + "wires": [ + [ + "8aa74b4cb48558f8", + "19cfd22b49a2e356", + "1b8772493fd3aa94", + "c8db6380b138fd4e" + ] + ] + }, + { + "id": "934778f06d5ff810", + "type": "join", + "z": "8aa6edec.5a013", + "g": "cc3f4f06d9ee1050", + "name": "", + "mode": "custom", + "build": "merged", + "property": "notify", + "propertyType": "msg", + "key": "topic", + "joiner": "\\n", + "joinerType": "str", + "accumulate": false, + "timeout": "", + "count": "3", + "reduceRight": false, + "reduceExp": "", + "reduceInit": "", + "reduceInitType": "", + "reduceFixup": "", + "x": 1870, "y": 540, "wires": [ [ - "1d9212ada487b166", - "8bd431aac8edba25" + "2d9c5a51a0d3d65a" ] ] }, { - "id": "c8db6380b138fd4e", + "id": "2d9c5a51a0d3d65a", + "type": "link out", + "z": "8aa6edec.5a013", + "g": "cc3f4f06d9ee1050", + "name": "link_out_notify_home_leaving_2", + "mode": "link", + "links": [ + "8ed3b0974336e55b" + ], + "x": 1965, + "y": 540, + "wires": [] + }, + { + "id": "1d9212ada487b166", "type": "template", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", - "name": "message", - "field": "notify.message", + "g": "cc3f4f06d9ee1050", + "name": "title", + "field": "notify.title", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "{{{friendly_name}}} verlichting stond nog aan en is nu automatisch uitgeschakeld.", + "template": "Gastmodus", "output": "str", - "x": 1720, - "y": 320, + "x": 1710, + "y": 500, "wires": [ [ - "d512fe1ba0adbf42" + "934778f06d5ff810" ] ] }, { - "id": "1b8772493fd3aa94", + "id": "8bd431aac8edba25", "type": "template", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", - "name": "notification id", - "field": "notify.notification_id", + "g": "cc3f4f06d9ee1050", + "name": "icon", + "field": "notify.icon", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "lights", + "template": "", "output": "str", - "x": 1730, - "y": 360, + "x": 1710, + "y": 580, "wires": [ [ - "d512fe1ba0adbf42" + "934778f06d5ff810" ] ] }, { - "id": "d512fe1ba0adbf42", + "id": "f7c20be07a75c04e", "type": "join", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", + "g": "9c946ef945c199e5", "name": "", "mode": "custom", "build": "merged", @@ -167,59 +210,59 @@ "joinerType": "str", "accumulate": false, "timeout": "", - "count": "4", + "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1870, - "y": 320, + "y": 120, "wires": [ [ - "3bdaf73ce37b7397" + "37c73ac2e71d9a61" ] ] }, { - "id": "3bdaf73ce37b7397", + "id": "37c73ac2e71d9a61", "type": "link out", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", - "name": "link_out_notify_ac_solar_record", + "g": "9c946ef945c199e5", + "name": "link_out_notify_home_leaving_1", "mode": "link", "links": [ - "a97f87cfab413716" + "8ed3b0974336e55b" ], "x": 1965, - "y": 320, + "y": 120, "wires": [] }, { - "id": "8aa74b4cb48558f8", + "id": "254201c717321a67", "type": "template", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", + "g": "9c946ef945c199e5", "name": "title", "field": "notify.title", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Verlichting", + "template": "Beveiliging", "output": "str", "x": 1710, - "y": 280, + "y": 80, "wires": [ [ - "d512fe1ba0adbf42" + "f7c20be07a75c04e" ] ] }, { - "id": "19cfd22b49a2e356", + "id": "60a9200995b666e2", "type": "template", "z": "8aa6edec.5a013", - "g": "14187342a7b09482", + "g": "9c946ef945c199e5", "name": "icon", "field": "notify.icon", "fieldType": "msg", @@ -228,18 +271,18 @@ "template": "", "output": "str", "x": 1710, - "y": 400, + "y": 160, "wires": [ [ - "d512fe1ba0adbf42" + "f7c20be07a75c04e" ] ] }, { - "id": "60a9200995b666e2", + "id": "19cfd22b49a2e356", "type": "template", "z": "8aa6edec.5a013", - "g": "9c946ef945c199e5", + "g": "14187342a7b09482", "name": "icon", "field": "notify.icon", "fieldType": "msg", @@ -248,52 +291,52 @@ "template": "", "output": "str", "x": 1710, - "y": 160, + "y": 400, "wires": [ [ - "f7c20be07a75c04e" + "d512fe1ba0adbf42" ] ] }, { - "id": "254201c717321a67", + "id": "8aa74b4cb48558f8", "type": "template", "z": "8aa6edec.5a013", - "g": "9c946ef945c199e5", + "g": "14187342a7b09482", "name": "title", "field": "notify.title", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Beveiliging", + "template": "Verlichting", "output": "str", "x": 1710, - "y": 80, + "y": 280, "wires": [ [ - "f7c20be07a75c04e" + "d512fe1ba0adbf42" ] ] }, { - "id": "37c73ac2e71d9a61", + "id": "3bdaf73ce37b7397", "type": "link out", "z": "8aa6edec.5a013", - "g": "9c946ef945c199e5", - "name": "link_out_notify_home_leaving_1", + "g": "14187342a7b09482", + "name": "link_out_notify_ac_solar_record", "mode": "link", "links": [ - "8ed3b0974336e55b" + "a97f87cfab413716" ], "x": 1965, - "y": 120, + "y": 320, "wires": [] }, { - "id": "f7c20be07a75c04e", + "id": "d512fe1ba0adbf42", "type": "join", "z": "8aa6edec.5a013", - "g": "9c946ef945c199e5", + "g": "14187342a7b09482", "name": "", "mode": "custom", "build": "merged", @@ -304,100 +347,57 @@ "joinerType": "str", "accumulate": false, "timeout": "", - "count": "3", + "count": "4", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 1870, - "y": 120, + "y": 320, "wires": [ [ - "37c73ac2e71d9a61" + "3bdaf73ce37b7397" ] ] }, { - "id": "8bd431aac8edba25", + "id": "1b8772493fd3aa94", "type": "template", "z": "8aa6edec.5a013", - "g": "cc3f4f06d9ee1050", - "name": "icon", - "field": "notify.icon", + "g": "14187342a7b09482", + "name": "notification id", + "field": "notify.notification_id", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "", + "template": "lights", "output": "str", - "x": 1710, - "y": 580, + "x": 1730, + "y": 360, "wires": [ [ - "934778f06d5ff810" + "d512fe1ba0adbf42" ] ] }, { - "id": "1d9212ada487b166", + "id": "c8db6380b138fd4e", "type": "template", "z": "8aa6edec.5a013", - "g": "cc3f4f06d9ee1050", - "name": "title", - "field": "notify.title", + "g": "14187342a7b09482", + "name": "message", + "field": "notify.message", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Gastmodus", + "template": "{{{friendly_name}}} verlichting stond nog aan en is nu automatisch uitgeschakeld.", "output": "str", - "x": 1710, - "y": 500, - "wires": [ - [ - "934778f06d5ff810" - ] - ] - }, - { - "id": "2d9c5a51a0d3d65a", - "type": "link out", - "z": "8aa6edec.5a013", - "g": "cc3f4f06d9ee1050", - "name": "link_out_notify_home_leaving_2", - "mode": "link", - "links": [ - "8ed3b0974336e55b" - ], - "x": 1965, - "y": 540, - "wires": [] - }, - { - "id": "934778f06d5ff810", - "type": "join", - "z": "8aa6edec.5a013", - "g": "cc3f4f06d9ee1050", - "name": "", - "mode": "custom", - "build": "merged", - "property": "notify", - "propertyType": "msg", - "key": "topic", - "joiner": "\\n", - "joinerType": "str", - "accumulate": false, - "timeout": "", - "count": "3", - "reduceRight": false, - "reduceExp": "", - "reduceInit": "", - "reduceInitType": "", - "reduceFixup": "", - "x": 1870, - "y": 540, + "x": 1720, + "y": 320, "wires": [ [ - "2d9c5a51a0d3d65a" + "d512fe1ba0adbf42" ] ] }, @@ -1058,7 +1058,7 @@ "entityId": [ "{{payload.entity_id}}" ], - "data": "", + "data": "{\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, diff --git a/src/data/flows/scene_sleepmode.json b/src/data/flows/scene_sleepmode.json index 96415e0..e4604bb 100644 --- a/src/data/flows/scene_sleepmode.json +++ b/src/data/flows/scene_sleepmode.json @@ -8,26 +8,53 @@ "env": [] }, { - "id": "bd90d247a95feb9d", + "id": "13b1135f0e749c31", "type": "group", "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "notify", "style": { - "label": true + "stroke": "#999999", + "stroke-opacity": "1", + "fill": "none", + "fill-opacity": "1", + "label": true, + "label-position": "nw", + "color": "#a4a4a4" }, "nodes": [ - "ad62962b589ed07d", - "cae0f9255059d5ce", - "f5a1c4dd087e0795", - "c1f0224f374a67a6", - "ce2746e7cd66f603", - "13dd6df8c5e31625" + "f9ccc0bad1f19231", + "8ee38710dd301911" ], - "x": 1074, - "y": 419, - "w": 432, - "h": 162 + "x": 434, + "y": 619, + "w": 532, + "h": 82 + }, + { + "id": "1fb2b225cc711d77", + "type": "group", + "z": "e4381ced98d2a929", + "style": { + "stroke": "#999999", + "stroke-opacity": "1", + "fill": "none", + "fill-opacity": "1", + "label": true, + "label-position": "nw", + "color": "#a4a4a4" + }, + "nodes": [ + "ec72f7b2db4cc37c", + "764ff273496b0193", + "ab4badbb40ac3f96", + "28d474865ab8bbeb", + "3392b339fb5fe297", + "3fd3c31faf84dc25", + "f69361468483265d" + ], + "x": 434, + "y": 739, + "w": 692, + "h": 202 }, { "id": "12e8b8acaeaeb3fa", @@ -75,53 +102,39 @@ "h": 588 }, { - "id": "1fb2b225cc711d77", + "id": "bd90d247a95feb9d", "type": "group", "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "notify", "style": { - "stroke": "#999999", - "stroke-opacity": "1", - "fill": "none", - "fill-opacity": "1", - "label": true, - "label-position": "nw", - "color": "#a4a4a4" + "label": true }, "nodes": [ - "ec72f7b2db4cc37c", - "764ff273496b0193", - "ab4badbb40ac3f96", - "28d474865ab8bbeb", - "3392b339fb5fe297", - "3fd3c31faf84dc25", - "f69361468483265d" + "ad62962b589ed07d", + "cae0f9255059d5ce", + "f5a1c4dd087e0795", + "c1f0224f374a67a6", + "ce2746e7cd66f603", + "13dd6df8c5e31625" ], - "x": 434, - "y": 739, - "w": 692, - "h": 202 + "x": 1074, + "y": 419, + "w": 432, + "h": 162 }, { - "id": "13b1135f0e749c31", - "type": "group", + "id": "2db276d509393d03", + "type": "junction", "z": "e4381ced98d2a929", - "style": { - "stroke": "#999999", - "stroke-opacity": "1", - "fill": "none", - "fill-opacity": "1", - "label": true, - "label-position": "nw", - "color": "#a4a4a4" - }, - "nodes": [ - "f9ccc0bad1f19231", - "8ee38710dd301911" - ], - "x": 434, - "y": 619, - "w": 532, - "h": 82 + "g": "12e8b8acaeaeb3fa", + "x": 1180, + "y": 260, + "wires": [ + [ + "9c4864f0ca0d2d96" + ] + ] }, { "id": "ce2746e7cd66f603", @@ -138,19 +151,6 @@ ] ] }, - { - "id": "2db276d509393d03", - "type": "junction", - "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "x": 1180, - "y": 260, - "wires": [ - [ - "9c4864f0ca0d2d96" - ] - ] - }, { "id": "8e4b5e877883b3e0", "type": "junction", @@ -185,124 +185,213 @@ ] }, { - "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": 1230, - "y": 540, + "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" ] ] }, { - "id": "c1f0224f374a67a6", - "type": "join", + "id": "7804abbba8a75b19", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "", - "mode": "custom", - "build": "merged", - "property": "notify", + "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": 1370, - "y": 480, + "rules": [ + { + "t": "gt", + "v": "60000", + "vt": "num" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 1540, + "y": 100, "wires": [ [ - "f5a1c4dd087e0795" + "a0bb528ecdb6c5fe" ] ] }, { - "id": "f5a1c4dd087e0795", - "type": "link out", + "id": "a0bb528ecdb6c5fe", + "type": "api-call-service", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "link_out_notify_basement_ventilation", - "mode": "link", - "links": [ - "8ed3b0974336e55b", - "a97f87cfab413716", - "aeee8468f3d1b7ad", - "c4660dc11fb0e5b8" + "g": "12e8b8acaeaeb3fa", + "name": "turn off lights", + "server": "4ba92433.2478cc", + "version": 5, + "debugenabled": false, + "domain": "light", + "service": "turn_off", + "areaId": [], + "deviceId": [], + "entityId": [ + "{{payload.entity_id}}" ], - "x": 1465, - "y": 480, - "wires": [] + "data": "{\"transition\":5000}", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 1770, + "y": 140, + "wires": [ + [] + ] }, { - "id": "cae0f9255059d5ce", - "type": "template", + "id": "aab38cb48d0dd6a2", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "title", - "field": "notify.title", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "Afval", - "output": "str", - "x": 1210, - "y": 460, + "g": "12e8b8acaeaeb3fa", + "name": "is not kitchen light", + "property": "payload.entity_id", + "propertyType": "msg", + "rules": [ + { + "t": "neq", + "v": "light.shellydimmer_kitchen", + "vt": "str" + } + ], + "checkall": "true", + "repair": false, + "outputs": 1, + "x": 950, + "y": 120, "wires": [ [ - "c1f0224f374a67a6" + "a1aa1dc96a54a58d" ] ] }, { - "id": "ad62962b589ed07d", - "type": "template", + "id": "47f54cec68e78d0a", + "type": "switch", "z": "e4381ced98d2a929", - "g": "bd90d247a95feb9d", - "name": "icon", - "field": "notify.icon", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "", - "output": "str", - "x": 1210, - "y": 500, + "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": "3dd82a4a5a5f543f", - "type": "api-current-state", + "id": "269da6e81145bb4b", + "type": "ha-get-entities", "z": "e4381ced98d2a929", "g": "12e8b8acaeaeb3fa", - "name": "state outdoor dark", + "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": [ + [ + "47f54cec68e78d0a" + ] + ] + }, + { + "id": "0135d0d0e0806d33", + "type": "link out", + "z": "e4381ced98d2a929", + "g": "12e8b8acaeaeb3fa", + "name": "link out sleepmode", + "mode": "link", + "links": [ + "51f8fd5354fac718" + ], + "x": 475, + "y": 60, + "wires": [] + }, + { + "id": "f69361468483265d", + "type": "api-current-state", + "z": "e4381ced98d2a929", + "g": "1fb2b225cc711d77", + "name": "state backyard 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.shellydimmer_backyard_string_l", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -322,23 +411,62 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 550, - "y": 240, + "x": 780, + "y": 840, "wires": [ [ - "3d90af805342334d" + "3392b339fb5fe297" ], + [] + ] + }, + { + "id": "3fd3c31faf84dc25", + "type": "api-current-state", + "z": "e4381ced98d2a929", + "g": "1fb2b225cc711d77", + "name": "state frontdoor light off", + "server": "4ba92433.2478cc", + "version": 3, + "outputs": 2, + "halt_if": "off", + "halt_if_type": "str", + "halt_if_compare": "is", + "entity_id": "light.shelly1_front_door", + "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": 900, + "wires": [ [ - "2db276d509393d03" - ] + "28d474865ab8bbeb" + ], + [] ] }, { - "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, @@ -347,88 +475,61 @@ "areaId": [], "deviceId": [], "entityId": [ - "light.shellydimmer_kitchen" + "light.shellydimmer_backyard_string_l" ], - "data": "{\"brightness_pct\":45}", + "data": "{\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 890, - "y": 220, - "wires": [ - [ - "c49e5bd8f93bd496" - ] - ] - }, - { - "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, + "x": 1000, + "y": 840, "wires": [ - [ - "9c4864f0ca0d2d96" - ] + [] ] }, { - "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": "", + "data": "{\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1410, - "y": 220, + "x": 1000, + "y": 900, "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.smart-doorbell_active", + "entity_id": "sensor.outdoor_light_dark", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -448,30 +549,31 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 570, - "y": 300, + "x": 550, + "y": 840, "wires": [ [ - "b9a725c627f8ca76" + "3fd3c31faf84dc25", + "f69361468483265d" ], [] ] }, { - "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.smart-doorbell_active" + "timer.home_security" ], "data": "", "dataType": "json", @@ -479,53 +581,53 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 820, - "y": 300, + "x": 790, + "y": 420, "wires": [ [] ] }, { - "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": 360, + "x": 540, + "y": 180, "wires": [ [] ] }, { - "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": [ @@ -542,116 +644,130 @@ "valueType": "entity" } ], - "for": 0, + "for": "0", "forType": "num", "forUnits": "minutes", - "x": 560, - "y": 360, + "override_topic": false, + "state_location": "payload", + "override_payload": "msg", + "entity_location": "data", + "override_data": "msg", + "x": 720, + "y": 540, "wires": [ [ - "0ccbc5bbe180df8e", - "38276d0327ca72c0" + "c527f80ad015aec2" ], [] ] }, { - "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": 360, + "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": "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": 220, + "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": "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": "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.smart-doorbell_active", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ { - "property": "timer.security", + "property": "payload", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -667,10 +783,10 @@ "forType": "num", "forUnits": "minutes", "x": 570, - "y": 780, + "y": 660, "wires": [ [ - "ec72f7b2db4cc37c" + "f9ccc0bad1f19231" ], [] ] @@ -704,23 +820,23 @@ ] }, { - "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.smart-doorbell_active", + "entity_id": "timer.home_security", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ { - "property": "payload", + "property": "timer.security", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -736,116 +852,106 @@ "forType": "num", "forUnits": "minutes", "x": 570, - "y": 660, + "y": 780, "wires": [ [ - "f9ccc0bad1f19231" + "ec72f7b2db4cc37c" ], [] ] }, { - "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": 480, + "data": "", + "dataType": "json", + "mergeContext": "", + "mustacheAltTags": false, + "outputProperties": [], + "queue": "none", + "x": 790, + "y": 780, "wires": [ - [ - "c527f80ad015aec2" - ], [] ] }, { - "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": 480, + "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": "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": 480, + "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": "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": [ @@ -862,66 +968,62 @@ "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": 540, + "x": 560, + "y": 360, "wires": [ [ - "c527f80ad015aec2" + "0ccbc5bbe180df8e", + "38276d0327ca72c0" ], [] ] }, { - "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": 180, + "x": 960, + "y": 360, "wires": [ [] ] }, { - "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.smart-doorbell_active" ], "data": "", "dataType": "json", @@ -929,25 +1031,25 @@ "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 790, - "y": 420, + "x": 820, + "y": 300, "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.smart-doorbell_active", "state_type": "str", "blockInputOverrides": false, "outputProperties": [ @@ -967,50 +1069,74 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 550, - "y": 840, + "x": 570, + "y": 300, "wires": [ [ - "3fd3c31faf84dc25", - "f69361468483265d" + "b9a725c627f8ca76" ], [] ] }, { - "id": "28d474865ab8bbeb", + "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": "", + "data": "{\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1000, - "y": 900, + "x": 1410, + "y": 220, "wires": [ [] ] }, { - "id": "3392b339fb5fe297", + "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": "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, @@ -1019,33 +1145,35 @@ "areaId": [], "deviceId": [], "entityId": [ - "light.shellydimmer_backyard_string_l" + "light.shellydimmer_kitchen" ], - "data": "", + "data": "{\"brightness_pct\":45,\"transition\":5000}", "dataType": "json", "mergeContext": "", "mustacheAltTags": false, "outputProperties": [], "queue": "none", - "x": 1000, - "y": 840, + "x": 890, + "y": 220, "wires": [ - [] + [ + "c49e5bd8f93bd496" + ] ] }, { - "id": "3fd3c31faf84dc25", + "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": [ @@ -1065,70 +1193,123 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 780, - "y": 900, + "x": 550, + "y": 240, "wires": [ [ - "28d474865ab8bbeb" + "3d90af805342334d" ], - [] + [ + "2db276d509393d03" + ] ] }, { - "id": "f69361468483265d", - "type": "api-current-state", + "id": "ad62962b589ed07d", + "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": "icon", + "field": "notify.icon", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 1210, + "y": 500, "wires": [ [ - "3392b339fb5fe297" - ], - [] + "c1f0224f374a67a6" + ] ] }, { - "id": "0135d0d0e0806d33", + "id": "cae0f9255059d5ce", + "type": "template", + "z": "e4381ced98d2a929", + "g": "bd90d247a95feb9d", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Afval", + "output": "str", + "x": 1210, + "y": 460, + "wires": [ + [ + "c1f0224f374a67a6" + ] + ] + }, + { + "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": 60, + "x": 1465, + "y": 480, "wires": [] }, + { + "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": "13dd6df8c5e31625", + "type": "template", + "z": "e4381ced98d2a929", + "g": "bd90d247a95feb9d", + "name": "notification id", + "field": "notify.notification_id", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 1230, + "y": 540, + "wires": [ + [ + "c1f0224f374a67a6" + ] + ] + }, { "id": "731b5d2bba1d9446", "type": "switch", @@ -1225,187 +1406,6 @@ "y": 20, "wires": [] }, - { - "id": "269da6e81145bb4b", - "type": "ha-get-entities", - "z": "e4381ced98d2a929", - "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": [ - [ - "47f54cec68e78d0a" - ] - ] - }, - { - "id": "47f54cec68e78d0a", - "type": "switch", - "z": "e4381ced98d2a929", - "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": [ - [ - "aab38cb48d0dd6a2" - ] - ] - }, - { - "id": "aab38cb48d0dd6a2", - "type": "switch", - "z": "e4381ced98d2a929", - "g": "12e8b8acaeaeb3fa", - "name": "is not kitchen light", - "property": "payload.entity_id", - "propertyType": "msg", - "rules": [ - { - "t": "neq", - "v": "light.shellydimmer_kitchen", - "vt": "str" - } - ], - "checkall": "true", - "repair": false, - "outputs": 1, - "x": 950, - "y": 120, - "wires": [ - [ - "a1aa1dc96a54a58d" - ] - ] - }, - { - "id": "a0bb528ecdb6c5fe", - "type": "api-call-service", - "z": "e4381ced98d2a929", - "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", - "rules": [ - { - "t": "gt", - "v": "60000", - "vt": "num" - } - ], - "checkall": "true", - "repair": false, - "outputs": 1, - "x": 1540, - "y": 100, - "wires": [ - [ - "a0bb528ecdb6c5fe" - ] - ] - }, - { - "id": "a1aa1dc96a54a58d", - "type": "switch", - "z": "e4381ced98d2a929", - "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": [ - [ - "7804abbba8a75b19" - ], - [ - "7804abbba8a75b19" - ], - [ - "a0bb528ecdb6c5fe" - ] - ] - }, { "id": "4ba92433.2478cc", "type": "server",