Check whether early night mode is on when goodnight flow is run #27

This commit is contained in:
2025-03-16 04:24:25 -04:00
parent b84c4d7513
commit 0a719b9ab7

View File

@ -1958,11 +1958,13 @@
"33773b3aaa551b79", "33773b3aaa551b79",
"f30486c8e11db0e4", "f30486c8e11db0e4",
"9bd4665845af0545", "9bd4665845af0545",
"20b3699a56b0e901" "20b3699a56b0e901",
"f3df71ec460b7609",
"775777f1c01e424c"
], ],
"x": 14, "x": 14,
"y": 239, "y": 239,
"w": 1052, "w": 1092,
"h": 322 "h": 322
}, },
{ {
@ -23810,7 +23812,7 @@
"y": 340, "y": 340,
"wires": [ "wires": [
[ [
"33773b3aaa551b79" "775777f1c01e424c"
] ]
] ]
}, },
@ -23838,7 +23840,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "script", "domain": "script",
"service": "kallen_desktop_shutdown", "service": "kallen_desktop_shutdown",
"x": 920, "x": 960,
"y": 400, "y": 400,
"wires": [ "wires": [
[] []
@ -23954,7 +23956,7 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 600, "x": 640,
"y": 340, "y": 340,
"wires": [ "wires": [
[ [
@ -23989,7 +23991,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "alarm_control_panel", "domain": "alarm_control_panel",
"service": "alarm_arm_home", "service": "alarm_arm_home",
"x": 810, "x": 850,
"y": 340, "y": 340,
"wires": [ "wires": [
[] []
@ -24096,7 +24098,7 @@
"55e84ccb73ae9b74", "55e84ccb73ae9b74",
"bc592ba259667f9d" "bc592ba259667f9d"
], ],
"x": 535, "x": 575,
"y": 280, "y": 280,
"wires": [] "wires": []
}, },
@ -24449,7 +24451,7 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 640, "x": 680,
"y": 400, "y": 400,
"wires": [ "wires": [
[ [
@ -25088,7 +25090,7 @@
"type": "api-call-service", "type": "api-call-service",
"z": "5c4ac37140a54ac9", "z": "5c4ac37140a54ac9",
"g": "f4057835848d0904", "g": "f4057835848d0904",
"name": "Goodnight Switch", "name": "MB Sleep Switch",
"server": "9e87348d.9c1c48", "server": "9e87348d.9c1c48",
"version": 7, "version": 7,
"debugenabled": false, "debugenabled": false,
@ -25097,9 +25099,7 @@
"areaId": [], "areaId": [],
"deviceId": [], "deviceId": [],
"entityId": [ "entityId": [
"input_boolean.goodnight", "input_boolean.master_bedroom_sleeping"
"input_boolean.master_bedroom_sleeping",
"input_boolean.night_mode"
], ],
"labelId": [], "labelId": [],
"data": "", "data": "",
@ -25111,7 +25111,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "input_boolean", "domain": "input_boolean",
"service": "turn_on", "service": "turn_on",
"x": 330, "x": 370,
"y": 340, "y": 340,
"wires": [ "wires": [
[ [
@ -25151,7 +25151,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "switch", "domain": "switch",
"service": "turn_on", "service": "turn_on",
"x": 600, "x": 640,
"y": 460, "y": 460,
"wires": [ "wires": [
[ [
@ -25187,7 +25187,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "script", "domain": "script",
"service": "turn_on", "service": "turn_on",
"x": 610, "x": 650,
"y": 520, "y": 520,
"wires": [ "wires": [
[] []
@ -25247,7 +25247,7 @@
"blockInputOverrides": false, "blockInputOverrides": false,
"domain": "input_boolean", "domain": "input_boolean",
"service": "turn_off", "service": "turn_off",
"x": 850, "x": 890,
"y": 460, "y": 460,
"wires": [ "wires": [
[] []
@ -25744,6 +25744,87 @@
[] []
] ]
}, },
{
"id": "f3df71ec460b7609",
"type": "api-call-service",
"z": "5c4ac37140a54ac9",
"g": "f4057835848d0904",
"name": "Goodnight Switch",
"server": "9e87348d.9c1c48",
"version": 7,
"debugenabled": false,
"action": "input_boolean.turn_on",
"floorId": [],
"areaId": [],
"deviceId": [],
"entityId": [
"input_boolean.goodnight",
"input_boolean.night_mode"
],
"labelId": [],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"blockInputOverrides": false,
"domain": "input_boolean",
"service": "turn_on",
"x": 370,
"y": 400,
"wires": [
[]
]
},
{
"id": "775777f1c01e424c",
"type": "api-current-state",
"z": "5c4ac37140a54ac9",
"g": "f4057835848d0904",
"name": "Early Night Mode",
"server": "9e87348d.9c1c48",
"version": 3,
"outputs": 2,
"halt_if": "on",
"halt_if_type": "str",
"halt_if_compare": "is",
"entity_id": "binary_sensor.early_night_mode",
"state_type": "str",
"blockInputOverrides": true,
"outputProperties": [
{
"property": "earlynight",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"for": "0",
"forType": "num",
"forUnits": "minutes",
"override_topic": false,
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"x": 215,
"y": 340,
"wires": [
[
"f3df71ec460b7609",
"33773b3aaa551b79"
],
[
"33773b3aaa551b79"
]
],
"outputLabels": [
"On",
"Off"
],
"l": false
},
{ {
"id": "6a37c598ccfec0c7", "id": "6a37c598ccfec0c7",
"type": "google-home", "type": "google-home",