diff --git a/src/data/flows/smoke_co_alarm.json b/src/data/flows/smoke_co_alarm.json index ac9d82c..2075b50 100644 --- a/src/data/flows/smoke_co_alarm.json +++ b/src/data/flows/smoke_co_alarm.json @@ -383,7 +383,7 @@ "ef17b4eb0dc0871b", "c7b88c5f533c105b" ], - "x": 954, + "x": 814, "y": 139, "w": 432, "h": 162 @@ -393,7 +393,7 @@ "type": "junction", "z": "cde79c08.e4f488", "g": "60a8ffbec987c377", - "x": 980, + "x": 840, "y": 200, "wires": [ [ @@ -403,6 +403,111 @@ ] ] }, + { + "id": "c7b88c5f533c105b", + "type": "template", + "z": "cde79c08.e4f488", + "g": "60a8ffbec987c377", + "name": "notification id", + "field": "notify.notification_id", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "firealarm", + "output": "str", + "x": 970, + "y": 260, + "wires": [ + [ + "9a02e08c1760e584" + ] + ] + }, + { + "id": "9a02e08c1760e584", + "type": "join", + "z": "cde79c08.e4f488", + "g": "60a8ffbec987c377", + "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": 1110, + "y": 200, + "wires": [ + [ + "fdba7cd037a9da5a" + ] + ] + }, + { + "id": "fdba7cd037a9da5a", + "type": "link out", + "z": "cde79c08.e4f488", + "g": "60a8ffbec987c377", + "name": "link_out_notify_basement_ventilation", + "mode": "link", + "links": [ + "8ed3b0974336e55b", + "aeee8468f3d1b7ad", + "c4660dc11fb0e5b8" + ], + "x": 1205, + "y": 200, + "wires": [] + }, + { + "id": "8bda876328e49e67", + "type": "template", + "z": "cde79c08.e4f488", + "g": "60a8ffbec987c377", + "name": "title", + "field": "notify.title", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "Alarm", + "output": "str", + "x": 950, + "y": 180, + "wires": [ + [ + "9a02e08c1760e584" + ] + ] + }, + { + "id": "af6a4d51c1e99b4e", + "type": "template", + "z": "cde79c08.e4f488", + "g": "60a8ffbec987c377", + "name": "icon", + "field": "notify.icon", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "", + "output": "str", + "x": 950, + "y": 220, + "wires": [ + [ + "9a02e08c1760e584" + ] + ] + }, { "id": "dc93ddfe.5bd4a", "type": "comment", @@ -422,7 +527,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_test", + "entityId": "binary_sensor.firtsalert_living_room_smoke_alarm_test", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -475,7 +580,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_detected", + "entityId": "binary_sensor.firtsalert_living_room_smoke_detected", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -528,14 +633,13 @@ "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Alarm! {{msg.test_message}}Er is rook gedecteerd in de {{location}}", + "template": "{{test_message}}Er is rook gedecteerd in de {{location}}!", "output": "str", - "x": 800, + "x": 660, "y": 320, "wires": [ [ - "8f9a86a6.9ca938", - "ef17b4eb0dc0871b" + "8f9a86a6.9ca938" ] ] }, @@ -558,8 +662,8 @@ "from": "", "to": "", "reg": false, - "x": 1110, - "y": 340, + "x": 990, + "y": 420, "wires": [ [ "b64a8e86.d9fa8" @@ -594,7 +698,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_detected_2", + "entityId": "binary_sensor.firstalert_hallway_upstairs_smoke_detected", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -647,7 +751,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_detected_3", + "entityId": "binary_sensor.smartalert_basement_smoke_detected", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -735,8 +839,8 @@ "z": "cde79c08.e4f488", "name": "", "env": [], - "x": 1330, - "y": 360, + "x": 1190, + "y": 440, "wires": [] }, { @@ -761,11 +865,12 @@ "checkall": "true", "repair": false, "outputs": 2, - "x": 930, - "y": 340, + "x": 790, + "y": 420, "wires": [ [ - "acaf455.81dc638" + "acaf455.81dc638", + "ef17b4eb0dc0871b" ], [ "56c87bdc.b016ac" @@ -791,8 +896,8 @@ "from": "", "to": "", "reg": false, - "x": 1110, - "y": 380, + "x": 990, + "y": 460, "wires": [ [ "b64a8e86.d9fa8" @@ -808,7 +913,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_test_2", + "entityId": "binary_sensor.firstalert_hallway_upstairs_smoke_alarm_test", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -861,7 +966,7 @@ "version": 5, "outputs": 1, "exposeAsEntityConfig": "", - "entityId": "binary_sensor.zcombo_g_smoke_co_alarm_smoke_alarm_test_3", + "entityId": "binary_sensor.smartalert_basement_smoke_alarm_test", "entityIdType": "exact", "outputInitially": false, "stateType": "str", @@ -973,7 +1078,7 @@ "syntax": "mustache", "template": "Dit is een test.", "output": "str", - "x": 810, + "x": 670, "y": 160, "wires": [ [ @@ -982,136 +1087,237 @@ ] }, { - "id": "af6a4d51c1e99b4e", + "id": "462204bb44d52283", + "type": "server-state-changed", + "z": "cde79c08.e4f488", + "name": "co detected livingroom", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 1, + "exposeAsEntityConfig": "", + "entityId": "binary_sensor.firtsalert_living_room_carbon_monoxide_detected", + "entityIdType": "exact", + "outputInitially": false, + "stateType": "str", + "ifState": "", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": 0, + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": false, + "ignoreCurrentStateUnavailable": false, + "outputProperties": [ + { + "property": "alarm_state", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } + ], + "x": 120, + "y": 460, + "wires": [ + [ + "7796933fbf4a81d9" + ] + ] + }, + { + "id": "f7bea18edd3df74d", "type": "template", "z": "cde79c08.e4f488", - "g": "60a8ffbec987c377", - "name": "icon", - "field": "notify.icon", + "name": "message", + "field": "notify.message", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "", + "template": "{{test_message}}Er is koolmonoxide gedecteerd in de {{location}}, open ramen en deuren!", "output": "str", - "x": 1090, - "y": 220, + "x": 660, + "y": 500, "wires": [ [ - "9a02e08c1760e584" + "8f9a86a6.9ca938" ] ] }, { - "id": "8bda876328e49e67", + "id": "7796933fbf4a81d9", "type": "template", "z": "cde79c08.e4f488", - "g": "60a8ffbec987c377", - "name": "title", - "field": "notify.title", + "name": "location livingroom", + "field": "location", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "Alarm", + "template": "woonkamer", "output": "str", - "x": 1090, - "y": 180, + "x": 430, + "y": 460, "wires": [ [ - "9a02e08c1760e584" + "f7bea18edd3df74d" ] ] }, { - "id": "fdba7cd037a9da5a", - "type": "link out", + "id": "fb4d6bcec28c0e8c", + "type": "server-state-changed", "z": "cde79c08.e4f488", - "g": "60a8ffbec987c377", - "name": "link_out_notify_basement_ventilation", - "mode": "link", - "links": [ - "8ed3b0974336e55b", - "aeee8468f3d1b7ad", - "c4660dc11fb0e5b8" + "name": "co detected upstairs", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 1, + "exposeAsEntityConfig": "", + "entityId": "binary_sensor.firstalert_hallway_upstairs_carbon_monoxide_detected", + "entityIdType": "exact", + "outputInitially": false, + "stateType": "str", + "ifState": "", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": 0, + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": false, + "ignoreCurrentStateUnavailable": false, + "outputProperties": [ + { + "property": "alarm_state", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } ], - "x": 1345, - "y": 200, - "wires": [] + "x": 110, + "y": 500, + "wires": [ + [ + "e158e20d0b4d314e" + ] + ] }, { - "id": "9a02e08c1760e584", - "type": "join", + "id": "22ebafc77a56459e", + "type": "server-state-changed", "z": "cde79c08.e4f488", - "g": "60a8ffbec987c377", - "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": 1250, - "y": 200, + "name": "co detected basement", + "server": "4ba92433.2478cc", + "version": 5, + "outputs": 1, + "exposeAsEntityConfig": "", + "entityId": "binary_sensor.smartalert_basement_carbon_monoxide_detected", + "entityIdType": "exact", + "outputInitially": false, + "stateType": "str", + "ifState": "", + "ifStateType": "str", + "ifStateOperator": "is", + "outputOnlyOnStateChange": true, + "for": 0, + "forType": "num", + "forUnits": "minutes", + "ignorePrevStateNull": false, + "ignorePrevStateUnknown": false, + "ignorePrevStateUnavailable": false, + "ignoreCurrentStateUnknown": false, + "ignoreCurrentStateUnavailable": false, + "outputProperties": [ + { + "property": "alarm_state", + "propertyType": "msg", + "value": "", + "valueType": "entityState" + }, + { + "property": "data", + "propertyType": "msg", + "value": "", + "valueType": "eventData" + }, + { + "property": "topic", + "propertyType": "msg", + "value": "", + "valueType": "triggerId" + } + ], + "x": 120, + "y": 540, "wires": [ [ - "fdba7cd037a9da5a" + "44c54d3a1158ddbd" ] ] }, { - "id": "c7b88c5f533c105b", + "id": "e158e20d0b4d314e", "type": "template", "z": "cde79c08.e4f488", - "g": "60a8ffbec987c377", - "name": "notification id", - "field": "notify.notification_id", + "name": "location upstairs", + "field": "location", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", - "template": "firealarm", + "template": "hal boven", "output": "str", - "x": 1110, - "y": 260, + "x": 420, + "y": 500, "wires": [ [ - "9a02e08c1760e584" + "f7bea18edd3df74d" ] ] }, { - "id": "afa62df0a6831ee2", - "type": "inject", + "id": "44c54d3a1158ddbd", + "type": "template", "z": "cde79c08.e4f488", - "name": "", - "props": [ - { - "p": "location", - "v": "woonkamer", - "vt": "str" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "x": 360, - "y": 560, + "name": "location basement", + "field": "location", + "fieldType": "msg", + "format": "handlebars", + "syntax": "mustache", + "template": "kelder", + "output": "str", + "x": 430, + "y": 540, "wires": [ [ - "3c51dd96d91e1bc6" + "f7bea18edd3df74d" ] ] },