Give K a sleeping toggle as well

This commit is contained in:
2023-02-05 19:16:40 -05:00
parent 0f27bcfeb6
commit 319c1edfdd

View File

@ -683,11 +683,16 @@
"57651381835f659c", "57651381835f659c",
"acb52adc50d34045", "acb52adc50d34045",
"e0751f3bf2a2e610", "e0751f3bf2a2e610",
"b4dbbf788c5a30d2",
"d6b56cb65c2ff140",
"e32aaeb51d3f2e95",
"a52d249ed43537c7", "a52d249ed43537c7",
"b4dbbf788c5a30d2" "95812f5094f32d6b"
], ],
"x": 14, "x": 14,
"y": 719 "y": 719,
"w": 1332,
"h": 562
}, },
{ {
"id": "e065b1ed4938b477", "id": "e065b1ed4938b477",
@ -777,7 +782,9 @@
"67509a5554fc091f" "67509a5554fc091f"
], ],
"x": 14, "x": 14,
"y": 19 "y": 19,
"w": 2722,
"h": 682
}, },
{ {
"id": "5c50443a84910fb7", "id": "5c50443a84910fb7",
@ -833,9 +840,7 @@
"b2bc83c9195efe0f" "b2bc83c9195efe0f"
], ],
"x": 14, "x": 14,
"y": 39, "y": 39
"w": 872,
"h": 142
}, },
{ {
"id": "50e4d951ee7b3e54", "id": "50e4d951ee7b3e54",
@ -857,9 +862,7 @@
"3c03edd9c35f85f8" "3c03edd9c35f85f8"
], ],
"x": 14, "x": 14,
"y": 219, "y": 219
"w": 1012,
"h": 202
}, },
{ {
"id": "fbbe69a14cbe0236", "id": "fbbe69a14cbe0236",
@ -1174,9 +1177,7 @@
"6b039ef7895476e2" "6b039ef7895476e2"
], ],
"x": 14, "x": 14,
"y": 439, "y": 439
"w": 1452,
"h": 422
}, },
{ {
"id": "eeafd13be593ae69", "id": "eeafd13be593ae69",
@ -1272,9 +1273,7 @@
"6f84db50867abc7b" "6f84db50867abc7b"
], ],
"x": 14, "x": 14,
"y": 519, "y": 519
"w": 612,
"h": 202
}, },
{ {
"id": "550e5b2d99316b12", "id": "550e5b2d99316b12",
@ -17976,6 +17975,12 @@
"propertyType": "msg", "propertyType": "msg",
"value": "kallen-night", "value": "kallen-night",
"valueType": "str" "valueType": "str"
},
{
"property": "switch",
"propertyType": "msg",
"value": "on",
"valueType": "str"
} }
], ],
"sunday": true, "sunday": true,
@ -17990,7 +17995,7 @@
"y": 820, "y": 820,
"wires": [ "wires": [
[ [
"a52d249ed43537c7" "d6b56cb65c2ff140"
] ]
] ]
}, },
@ -18038,6 +18043,12 @@
"propertyType": "msg", "propertyType": "msg",
"value": "kallen-morning", "value": "kallen-morning",
"valueType": "str" "valueType": "str"
},
{
"property": "switch",
"propertyType": "msg",
"value": "off",
"valueType": "str"
} }
], ],
"sunday": true, "sunday": true,
@ -18049,10 +18060,10 @@
"saturday": true, "saturday": true,
"debugenabled": false, "debugenabled": false,
"x": 120, "x": 120,
"y": 900, "y": 880,
"wires": [ "wires": [
[ [
"39d187b7e17d80ab" "d6b56cb65c2ff140"
] ]
] ]
}, },
@ -18093,13 +18104,15 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 790, "x": 510,
"y": 820, "y": 940,
"wires": [ "wires": [
[ [
"4792e2d88f7d533f" "a52d249ed43537c7"
], ],
[] [
"95812f5094f32d6b"
]
], ],
"outputLabels": [ "outputLabels": [
"Off", "Off",
@ -18112,25 +18125,25 @@
"z": "72f99805df043603", "z": "72f99805df043603",
"g": "39a7ac02f2727f1d", "g": "39a7ac02f2727f1d",
"name": "", "name": "",
"property": "topic", "property": "switch",
"propertyType": "msg", "propertyType": "msg",
"rules": [ "rules": [
{ {
"t": "eq", "t": "eq",
"v": "kallen-morning", "v": "off",
"vt": "str" "vt": "str"
}, },
{ {
"t": "eq", "t": "eq",
"v": "kallen-night", "v": "on",
"vt": "str" "vt": "str"
} }
], ],
"checkall": "true", "checkall": "true",
"repair": false, "repair": false,
"outputs": 2, "outputs": 2,
"x": 935, "x": 865,
"y": 820, "y": 940,
"wires": [ "wires": [
[ [
"d132875202e85038", "d132875202e85038",
@ -18166,8 +18179,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 880, "x": 600,
"y": 900, "y": 1020,
"wires": [ "wires": [
[ [
"99e74844b8fd9d1a", "99e74844b8fd9d1a",
@ -18193,8 +18206,8 @@
"drop": false, "drop": false,
"allowrate": false, "allowrate": false,
"outputs": 1, "outputs": 1,
"x": 995, "x": 935,
"y": 880, "y": 1000,
"wires": [ "wires": [
[ [
"da1a1f23bf9429c5" "da1a1f23bf9429c5"
@ -18224,8 +18237,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1110, "x": 1050,
"y": 880, "y": 1000,
"wires": [ "wires": [
[ [
"6418c17768ed363d" "6418c17768ed363d"
@ -18254,8 +18267,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1300, "x": 1240,
"y": 880, "y": 1000,
"wires": [ "wires": [
[] []
] ]
@ -18284,8 +18297,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 880, "x": 600,
"y": 1000, "y": 1120,
"wires": [ "wires": [
[ [
"265b54394cc42f53" "265b54394cc42f53"
@ -18310,8 +18323,8 @@
"drop": false, "drop": false,
"allowrate": false, "allowrate": false,
"outputs": 1, "outputs": 1,
"x": 1215, "x": 935,
"y": 1000, "y": 1120,
"wires": [ "wires": [
[ [
"73b51e79d20c7982" "73b51e79d20c7982"
@ -18341,8 +18354,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1330, "x": 1050,
"y": 1000, "y": 1120,
"wires": [ "wires": [
[] []
] ]
@ -18369,8 +18382,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1040, "x": 760,
"y": 1000, "y": 1120,
"wires": [ "wires": [
[ [
"ed138e629ed0809f", "ed138e629ed0809f",
@ -18400,8 +18413,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1060, "x": 1000,
"y": 820, "y": 940,
"wires": [ "wires": [
[ [
"a6f4af0aaabcc2c1" "a6f4af0aaabcc2c1"
@ -18430,8 +18443,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1240, "x": 1180,
"y": 820, "y": 940,
"wires": [ "wires": [
[] []
] ]
@ -18442,8 +18455,8 @@
"z": "72f99805df043603", "z": "72f99805df043603",
"g": "39a7ac02f2727f1d", "g": "39a7ac02f2727f1d",
"name": "", "name": "",
"x": 1340, "x": 1060,
"y": 1060, "y": 1180,
"wires": [ "wires": [
[] []
] ]
@ -18482,8 +18495,8 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 1215, "x": 935,
"y": 1060, "y": 1180,
"wires": [ "wires": [
[ [
"b4dbbf788c5a30d2" "b4dbbf788c5a30d2"
@ -18525,8 +18538,8 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 1215, "x": 935,
"y": 940, "y": 1060,
"wires": [ "wires": [
[ [
"b4dbbf788c5a30d2" "b4dbbf788c5a30d2"
@ -19005,13 +19018,15 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 580, "x": 300,
"y": 820, "y": 940,
"wires": [ "wires": [
[ [
"3166f71fdf62748a" "3166f71fdf62748a"
], ],
[] [
"95812f5094f32d6b"
]
], ],
"outputLabels": [ "outputLabels": [
"Off", "Off",
@ -19237,8 +19252,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 590, "x": 310,
"y": 980, "y": 1100,
"wires": [ "wires": [
[] []
] ]
@ -19265,8 +19280,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 400, "x": 120,
"y": 980, "y": 1100,
"wires": [ "wires": [
[ [
"49eadd57e9728914" "49eadd57e9728914"
@ -20358,8 +20373,8 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 590, "x": 310,
"y": 900, "y": 1020,
"wires": [ "wires": [
[ [
"c2bb11a2ba39b636" "c2bb11a2ba39b636"
@ -20394,8 +20409,8 @@
"checkall": "true", "checkall": "true",
"repair": false, "repair": false,
"outputs": 3, "outputs": 3,
"x": 735, "x": 455,
"y": 900, "y": 1020,
"wires": [ "wires": [
[ [
"6e10b32a122e8a2c" "6e10b32a122e8a2c"
@ -20433,8 +20448,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 880, "x": 600,
"y": 1060, "y": 1180,
"wires": [ "wires": [
[ [
"59d83dd7c5adba1f" "59d83dd7c5adba1f"
@ -20475,8 +20490,8 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 1215, "x": 935,
"y": 1120, "y": 1240,
"wires": [ "wires": [
[ [
"b4dbbf788c5a30d2" "b4dbbf788c5a30d2"
@ -20736,8 +20751,8 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 1080, "x": 1020,
"y": 760, "y": 880,
"wires": [ "wires": [
[ [
"acb52adc50d34045" "acb52adc50d34045"
@ -20767,8 +20782,8 @@
"mustacheAltTags": false, "mustacheAltTags": false,
"outputProperties": [], "outputProperties": [],
"queue": "none", "queue": "none",
"x": 1260, "x": 1200,
"y": 760, "y": 880,
"wires": [ "wires": [
[] []
] ]
@ -20805,6 +20820,111 @@
], ],
"x": 120, "x": 120,
"y": 760, "y": 760,
"wires": [
[
"d6b56cb65c2ff140"
]
]
},
{
"id": "1eb13d819ba7e226",
"type": "api-call-service",
"z": "72f99805df043603",
"name": "iOS Notifications",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "script",
"service": "text_notify",
"areaId": [],
"deviceId": [],
"entityId": [],
"data": "{\t \"who\":\"all\",\t \"title\": msg.topic,\t \"message\": msg.payload\t}",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 2540,
"y": 360,
"wires": [
[]
]
},
{
"id": "d6b56cb65c2ff140",
"type": "api-call-service",
"z": "72f99805df043603",
"g": "39a7ac02f2727f1d",
"name": "Toggle Boolean",
"server": "9e87348d.9c1c48",
"version": 5,
"debugenabled": false,
"domain": "input_boolean",
"service": "turn_{{switch}}",
"areaId": [],
"deviceId": [],
"entityId": [
"input_boolean.kallen_sleeping"
],
"data": "",
"dataType": "jsonata",
"mergeContext": "",
"mustacheAltTags": false,
"outputProperties": [],
"queue": "none",
"x": 1100,
"y": 760,
"wires": [
[]
]
},
{
"id": "e32aaeb51d3f2e95",
"type": "server-state-changed",
"z": "72f99805df043603",
"g": "39a7ac02f2727f1d",
"name": "Boolean State",
"server": "9e87348d.9c1c48",
"version": 4,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "input_boolean.kallen_sleeping",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"for": "0",
"forType": "num",
"forUnits": "minutes",
"ignorePrevStateNull": true,
"ignorePrevStateUnknown": true,
"ignorePrevStateUnavailable": true,
"ignoreCurrentStateUnknown": true,
"ignoreCurrentStateUnavailable": true,
"outputProperties": [
{
"property": "switch",
"propertyType": "msg",
"value": "",
"valueType": "entityState"
}
],
"x": 110,
"y": 940,
"wires": [ "wires": [
[ [
"39d187b7e17d80ab" "39d187b7e17d80ab"
@ -20848,39 +20968,49 @@
"override_payload": "msg", "override_payload": "msg",
"entity_location": "data", "entity_location": "data",
"override_data": "msg", "override_data": "msg",
"x": 320, "x": 720,
"y": 820, "y": 940,
"wires": [ "wires": [
[ [
"39d187b7e17d80ab" "4792e2d88f7d533f"
], ],
[] [
"95812f5094f32d6b"
]
],
"outputLabels": [
"Home",
"Away"
] ]
}, },
{ {
"id": "1eb13d819ba7e226", "id": "95812f5094f32d6b",
"type": "api-call-service", "type": "change",
"z": "72f99805df043603", "z": "72f99805df043603",
"name": "iOS Notifications", "g": "39a7ac02f2727f1d",
"server": "9e87348d.9c1c48", "name": "",
"version": 5, "rules": [
"debugenabled": false, {
"domain": "script", "t": "set",
"service": "text_notify", "p": "switch",
"areaId": [], "pt": "msg",
"deviceId": [], "to": "off",
"entityId": [], "tot": "str"
"data": "{\t \"who\":\"all\",\t \"title\": msg.topic,\t \"message\": msg.payload\t}", }
"dataType": "jsonata", ],
"mergeContext": "", "action": "",
"mustacheAltTags": false, "property": "",
"outputProperties": [], "from": "",
"queue": "none", "to": "",
"x": 2540, "reg": false,
"y": 360, "x": 955,
"y": 820,
"wires": [ "wires": [
[] [
] "d6b56cb65c2ff140"
]
],
"l": false
}, },
{ {
"id": "105271e0816c6a52", "id": "105271e0816c6a52",