Clean up testing flow

This commit is contained in:
2023-08-24 16:38:19 -04:00
parent 960508c8d5
commit 976fafc5b4

View File

@ -1633,8 +1633,8 @@
"4e1848c867860d5f", "4e1848c867860d5f",
"3102e176923a8fad" "3102e176923a8fad"
], ],
"x": 674, "x": 34,
"y": 479, "y": 619,
"w": 732, "w": 732,
"h": 282, "h": 282,
"info": "https://stackoverflow.com/a/74399359" "info": "https://stackoverflow.com/a/74399359"
@ -1667,8 +1667,8 @@
"71f5f2a1557b28ea", "71f5f2a1557b28ea",
"b233bf44f92d413d" "b233bf44f92d413d"
], ],
"x": 54, "x": 34,
"y": 779, "y": 19,
"w": 752, "w": 752,
"h": 582 "h": 582
}, },
@ -1906,16 +1906,6 @@
} }
] ]
}, },
{
"id": "359a4a5e8f156ab5",
"type": "hue-bridge",
"name": "House",
"bridge": "192.168.1.20",
"key": "JKYIb8bI-owElOdf1eaZYfG022BC8JktFiijKy1G",
"worker": "10",
"autoupdates": true,
"disableupdates": false
},
{ {
"id": "998d8d67ec377dd3", "id": "998d8d67ec377dd3",
"type": "ha-entity-config", "type": "ha-entity-config",
@ -28434,68 +28424,6 @@
] ]
] ]
}, },
{
"id": "9c86355f531c84a2",
"type": "hue-bridge-node",
"z": "d49b385d8b582b20",
"d": true,
"name": "",
"bridge": "359a4a5e8f156ab5",
"autoupdates": true,
"skipglobalevents": false,
"initevents": false,
"x": 310,
"y": 140,
"wires": [
[
"9b70596b25181506"
]
]
},
{
"id": "9b70596b25181506",
"type": "debug",
"z": "d49b385d8b582b20",
"d": true,
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 490,
"y": 140,
"wires": []
},
{
"id": "7b20f670ec9cb8c5",
"type": "inject",
"z": "d49b385d8b582b20",
"d": true,
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "fetch",
"payloadType": "str",
"x": 110,
"y": 140,
"wires": [
[
"9c86355f531c84a2"
]
]
},
{ {
"id": "bf2ad73a.23bdb8", "id": "bf2ad73a.23bdb8",
"type": "change", "type": "change",
@ -28515,8 +28443,8 @@
"from": "", "from": "",
"to": "", "to": "",
"reg": false, "reg": false,
"x": 250, "x": 1070,
"y": 240, "y": 140,
"wires": [ "wires": [
[] []
] ]
@ -28545,8 +28473,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 110, "x": 910,
"y": 240, "y": 140,
"wires": [ "wires": [
[ [
"bf2ad73a.23bdb8" "bf2ad73a.23bdb8"
@ -28569,7 +28497,7 @@
"authType": "bearer", "authType": "bearer",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 990, "x": 1090,
"y": 80, "y": 80,
"wires": [ "wires": [
[ [
@ -28598,7 +28526,7 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 800, "x": 900,
"y": 80, "y": 80,
"wires": [ "wires": [
[ [
@ -28619,7 +28547,7 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 1170, "x": 1270,
"y": 80, "y": 80,
"wires": [] "wires": []
}, },
@ -28628,8 +28556,8 @@
"type": "subflow:3aa2aec226246753", "type": "subflow:3aa2aec226246753",
"z": "d49b385d8b582b20", "z": "d49b385d8b582b20",
"name": "", "name": "",
"x": 290, "x": 1070,
"y": 400, "y": 200,
"wires": [] "wires": []
}, },
{ {
@ -28649,87 +28577,14 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 120, "x": 900,
"y": 400, "y": 200,
"wires": [ "wires": [
[ [
"2a6fe7c07c6b34e1" "2a6fe7c07c6b34e1"
] ]
] ]
}, },
{
"id": "e1e9f6fcdc3bb5b0",
"type": "server-events",
"z": "d49b385d8b582b20",
"d": true,
"name": "",
"server": "9e87348d.9c1c48",
"version": 2,
"eventType": "alexa_actionable_notification",
"exposeToHomeAssistant": false,
"eventData": "",
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"waitForRunning": true,
"outputProperties": [
{
"property": "payload",
"propertyType": "msg",
"value": "",
"valueType": "eventData"
},
{
"property": "topic",
"propertyType": "msg",
"value": "$outputData(\"eventData\").event_type",
"valueType": "jsonata"
}
],
"event_type": "",
"x": 680,
"y": 320,
"wires": [
[
"4b2ffb86973bb4be"
]
]
},
{
"id": "4b2ffb86973bb4be",
"type": "debug",
"z": "d49b385d8b582b20",
"d": true,
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 940,
"y": 320,
"wires": []
},
{
"id": "87a6983fc1885649",
"type": "comment",
"z": "d49b385d8b582b20",
"name": "Alexa Actionable Notifications Tester",
"info": "",
"x": 800,
"y": 260,
"wires": []
},
{ {
"id": "77ba0ad52b2a9e2e", "id": "77ba0ad52b2a9e2e",
"type": "server-events", "type": "server-events",
@ -28766,8 +28621,8 @@
} }
], ],
"event_type": "", "event_type": "",
"x": 160, "x": 920,
"y": 720, "y": 260,
"wires": [ "wires": [
[ [
"59892c31142ac295" "59892c31142ac295"
@ -28785,75 +28640,8 @@
"createDir": false, "createDir": false,
"overwriteFile": "false", "overwriteFile": "false",
"encoding": "none", "encoding": "none",
"x": 390, "x": 1150,
"y": 720, "y": 260,
"wires": [
[]
]
},
{
"id": "0bd8c12856b7eed3",
"type": "inject",
"z": "d49b385d8b582b20",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 660,
"y": 420,
"wires": [
[
"6740de568b289636"
]
]
},
{
"id": "126d1a03d959dc47",
"type": "debug",
"z": "d49b385d8b582b20",
"name": "github",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1410,
"y": 420,
"wires": []
},
{
"id": "6740de568b289636",
"type": "change",
"z": "d49b385d8b582b20",
"name": "",
"rules": [
{
"t": "set",
"p": "studio_quiet",
"pt": "global",
"to": "studio_quiet",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 860,
"y": 420,
"wires": [ "wires": [
[] []
] ]
@ -28880,8 +28668,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 780, "x": 140,
"y": 560, "y": 700,
"wires": [ "wires": [
[ [
"8687551e01cd2045" "8687551e01cd2045"
@ -28900,8 +28688,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 920, "x": 280,
"y": 560, "y": 700,
"wires": [ "wires": [
[] []
] ]
@ -28919,8 +28707,8 @@
"complete": "false", "complete": "false",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 1140, "x": 500,
"y": 720, "y": 860,
"wires": [] "wires": []
}, },
{ {
@ -28945,8 +28733,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 780, "x": 140,
"y": 600, "y": 740,
"wires": [ "wires": [
[ [
"e674c706437cc0f3" "e674c706437cc0f3"
@ -28965,8 +28753,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 920, "x": 280,
"y": 600, "y": 740,
"wires": [ "wires": [
[] []
] ]
@ -28994,8 +28782,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 790, "x": 150,
"y": 720, "y": 860,
"wires": [ "wires": [
[ [
"1346e34e8c83b2dc" "1346e34e8c83b2dc"
@ -29014,8 +28802,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 970, "x": 330,
"y": 720, "y": 860,
"wires": [ "wires": [
[ [
"103b03c39c8d9cae" "103b03c39c8d9cae"
@ -29044,8 +28832,8 @@
"topic": "", "topic": "",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 1180, "x": 540,
"y": 560, "y": 700,
"wires": [ "wires": [
[ [
"6d109daff443dade" "6d109daff443dade"
@ -29064,8 +28852,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 1330, "x": 690,
"y": 560, "y": 700,
"wires": [ "wires": [
[] []
] ]
@ -29077,8 +28865,8 @@
"g": "395da9d5d5f7e232", "g": "395da9d5d5f7e232",
"name": "Here gonna auto-run", "name": "Here gonna auto-run",
"info": "", "info": "",
"x": 810, "x": 170,
"y": 680, "y": 820,
"wires": [] "wires": []
}, },
{ {
@ -29088,8 +28876,8 @@
"g": "395da9d5d5f7e232", "g": "395da9d5d5f7e232",
"name": "Check what if both inject clicked", "name": "Check what if both inject clicked",
"info": "", "info": "",
"x": 850, "x": 210,
"y": 520, "y": 660,
"wires": [] "wires": []
}, },
{ {
@ -29104,8 +28892,8 @@
"initialize": "const states = global.get('homeassistant.homeAssistant.states')\nconst cooling = states['input_boolean.master_bedroom_cooling_on'].state\nconst sleeping = states['input_boolean.master_bedroom_sleeping'].state\n\nlet lastMode = []\n\nif (sleeping === 'on') {\n lastMode = 'bedtime'\n} else if (cooling === 'on') {\n lastMode = 'night'\n} else {\n lastMode = 'day'\n}\n\nflow.set(\"lastMode\", lastMode)", "initialize": "const states = global.get('homeassistant.homeAssistant.states')\nconst cooling = states['input_boolean.master_bedroom_cooling_on'].state\nconst sleeping = states['input_boolean.master_bedroom_sleeping'].state\n\nlet lastMode = []\n\nif (sleeping === 'on') {\n lastMode = 'bedtime'\n} else if (cooling === 'on') {\n lastMode = 'night'\n} else {\n lastMode = 'day'\n}\n\nflow.set(\"lastMode\", lastMode)",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 530, "x": 510,
"y": 1140, "y": 380,
"wires": [ "wires": [
[ [
"d275a12c1817925e" "d275a12c1817925e"
@ -29160,8 +28948,8 @@
"topic": "manual-bedtime", "topic": "manual-bedtime",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 270, "x": 250,
"y": 1000, "y": 240,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29200,8 +28988,8 @@
"topic": "mrbedroom-cooling", "topic": "mrbedroom-cooling",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 250, "x": 230,
"y": 1060, "y": 300,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29240,8 +29028,8 @@
"topic": "mrbedroom-fan", "topic": "mrbedroom-fan",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 260, "x": 240,
"y": 1120, "y": 360,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29280,8 +29068,8 @@
"topic": "mrbedroom-wakeup", "topic": "mrbedroom-wakeup",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 250, "x": 230,
"y": 1180, "y": 420,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29320,8 +29108,8 @@
"topic": "manual-night", "topic": "manual-night",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 280, "x": 260,
"y": 1240, "y": 480,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29360,8 +29148,8 @@
"topic": "manual-day", "topic": "manual-day",
"payload": "", "payload": "",
"payloadType": "date", "payloadType": "date",
"x": 290, "x": 270,
"y": 1300, "y": 540,
"wires": [ "wires": [
[ [
"f5879622a44b7213" "f5879622a44b7213"
@ -29382,8 +29170,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 690, "x": 670,
"y": 1080, "y": 320,
"wires": [] "wires": []
}, },
{ {
@ -29400,8 +29188,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 690, "x": 670,
"y": 1140, "y": 380,
"wires": [] "wires": []
}, },
{ {
@ -29418,8 +29206,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 700, "x": 680,
"y": 1200, "y": 440,
"wires": [] "wires": []
}, },
{ {
@ -29436,8 +29224,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 690, "x": 670,
"y": 1320, "y": 560,
"wires": [] "wires": []
}, },
{ {
@ -29452,8 +29240,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 350, "x": 330,
"y": 880, "y": 120,
"wires": [ "wires": [
[ [
"d275a12c1817925e", "d275a12c1817925e",
@ -29493,8 +29281,8 @@
"topic": "", "topic": "",
"payload": "on", "payload": "on",
"payloadType": "str", "payloadType": "str",
"x": 150, "x": 130,
"y": 860, "y": 100,
"wires": [ "wires": [
[ [
"8846ee22051b92cc" "8846ee22051b92cc"
@ -29519,8 +29307,8 @@
"topic": "", "topic": "",
"payload": "off", "payload": "off",
"payloadType": "str", "payloadType": "str",
"x": 150, "x": 130,
"y": 920, "y": 160,
"wires": [ "wires": [
[ [
"8846ee22051b92cc" "8846ee22051b92cc"
@ -29539,8 +29327,8 @@
"initialize": "", "initialize": "",
"finalize": "", "finalize": "",
"libs": [], "libs": [],
"x": 710, "x": 690,
"y": 1260, "y": 500,
"wires": [ "wires": [
[ [
"c59db4f3f0112244" "c59db4f3f0112244"
@ -29561,8 +29349,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 650, "x": 630,
"y": 820, "y": 60,
"wires": [] "wires": []
}, },
{ {
@ -29579,8 +29367,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 660, "x": 640,
"y": 880, "y": 120,
"wires": [] "wires": []
}, },
{ {
@ -29597,143 +29385,8 @@
"targetType": "full", "targetType": "full",
"statusVal": "", "statusVal": "",
"statusType": "auto", "statusType": "auto",
"x": 650, "x": 630,
"y": 940, "y": 180,
"wires": [] "wires": []
},
{
"id": "7ddf9ea.ce1666",
"type": "trigger",
"z": "d49b385d8b582b20",
"name": "",
"op1": "1",
"op2": "0",
"op1type": "num",
"op2type": "num",
"duration": "5",
"extend": true,
"overrideDelay": false,
"units": "s",
"reset": "stop",
"bytopic": "all",
"topic": "topic",
"outputs": 2,
"x": 260,
"y": 540,
"wires": [
[
"9cd45d14.c50fc",
"d0e34d98.f2042"
],
[
"9cd45d14.c50fc",
"4666b91c.95c868"
]
]
},
{
"id": "4f9f0445.d36d2c",
"type": "inject",
"z": "d49b385d8b582b20",
"name": "motion",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "1",
"topic": "",
"payload": "",
"payloadType": "date",
"x": 110,
"y": 540,
"wires": [
[
"7ddf9ea.ce1666"
]
]
},
{
"id": "d0e34d98.f2042",
"type": "debug",
"z": "d49b385d8b582b20",
"name": "Switch on",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 420,
"y": 480,
"wires": []
},
{
"id": "4666b91c.95c868",
"type": "debug",
"z": "d49b385d8b582b20",
"name": "Switch off",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 420,
"y": 600,
"wires": []
},
{
"id": "9cd45d14.c50fc",
"type": "debug",
"z": "d49b385d8b582b20",
"name": "The Lamp",
"active": true,
"tosidebar": false,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 560,
"y": 540,
"wires": []
},
{
"id": "4c6b1c69069e01e9",
"type": "inject",
"z": "d49b385d8b582b20",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "stop",
"payloadType": "str",
"x": 110,
"y": 600,
"wires": [
[
"7ddf9ea.ce1666"
]
]
} }
] ]