Turn off lights if basement not occupied when DND is turned off

tm24fan8/Home-Assistant-Configs#218
This commit is contained in:
2025-03-01 03:09:21 -05:00
parent a5dbc359d2
commit e46e18265e

View File

@ -2112,11 +2112,13 @@
"9d5f6c64408c0b6a", "9d5f6c64408c0b6a",
"21496cb5b59bf2fb", "21496cb5b59bf2fb",
"be40ebfb2514fdb2", "be40ebfb2514fdb2",
"724968ddc9702720" "724968ddc9702720",
"195c2b19593434e1",
"e75fda5ea26d23e5"
], ],
"x": 34, "x": 34,
"y": 1319, "y": 1319,
"w": 1212, "w": 1412,
"h": 302 "h": 302
}, },
{ {
@ -16907,7 +16909,7 @@
"y": 1460, "y": 1460,
"wires": [ "wires": [
[ [
"6d1291b96a8c9e83" "195c2b19593434e1"
] ]
] ]
}, },
@ -16942,7 +16944,7 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 720, "x": 920,
"y": 1460, "y": 1460,
"wires": [ "wires": [
[ [
@ -16981,7 +16983,7 @@
"blockInputOverrides": true, "blockInputOverrides": true,
"domain": "adaptive_lighting", "domain": "adaptive_lighting",
"service": "apply", "service": "apply",
"x": 940, "x": 1140,
"y": 1440, "y": 1440,
"wires": [ "wires": [
[] []
@ -17013,7 +17015,7 @@
"blockInputOverrides": true, "blockInputOverrides": true,
"domain": "input_select", "domain": "input_select",
"service": "select_option", "service": "select_option",
"x": 1140, "x": 1340,
"y": 1500, "y": 1500,
"wires": [ "wires": [
[] []
@ -17043,7 +17045,7 @@
"blockInputOverrides": true, "blockInputOverrides": true,
"domain": "adaptive_lighting", "domain": "adaptive_lighting",
"service": "apply", "service": "apply",
"x": 940, "x": 1140,
"y": 1500, "y": 1500,
"wires": [ "wires": [
[ [
@ -17172,6 +17174,86 @@
], ],
"l": false "l": false
}, },
{
"id": "195c2b19593434e1",
"type": "api-current-state",
"z": "47f17992fab9b4f5",
"g": "d70533ec9ef234f6",
"name": "Occupied",
"server": "9e87348d.9c1c48",
"version": 3,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.basement_occupied",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
},
{
"property": "data",
"propertyType": "msg",
"value": "",
"valueType": "entity"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 700,
"y": 1460,
"wires": [
[
"6d1291b96a8c9e83"
],
[
"e75fda5ea26d23e5"
]
]
},
{
"id": "e75fda5ea26d23e5",
"type": "api-call-service",
"z": "47f17992fab9b4f5",
"g": "d70533ec9ef234f6",
"name": "Lights Off",
"server": "9e87348d.9c1c48",
"version": 7,
"debugenabled": false,
"action": "light.turn_off",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"light.basement_studio_lights"
],
"labelId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": true,
"domain": "light",
"service": "turn_off",
"x": 900,
"y": 1520,
"wires": [
[]
]
},
{ {
"id": "091390f43bfeddf5", "id": "091390f43bfeddf5",
"type": "api-call-service", "type": "api-call-service",