From 17d03a8d8f632c68ab5b62897b7c480f55ed1160 Mon Sep 17 00:00:00 2001 From: theautomation Date: Sun, 15 Sep 2024 20:10:20 +0200 Subject: [PATCH] Refactor mechanical fan flow for the basement #55 --- ...ation_mechanical_ventilation_basement.json | 1011 ++++++----------- 1 file changed, 318 insertions(+), 693 deletions(-) diff --git a/src/data/flows/automation_mechanical_ventilation_basement.json b/src/data/flows/automation_mechanical_ventilation_basement.json index b2e4ccc..0a96499 100644 --- a/src/data/flows/automation_mechanical_ventilation_basement.json +++ b/src/data/flows/automation_mechanical_ventilation_basement.json @@ -1448,17 +1448,41 @@ "399184be7531eb78", "67db220bfc8a732a" ], - "x": 2154, + "x": 2194, "y": 779, "w": 432, "h": 242 }, + { + "id": "f7435f5ad02d3f79", + "type": "group", + "z": "4e909abe.0b62e4", + "style": { + "stroke": "#999999", + "stroke-opacity": "1", + "fill": "none", + "fill-opacity": "1", + "label": true, + "label-position": "nw", + "color": "#a4a4a4" + }, + "nodes": [ + "e231947e3513d81f", + "e4c83565e32c77fc", + "0556160e41cbd509", + "f9b4b865266e96f0" + ], + "x": 14, + "y": 39, + "w": 502, + "h": 82 + }, { "id": "f6654a628999616b", "type": "junction", "z": "4e909abe.0b62e4", "g": "0a1a2a6df765a339", - "x": 2180, + "x": 2220, "y": 840, "wires": [ [ @@ -1474,8 +1498,8 @@ "id": "06680ce4a549dadf", "type": "junction", "z": "4e909abe.0b62e4", - "x": 700, - "y": 720, + "x": 880, + "y": 700, "wires": [ [ "4b24c6f.ecf9538" @@ -1486,8 +1510,8 @@ "id": "4ca83366bf185d83", "type": "junction", "z": "4e909abe.0b62e4", - "x": 1040, - "y": 920, + "x": 1120, + "y": 960, "wires": [ [ "46771664.f639e8" @@ -1498,60 +1522,52 @@ "id": "3d016b4671a45b4a", "type": "junction", "z": "4e909abe.0b62e4", - "x": 820, - "y": 800, + "x": 860, + "y": 820, "wires": [ [ - "5468cbac60f12182" + "46771664.f639e8" ] ] }, { - "id": "5468cbac60f12182", + "id": "7c2423c56f1fe876", "type": "junction", "z": "4e909abe.0b62e4", - "x": 1080, - "y": 800, + "x": 1840, + "y": 1080, "wires": [ [ - "46771664.f639e8" + "f6654a628999616b" ] ] }, { - "id": "d6d0b5735ad8f20a", - "type": "template", + "id": "1a967b65adcf68b4", + "type": "junction", "z": "4e909abe.0b62e4", - "g": "0a1a2a6df765a339", - "name": "notification id", - "field": "notify.notification_id", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "mechanical_ventilation", - "output": "str", - "x": 2310, - "y": 900, + "x": 1840, + "y": 740, "wires": [ [ - "a1c0156c06d58e91" + "f6654a628999616b" ] ] }, { - "id": "febf6f9eab6e868d", + "id": "67db220bfc8a732a", "type": "template", "z": "4e909abe.0b62e4", "g": "0a1a2a6df765a339", - "name": "icon", - "field": "notify.icon", + "name": "click action", + "field": "notify.clickAction", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "", + "template": "/dashboard-mobile/climate", "output": "str", - "x": 2290, - "y": 860, + "x": 2350, + "y": 980, "wires": [ [ "a1c0156c06d58e91" @@ -1559,40 +1575,25 @@ ] }, { - "id": "6502d163268904d4", + "id": "399184be7531eb78", "type": "template", "z": "4e909abe.0b62e4", "g": "0a1a2a6df765a339", - "name": "title", - "field": "notify.title", + "name": "tag", + "field": "notify.tag", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Mechanische ventilatie", + "template": "mechanical_ventilation_basement", "output": "str", - "x": 2290, - "y": 820, + "x": 2330, + "y": 940, "wires": [ [ "a1c0156c06d58e91" ] ] }, - { - "id": "ac04035c1896218b", - "type": "link out", - "z": "4e909abe.0b62e4", - "g": "0a1a2a6df765a339", - "name": "link_out_notify_1", - "mode": "link", - "links": [ - "8ed3b0974336e55b", - "a97f87cfab413716" - ], - "x": 2545, - "y": 840, - "wires": [] - }, { "id": "a1c0156c06d58e91", "type": "join", @@ -1615,7 +1616,7 @@ "reduceInit": "", "reduceInitType": "", "reduceFixup": "", - "x": 2450, + "x": 2490, "y": 840, "wires": [ [ @@ -1623,6 +1624,81 @@ ] ] }, + { + "id": "ac04035c1896218b", + "type": "link out", + "z": "4e909abe.0b62e4", + "g": "0a1a2a6df765a339", + "name": "link_out_notify_1", + "mode": "link", + "links": [ + "8ed3b0974336e55b", + "a97f87cfab413716" + ], + "x": 2585, + "y": 840, + "wires": [] + }, + { + "id": "6502d163268904d4", + "type": "template", + "z": "4e909abe.0b62e4", + "g": "0a1a2a6df765a339", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Mechanische ventilatie", + "output": "str", + "x": 2330, + "y": 820, + "wires": [ + [ + "a1c0156c06d58e91" + ] + ] + }, + { + "id": "febf6f9eab6e868d", + "type": "template", + "z": "4e909abe.0b62e4", + "g": "0a1a2a6df765a339", + "name": "icon", + "field": "notify.icon", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 2330, + "y": 860, + "wires": [ + [ + "a1c0156c06d58e91" + ] + ] + }, + { + "id": "d6d0b5735ad8f20a", + "type": "template", + "z": "4e909abe.0b62e4", + "g": "0a1a2a6df765a339", + "name": "notification id", + "field": "notify.notification_id", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "mechanical_ventilation", + "output": "str", + "x": 2350, + "y": 900, + "wires": [ + [ + "a1c0156c06d58e91" + ] + ] + }, { "id": "a0fea0e8.d9a66", "type": "server-state-changed", @@ -1673,8 +1749,8 @@ "valueType": "triggerId" } ], - "x": 400, - "y": 300, + "x": 440, + "y": 260, "wires": [ [ "466f23cc5674fa22" @@ -1713,8 +1789,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 770, - "y": 120, + "x": 750, + "y": 200, "wires": [ [ "a443801a148e31b6" @@ -1722,86 +1798,6 @@ [] ] }, - { - "id": "ff0ab6a6.950ca8", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state wall temperature basement < dewpoint master bedroom", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "sensor.master_bedroom_thermal_comfort_dew_point", - "halt_if_type": "msg", - "halt_if_compare": "lt", - "entity_id": "sensor.basement_wall_temperature_offset", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.basement_wall_temperature_offset", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 780, - "y": 180, - "wires": [ - [ - "3efec0d271c18678" - ], - [] - ] - }, - { - "id": "8a2090d8.a2185", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state absolute humidity basement < absolute humidity living room", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "sensor.living_room_thermal_comfort_absolute_humidity", - "halt_if_type": "msg", - "halt_if_compare": "lt", - "entity_id": "sensor.basement_thermal_comfort_absolute_humidity", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.basement_thermal_comfort_absolute_humidity", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 800, - "y": 240, - "wires": [ - [ - "f75b2db2c30eabf9" - ], - [] - ] - }, { "id": "bfdcba16.625018", "type": "api-current-state", @@ -1833,7 +1829,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1260, + "x": 1300, "y": 740, "wires": [ [ @@ -1848,8 +1844,8 @@ "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION 0", "info": "", - "x": 420, - "y": 80, + "x": 460, + "y": 160, "wires": [] }, { @@ -1858,333 +1854,53 @@ "z": "4e909abe.0b62e4", "name": "CONDITIONS & DATA", "info": "", - "x": 360, - "y": 360, + "x": 400, + "y": 440, "wires": [] }, { "id": "75db2fdc.c1e22", - "type": "inject", - "z": "4e909abe.0b62e4", - "name": "start_flow", - "props": [ - { - "p": "payload" - } - ], - "repeat": "900", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "start_flow", - "payloadType": "str", - "x": 90, - "y": 80, - "wires": [ - [ - "eaba4c18.04007", - "476a9b5a.95d894", - "4abb03cf.8c49ec", - "4e1d6c0e.bd6b44" - ] - ] - }, - { - "id": "e07362ff.ad189", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state temperature outdoor <= 5", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "5", - "halt_if_type": "num", - "halt_if_compare": "lte", - "entity_id": "sensor.buienradar_temperature", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.buienradar_temperature", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 390, - "y": 740, - "wires": [ - [ - "f58250ec.e0fa1" - ], - [ - "240fac46.902e04" - ] - ] - }, - { - "id": "13e032a.2acbbcd", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state heating power basement <= 0%", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "0", - "halt_if_type": "num", - "halt_if_compare": "lte", - "entity_id": "sensor.basement_heating", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.basement_heating", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 1210, - "y": 580, - "wires": [ - [ - "52a3b09f.ae48" - ], - [] - ] - }, - { - "id": "eaba4c18.04007", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state dewpoint living room ", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "num", - "halt_if_compare": "is", - "entity_id": "sensor.living_room_thermal_comfort_dew_point", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.living_room_thermal_comfort_dew_point", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 370, - "y": 120, - "wires": [ - [ - "cbe4be0.ad6c74" - ] - ] - }, - { - "id": "476a9b5a.95d894", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state dewpoint master bedroom ", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "num", - "halt_if_compare": "is", - "entity_id": "sensor.master_bedroom_thermal_comfort_dew_point", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.master_bedroom_thermal_comfort_dew_point", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 390, - "y": 180, - "wires": [ - [ - "ff0ab6a6.950ca8" - ] - ] - }, - { - "id": "4abb03cf.8c49ec", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state absolute humidity living room", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "str", - "halt_if_compare": "is", - "entity_id": "sensor.living_room_thermal_comfort_absolute_humidity", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.living_room_thermal_comfort_absolute_humidity", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 400, - "y": 240, - "wires": [ - [ - "8a2090d8.a2185" - ] - ] - }, - { - "id": "599646a9.361b38", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state dewpoint living room ", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 1, - "halt_if": "", - "halt_if_type": "num", - "halt_if_compare": "is", - "entity_id": "sensor.living_room_thermal_comfort_dew_point", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.living_room_thermal_comfort_dew_point", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 370, - "y": 460, - "wires": [ - [ - "87cfa72a.3e07e8" - ] - ] - }, - { - "id": "87cfa72a.3e07e8", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state wall temperature basement < dewpoint living room", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "sensor.living_room_thermal_comfort_dew_point", - "halt_if_type": "msg", - "halt_if_compare": "gt", - "entity_id": "sensor.basement_wall_temperature_offset", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.basement_wall_temperature_offset", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, + "type": "inject", + "z": "4e909abe.0b62e4", + "name": "start_flow", + "props": [ { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" + "p": "payload" } ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 710, - "y": 460, + "repeat": "900", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "start_flow", + "payloadType": "str", + "x": 110, + "y": 160, "wires": [ [ - "e07eea7c.6e4af8" - ], - [] + "eaba4c18.04007", + "4e1d6c0e.bd6b44" + ] ] }, { - "id": "e07eea7c.6e4af8", + "id": "e07362ff.ad189", "type": "api-current-state", "z": "4e909abe.0b62e4", - "name": "state master bedroom dewpoint", + "name": "state temperature outdoor <= 5", "server": "4ba92433.2478cc", "version": 3, - "outputs": 1, - "halt_if": "", + "outputs": 2, + "halt_if": "5", "halt_if_type": "num", - "halt_if_compare": "is", - "entity_id": "sensor.master_bedroom_thermal_comfort_dew_point", + "halt_if_compare": "lte", + "entity_id": "sensor.buienradar_temperature", "state_type": "num", "blockInputOverrides": false, "outputProperties": [ { - "property": "sensor.master_bedroom_thermal_comfort_dew_point", + "property": "sensor.buienradar_temperature", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -2199,31 +1915,34 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 390, - "y": 520, + "x": 430, + "y": 740, "wires": [ [ - "a028c18f.9355b" + "f58250ec.e0fa1" + ], + [ + "240fac46.902e04" ] ] }, { - "id": "a028c18f.9355b", + "id": "13e032a.2acbbcd", "type": "api-current-state", "z": "4e909abe.0b62e4", - "name": "state wall temperature basement < dewpoint master bedroom", + "name": "state heating power basement <= 0%", "server": "4ba92433.2478cc", "version": 3, "outputs": 2, - "halt_if": "sensor.master_bedroom_thermal_comfort_dew_point", - "halt_if_type": "msg", - "halt_if_compare": "gt", - "entity_id": "sensor.basement_wall_temperature_offset", + "halt_if": "0", + "halt_if_type": "num", + "halt_if_compare": "lte", + "entity_id": "sensor.basement_heating", "state_type": "num", "blockInputOverrides": false, "outputProperties": [ { - "property": "sensor.basement_wall_temperature_offset", + "property": "sensor.basement_heating", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -2238,32 +1957,32 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 760, - "y": 520, + "x": 450, + "y": 540, "wires": [ [ - "4bc7b417.d7b80c" + "52a3b09f.ae48" ], [] ] }, { - "id": "4bc7b417.d7b80c", + "id": "eaba4c18.04007", "type": "api-current-state", "z": "4e909abe.0b62e4", - "name": "state absolute humidity living room", + "name": "state dewpoint living room ", "server": "4ba92433.2478cc", "version": 3, "outputs": 1, "halt_if": "", "halt_if_type": "num", "halt_if_compare": "is", - "entity_id": "sensor.living_room_thermal_comfort_absolute_humidity", + "entity_id": "sensor.living_room_thermal_comfort_dew_point", "state_type": "num", "blockInputOverrides": false, "outputProperties": [ { - "property": "sensor.living_room_thermal_comfort_absolute_humidity", + "property": "sensor.living_room_thermal_comfort_dew_point", "propertyType": "msg", "value": "", "valueType": "entityState" @@ -2278,61 +1997,21 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 400, - "y": 580, + "x": 410, + "y": 200, "wires": [ [ - "56b3697b.621e98" + "cbe4be0.ad6c74" ] ] }, - { - "id": "56b3697b.621e98", - "type": "api-current-state", - "z": "4e909abe.0b62e4", - "name": "state absolute humidity basement > absolute humidity living room", - "server": "4ba92433.2478cc", - "version": 3, - "outputs": 2, - "halt_if": "sensor.living_room_thermal_comfort_absolute_humidity", - "halt_if_type": "msg", - "halt_if_compare": "gt", - "entity_id": "sensor.basement_thermal_comfort_absolute_humidity", - "state_type": "num", - "blockInputOverrides": false, - "outputProperties": [ - { - "property": "sensor.basement_thermal_comfort_absolute_humidity", - "propertyType": "msg", - "value": "", - "valueType": "entityState" - }, - { - "property": "data", - "propertyType": "msg", - "value": "", - "valueType": "entity" - } - ], - "for": 0, - "forType": "num", - "forUnits": "minutes", - "x": 800, - "y": 580, - "wires": [ - [ - "13e032a.2acbbcd" - ], - [] - ] - }, { "id": "5066d89a.d3afd8", "type": "comment", "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION 2", "info": "", - "x": 420, + "x": 460, "y": 800, "wires": [] }, @@ -2367,7 +2046,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 370, + "x": 410, "y": 840, "wires": [ [ @@ -2409,7 +2088,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1260, + "x": 1300, "y": 820, "wires": [ [ @@ -2424,8 +2103,8 @@ "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION 3", "info": "", - "x": 420, - "y": 920, + "x": 940, + "y": 1000, "wires": [] }, { @@ -2459,8 +2138,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1260, - "y": 960, + "x": 1300, + "y": 920, "wires": [ [ "320c3cf2.5620d4" @@ -2519,12 +2198,10 @@ } ], "x": 110, - "y": 140, + "y": 220, "wires": [ [ "eaba4c18.04007", - "476a9b5a.95d894", - "4abb03cf.8c49ec", "4e1d6c0e.bd6b44" ] ] @@ -2580,12 +2257,10 @@ } ], "x": 80, - "y": 200, + "y": 280, "wires": [ [ "eaba4c18.04007", - "476a9b5a.95d894", - "4abb03cf.8c49ec", "4e1d6c0e.bd6b44" ] ] @@ -2596,7 +2271,7 @@ "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION MANUAL", "info": "", - "x": 450, + "x": 490, "y": 1040, "wires": [] }, @@ -2650,7 +2325,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1080, "wires": [ [ @@ -2710,12 +2385,10 @@ } ], "x": 110, - "y": 260, + "y": 340, "wires": [ [ "eaba4c18.04007", - "476a9b5a.95d894", - "4abb03cf.8c49ec", "4e1d6c0e.bd6b44" ] ] @@ -2726,7 +2399,7 @@ "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION 1", "info": "", - "x": 420, + "x": 460, "y": 700, "wires": [] }, @@ -2761,8 +2434,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 400, - "y": 640, + "x": 440, + "y": 600, "wires": [ [ "e21c63fd.6345e" @@ -2803,8 +2476,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 740, - "y": 640, + "x": 760, + "y": 600, "wires": [ [ "d21542c5.837e4" @@ -2842,8 +2515,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1000, - "y": 640, + "x": 1020, + "y": 600, "wires": [ [ "ea92ebb5.4d1288" @@ -2881,8 +2554,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1250, - "y": 640, + "x": 1270, + "y": 600, "wires": [ [ "4c661c8e515f8df3" @@ -2900,7 +2573,7 @@ "syntax": "mustache", "template": "De middelste stand is automatisch ingeschakeld.", "output": "str", - "x": 1740, + "x": 1780, "y": 820, "wires": [ [ @@ -2919,8 +2592,8 @@ "syntax": "mustache", "template": "De hoogste stand is automatisch ingeschakeld.", "output": "str", - "x": 1740, - "y": 960, + "x": 1780, + "y": 920, "wires": [ [ "f6654a628999616b" @@ -2946,8 +2619,8 @@ "from": "", "to": "", "reg": false, - "x": 1770, - "y": 640, + "x": 1790, + "y": 600, "wires": [ [ "e07362ff.ad189" @@ -2985,7 +2658,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 670, + "x": 710, "y": 840, "wires": [ [ @@ -3027,8 +2700,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 950, - "y": 840, + "x": 990, + "y": 860, "wires": [ [ "65f41c8.8e8cde4" @@ -3049,8 +2722,8 @@ "endTime": "22:00", "startOffset": 0, "endOffset": 0, - "x": 330, - "y": 960, + "x": 370, + "y": 940, "wires": [ [ "b5d8b43d.943a18" @@ -3066,8 +2739,8 @@ "z": "4e909abe.0b62e4", "name": "", "env": [], - "x": 1530, - "y": 960, + "x": 1570, + "y": 920, "wires": [ [ "5ce9303e.d40b8" @@ -3105,7 +2778,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1620, + "x": 1480, "y": 200, "wires": [ [ @@ -3145,7 +2818,7 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1930, + "x": 1950, "y": 200, "wires": [ [ @@ -3204,7 +2877,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1140, "wires": [ [ @@ -3263,7 +2936,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1200, "wires": [ [ @@ -3322,7 +2995,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1260, "wires": [ [ @@ -3342,7 +3015,7 @@ "syntax": "mustache", "template": "De laagste stand van de mechanische ventilatie is handmatig ingeschakeld.", "output": "str", - "x": 680, + "x": 720, "y": 1080, "wires": [ [ @@ -3361,7 +3034,7 @@ "syntax": "mustache", "template": "De middelste stand van de mechanische ventilatie is handmatig ingeschakeld.", "output": "str", - "x": 680, + "x": 720, "y": 1140, "wires": [ [ @@ -3380,7 +3053,7 @@ "syntax": "mustache", "template": "De hoge stand van de mechanische ventilatie is handmatig ingeschakeld.", "output": "str", - "x": 680, + "x": 720, "y": 1200, "wires": [ [ @@ -3399,7 +3072,7 @@ "syntax": "mustache", "template": "Mechanische Ventilatie is handmatig uitgeschakeld.", "output": "str", - "x": 680, + "x": 720, "y": 1260, "wires": [ [ @@ -3438,11 +3111,11 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1210, - "y": 1180, + "x": 1010, + "y": 1080, "wires": [ [ - "f6654a628999616b" + "7c2423c56f1fe876" ], [] ] @@ -3453,7 +3126,7 @@ "z": "4e909abe.0b62e4", "name": "", "env": [], - "x": 2250, + "x": 2270, "y": 200, "wires": [ [ @@ -3466,7 +3139,7 @@ "type": "subflow:279f5735.2f95d8", "z": "4e909abe.0b62e4", "name": "", - "x": 1530, + "x": 1570, "y": 820, "wires": [ [ @@ -3480,7 +3153,7 @@ "z": "4e909abe.0b62e4", "name": "INPUT BOOLEAN MECHANICAL VENTILATION", "info": "", - "x": 440, + "x": 480, "y": 1320, "wires": [] }, @@ -3534,7 +3207,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1360, "wires": [ [ @@ -3593,7 +3266,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1420, "wires": [ [ @@ -3652,7 +3325,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1480, "wires": [ [ @@ -3711,7 +3384,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1540, "wires": [ [ @@ -3726,7 +3399,7 @@ "z": "4e909abe.0b62e4", "name": "", "env": [], - "x": 750, + "x": 790, "y": 1420, "wires": [ [] @@ -3738,7 +3411,7 @@ "z": "4e909abe.0b62e4", "name": "", "env": [], - "x": 750, + "x": 790, "y": 1360, "wires": [ [] @@ -3750,7 +3423,7 @@ "z": "4e909abe.0b62e4", "name": "", "env": [], - "x": 750, + "x": 790, "y": 1540, "wires": [ [] @@ -3761,7 +3434,7 @@ "type": "subflow:279f5735.2f95d8", "z": "4e909abe.0b62e4", "name": "", - "x": 750, + "x": 790, "y": 1480, "wires": [ [] @@ -3778,8 +3451,8 @@ "syntax": "mustache", "template": "Stand laag is ingeschakeld. De temperatuur buiten is {{{sensor.buienradar_temperature}}} {{data.attributes.unit_of_measurement}}", "output": "str", - "x": 980, - "y": 760, + "x": 1020, + "y": 740, "wires": [ [ "bfdcba16.625018" @@ -3797,8 +3470,8 @@ "syntax": "mustache", "template": "Stand laag is ingeschakeld. De relative luchtvochtigheid in de souterrain is {{sensor.basement_humidity}} {{data.attributes.unit_of_measurement}}", "output": "str", - "x": 980, - "y": 720, + "x": 1020, + "y": 700, "wires": [ [ "bfdcba16.625018" @@ -3812,7 +3485,7 @@ "name": "basement ventilation", "info": "", "x": 110, - "y": 40, + "y": 20, "wires": [] }, { @@ -3820,11 +3493,11 @@ "type": "subflow:db575387.da1ff", "z": "4e909abe.0b62e4", "name": "", - "x": 1530, + "x": 1570, "y": 740, "wires": [ [ - "f6654a628999616b" + "1a967b65adcf68b4" ] ] }, @@ -3839,46 +3512,8 @@ "syntax": "mustache", "template": "Mechanische ventilatie is uitgeschakeld, lucht van boven condenseert mogelijk tegen de koudste oppervlakte in de kelder.\\nDe temperatuur van het koudste oppervlakte in de kelder is: {{sensor.basement_wall_temperature_offset}} ℃ \\nHet dauwpunt van de lucht in de woonkamer is: {{sensor.living_room_thermal_comfort_dew_point}} ℃", "output": "str", - "x": 1360, - "y": 120, - "wires": [ - [ - "476cfb88.13ea74" - ] - ] - }, - { - "id": "528b70bf555994d2", - "type": "template", - "z": "4e909abe.0b62e4", - "name": "message", - "field": "notify.message", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "Mechanische ventilatie is uitgeschakeld, lucht uit de slaapkamer condenseert mogelijk tegen de koudste oppervlakte in de kelder.\\nDe temperatuur van het koudste oppervlakte in de kelder is: {{sensor.basement_wall_temperature_offset}} ℃ \\nHet dauwpunt van de lucht in de slaapkamer is: {{sensor.master_bedroom_thermal_comfort_dew_point}} ℃", - "output": "str", - "x": 1360, - "y": 180, - "wires": [ - [ - "476cfb88.13ea74" - ] - ] - }, - { - "id": "eb7fc4be79c0effe", - "type": "template", - "z": "4e909abe.0b62e4", - "name": "message", - "field": "notify.message", - "fieldType": "msg", - "format": "handlebars", - "syntax": "mustache", - "template": "Mechanische ventilatie is uitgeschakeld, de absolute vochtinhoud in de woonkamer is {{sensor.living_room_thermal_comfort_absolute_humidity}} g/m³ en is hoger dan in de kelder {{sensor.basement_thermal_comfort_absolute_humidity}} g/m³", - "output": "str", - "x": 1360, - "y": 240, + "x": 1260, + "y": 200, "wires": [ [ "476cfb88.13ea74" @@ -3896,34 +3531,14 @@ "syntax": "mustache", "template": "Mechanische ventilatie is uitgeschakeld, de verwarming in de kelder staat aan. \\nKelder Heating Power is {{payload}}%", "output": "str", - "x": 1360, - "y": 300, + "x": 1260, + "y": 260, "wires": [ [ "476cfb88.13ea74" ] ] }, - { - "id": "f75b2db2c30eabf9", - "type": "function", - "z": "4e909abe.0b62e4", - "name": "round to two decimals", - "func": "msg.sensor.living_room_thermal_comfort_absolute_humidity = msg.sensor.living_room_thermal_comfort_absolute_humidity.toFixed(2);\nmsg.sensor.basement_thermal_comfort_absolute_humidity = msg.sensor.basement_thermal_comfort_absolute_humidity.toFixed(2);\nreturn msg;", - "outputs": 1, - "timeout": 0, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 1160, - "y": 240, - "wires": [ - [ - "eb7fc4be79c0effe" - ] - ] - }, { "id": "a443801a148e31b6", "type": "function", @@ -3936,34 +3551,14 @@ "initialize": "", "finalize": "", "libs": [], - "x": 1160, - "y": 120, + "x": 1080, + "y": 200, "wires": [ [ "a104a83026f8fd84" ] ] }, - { - "id": "3efec0d271c18678", - "type": "function", - "z": "4e909abe.0b62e4", - "name": "round to two decimals", - "func": "msg.sensor.master_bedroom_thermal_comfort_dew_point = msg.sensor.master_bedroom_thermal_comfort_dew_point.toFixed(2);\nreturn msg;", - "outputs": 1, - "timeout": 0, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 1160, - "y": 180, - "wires": [ - [ - "528b70bf555994d2" - ] - ] - }, { "id": "4c661c8e515f8df3", "type": "api-current-state", @@ -3995,8 +3590,8 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 1530, - "y": 640, + "x": 1550, + "y": 600, "wires": [ [ "a037b96e.97bc58" @@ -4010,7 +3605,7 @@ "z": "4e909abe.0b62e4", "name": "MECHANICAL VENTILATION POSITION MANUAL FRONTEND", "info": "", - "x": 490, + "x": 530, "y": 1600, "wires": [] }, @@ -4038,7 +3633,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_off", - "x": 950, + "x": 990, "y": 1780, "wires": [ [ @@ -4096,7 +3691,7 @@ "valueType": "triggerId" } ], - "x": 420, + "x": 460, "y": 1660, "wires": [ [ @@ -4141,7 +3736,7 @@ "checkall": "true", "repair": false, "outputs": 5, - "x": 650, + "x": 690, "y": 1680, "wires": [ [ @@ -4185,7 +3780,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_on", - "x": 950, + "x": 990, "y": 1900, "wires": [ [] @@ -4215,7 +3810,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_off", - "x": 950, + "x": 990, "y": 1660, "wires": [ [ @@ -4247,7 +3842,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_off", - "x": 950, + "x": 990, "y": 1720, "wires": [ [ @@ -4279,7 +3874,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_off", - "x": 950, + "x": 990, "y": 1840, "wires": [ [ @@ -4311,7 +3906,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_on", - "x": 1300, + "x": 1340, "y": 1660, "wires": [ [] @@ -4341,7 +3936,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_on", - "x": 1300, + "x": 1340, "y": 1720, "wires": [ [] @@ -4371,7 +3966,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_on", - "x": 1300, + "x": 1340, "y": 1780, "wires": [ [] @@ -4401,7 +3996,7 @@ "queue": "none", "domain": "input_boolean", "service": "turn_on", - "x": 1300, + "x": 1340, "y": 1840, "wires": [ [] @@ -4438,52 +4033,82 @@ "for": 0, "forType": "num", "forUnits": "minutes", - "x": 360, - "y": 400, + "x": 400, + "y": 480, "wires": [ [ - "599646a9.361b38" + "13e032a.2acbbcd" ], [] ] }, { - "id": "399184be7531eb78", + "id": "e231947e3513d81f", + "type": "catch", + "z": "4e909abe.0b62e4", + "g": "f7435f5ad02d3f79", + "name": "", + "scope": null, + "uncaught": false, + "x": 100, + "y": 80, + "wires": [ + [ + "e4c83565e32c77fc" + ] + ] + }, + { + "id": "e4c83565e32c77fc", "type": "template", "z": "4e909abe.0b62e4", - "g": "0a1a2a6df765a339", - "name": "tag", - "field": "notify.tag", + "g": "f7435f5ad02d3f79", + "name": "messsage", + "field": "notify.message", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "mechanical_ventilation_basement", + "template": "message: {{{error.message}}} \\nSource: id: {{error.source.id}} \\ntype: {{error.source.type}} \\nname: {{error.source.name}} \\ncount: {{error.source.count}}", "output": "str", - "x": 2290, - "y": 940, + "x": 250, + "y": 80, "wires": [ [ - "a1c0156c06d58e91" + "f9b4b865266e96f0" ] ] }, { - "id": "67db220bfc8a732a", + "id": "0556160e41cbd509", + "type": "link out", + "z": "4e909abe.0b62e4", + "g": "f7435f5ad02d3f79", + "name": "link_out_notify_1", + "mode": "link", + "links": [ + "a97f87cfab413716" + ], + "x": 475, + "y": 80, + "wires": [] + }, + { + "id": "f9b4b865266e96f0", "type": "template", "z": "4e909abe.0b62e4", - "g": "0a1a2a6df765a339", - "name": "click action", - "field": "notify.clickAction", + "g": "f7435f5ad02d3f79", + "name": "title", + "field": "notify.title", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "/dashboard-mobile/climate", + "template": "Node-RED", "output": "str", - "x": 2310, - "y": 980, + "x": 390, + "y": 80, "wires": [ [ - "a1c0156c06d58e91" + "0556160e41cbd509" ] ] },