New basement light alert system

This commit is contained in:
2023-07-24 13:19:51 -04:00
parent 76a30c498c
commit b93c6dabef

View File

@ -771,9 +771,7 @@
"f1dbb3a206dba921"
],
"x": 14,
"y": 719,
"w": 1552,
"h": 642
"y": 719
},
{
"id": "e065b1ed4938b477",
@ -847,9 +845,7 @@
"64ad1f28cd8d243f"
],
"x": 14,
"y": 19,
"w": 2252,
"h": 682
"y": 19
},
{
"id": "5c50443a84910fb7",
@ -1079,26 +1075,22 @@
},
"nodes": [
"97a441f1ac510844",
"d45ac7361e128558",
"fbe3667814a51f6f",
"ec543bc9adac3d08",
"3563f62312975002",
"d4019d35bf5a5f98",
"29b9f573370571cf",
"25e12d8e4a0a7f11",
"e91c3392b59ff9d1",
"753ad45c3685897b",
"d32a407e1c701563",
"58b54517ed812db3",
"981191938ab4ee2f",
"59af14a564176ce4",
"3c83c0ab0aa96e3d",
"1a7c87f9713e5349",
"7b71cb1967ec5255",
"1e1891c23a6e7e64"
"03fad0a960ff39e7",
"c0933fcc8737bc0b"
],
"x": 34,
"y": 239
"y": 239,
"w": 1032,
"h": 322
},
{
"id": "1ca205a84922c8c2",
@ -1262,7 +1254,9 @@
"2516c6e3146cc851"
],
"x": 34,
"y": 619
"y": 619,
"w": 1112,
"h": 282
},
{
"id": "f519aff597ece351",
@ -13524,24 +13518,6 @@
]
]
},
{
"id": "d45ac7361e128558",
"type": "lifx-pulse-effect",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "",
"api": "60eb53fb94cd64e4",
"selector": "group:Basement Studio",
"color": "red",
"from_color": "",
"period": "0.5",
"cycles": "5",
"persist": "false",
"power_on": "true",
"x": 970,
"y": 340,
"wires": []
},
{
"id": "fbe3667814a51f6f",
"type": "server-state-changed",
@ -13653,33 +13629,6 @@
[]
]
},
{
"id": "3563f62312975002",
"type": "delay",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 915,
"y": 280,
"wires": [
[
"1a7c87f9713e5349"
]
],
"l": false
},
{
"id": "d4019d35bf5a5f98",
"type": "inject",
@ -13706,24 +13655,6 @@
]
]
},
{
"id": "29b9f573370571cf",
"type": "lifx-pulse-effect",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "",
"api": "60eb53fb94cd64e4",
"selector": "group:Basement Studio",
"color": "green",
"from_color": "",
"period": "0.25",
"cycles": "8",
"persist": "false",
"power_on": "true",
"x": 990,
"y": 520,
"wires": []
},
{
"id": "25e12d8e4a0a7f11",
"type": "server-state-changed",
@ -13835,93 +13766,6 @@
[]
]
},
{
"id": "753ad45c3685897b",
"type": "delay",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 935,
"y": 460,
"wires": [
[
"1e1891c23a6e7e64"
]
],
"l": false
},
{
"id": "d32a407e1c701563",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Hue Lights",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "light",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"light.basement_short_lamp",
"light.basement_stairwell",
"light.basement_tall_lamp"
],
"data": "{\t \"color_name\":\"red\"\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 970,
"y": 400,
"wires": [
[]
]
},
{
"id": "58b54517ed812db3",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Hue Lights",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "light",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"light.basement_short_lamp",
"light.basement_stairwell",
"light.basement_tall_lamp"
],
"data": "{\t \"color_name\":\"green\"\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 990,
"y": 580,
"wires": [
[]
]
},
{
"id": "981191938ab4ee2f",
"type": "api-current-state",
@ -13963,9 +13807,7 @@
"y": 340,
"wires": [
[
"3563f62312975002",
"d45ac7361e128558",
"d32a407e1c701563"
"03fad0a960ff39e7"
],
[]
]
@ -14011,9 +13853,7 @@
"y": 520,
"wires": [
[
"753ad45c3685897b",
"29b9f573370571cf",
"58b54517ed812db3"
"c0933fcc8737bc0b"
],
[]
]
@ -14046,34 +13886,6 @@
]
]
},
{
"id": "1a7c87f9713e5349",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Restore State",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "scene",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"scene.basement_restore"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1040,
"y": 280,
"wires": [
[]
]
},
{
"id": "7b71cb1967ec5255",
"type": "api-call-service",
@ -14102,34 +13914,6 @@
]
]
},
{
"id": "1e1891c23a6e7e64",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Restore State",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "scene",
"service": "turn_on",
"areaId": [],
"deviceId": [],
"entityId": [
"scene.basement_restore"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1060,
"y": 460,
"wires": [
[]
]
},
{
"id": "1f5808147fa975cf",
"type": "link in",
@ -14512,6 +14296,58 @@
]
]
},
{
"id": "03fad0a960ff39e7",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Red Alert",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "script",
"service": "basement_lights_alert",
"areaId": [],
"deviceId": [],
"entityId": [],
"data": "{\t \"duration\": 5,\t \"type\": \"red\"\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 960,
"y": 340,
"wires": [
[]
]
},
{
"id": "c0933fcc8737bc0b",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "208284848b13b85b",
"name": "Green Alert",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "script",
"service": "basement_lights_alert",
"areaId": [],
"deviceId": [],
"entityId": [],
"data": "{\t \"duration\": 5,\t \"type\": \"green\"\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 970,
"y": 520,
"wires": [
[]
]
},
{
"id": "091390f43bfeddf5",
"type": "api-call-service",