Add "dinner is ready" ios action
This commit is contained in:
205
flows.json
205
flows.json
@ -646,9 +646,7 @@
|
||||
"37f1c11c59a6ce16"
|
||||
],
|
||||
"x": 94,
|
||||
"y": 339,
|
||||
"w": 1872,
|
||||
"h": 622
|
||||
"y": 339
|
||||
},
|
||||
{
|
||||
"id": "39a7ac02f2727f1d",
|
||||
@ -964,9 +962,7 @@
|
||||
"0968727f2138ac62"
|
||||
],
|
||||
"x": 34,
|
||||
"y": 779,
|
||||
"w": 1432,
|
||||
"h": 462
|
||||
"y": 779
|
||||
},
|
||||
{
|
||||
"id": "f55a52c40b8b8749",
|
||||
@ -1011,9 +1007,7 @@
|
||||
"318bee4424125dd5"
|
||||
],
|
||||
"x": 34,
|
||||
"y": 19,
|
||||
"w": 832,
|
||||
"h": 742
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"id": "208284848b13b85b",
|
||||
@ -1223,9 +1217,7 @@
|
||||
"8c29a2e1a06c5524"
|
||||
],
|
||||
"x": 54,
|
||||
"y": 19,
|
||||
"w": 2152,
|
||||
"h": 282
|
||||
"y": 19
|
||||
},
|
||||
{
|
||||
"id": "0c81dfaed25d225c",
|
||||
@ -1259,9 +1251,7 @@
|
||||
"37bdac2c9a4e2837"
|
||||
],
|
||||
"x": 54,
|
||||
"y": 39,
|
||||
"w": 1652,
|
||||
"h": 382
|
||||
"y": 39
|
||||
},
|
||||
{
|
||||
"id": "8aee4d340a136bac",
|
||||
@ -1282,9 +1272,7 @@
|
||||
"6f84db50867abc7b"
|
||||
],
|
||||
"x": 14,
|
||||
"y": 519,
|
||||
"w": 612,
|
||||
"h": 202
|
||||
"y": 519
|
||||
},
|
||||
{
|
||||
"id": "550e5b2d99316b12",
|
||||
@ -1312,6 +1300,56 @@
|
||||
"w": 1232,
|
||||
"h": 202
|
||||
},
|
||||
{
|
||||
"id": "f519aff597ece351",
|
||||
"type": "group",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"name": "iOS Actions",
|
||||
"style": {
|
||||
"label": true
|
||||
},
|
||||
"nodes": [
|
||||
"14c6951746b58a38",
|
||||
"533921a587f031d4",
|
||||
"65240dc52617459d",
|
||||
"d3763c0194214956",
|
||||
"638703bd017d6e5b",
|
||||
"bc5f205fd5e7582e",
|
||||
"1516f464e4d87c56",
|
||||
"e21a948e9523bce7",
|
||||
"6ec2fd7aaaf1fc98",
|
||||
"c5e9589db7e0b0bf",
|
||||
"50cf93faa2e3996c",
|
||||
"89f6119d5702185b",
|
||||
"15ae48c0b6e70f36",
|
||||
"572b2040be874f4e",
|
||||
"b57e12eb73074535",
|
||||
"93b718cd47747ccc"
|
||||
],
|
||||
"x": 54,
|
||||
"y": 39,
|
||||
"w": 852,
|
||||
"h": 562
|
||||
},
|
||||
{
|
||||
"id": "26f91eb2ef77450d",
|
||||
"type": "group",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"name": "iOS Notification Actions",
|
||||
"style": {
|
||||
"label": true
|
||||
},
|
||||
"nodes": [
|
||||
"f5aff29df4e07a4a",
|
||||
"7107656a6cbecce7",
|
||||
"6bb57058f0a576e7",
|
||||
"e97b782efaaf5976"
|
||||
],
|
||||
"x": 64,
|
||||
"y": 699,
|
||||
"w": 672,
|
||||
"h": 82
|
||||
},
|
||||
{
|
||||
"id": "19b0e082db0643ac",
|
||||
"type": "junction",
|
||||
@ -22793,6 +22831,7 @@
|
||||
"id": "14c6951746b58a38",
|
||||
"type": "server-events",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "iOS Action Fired",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 2,
|
||||
@ -22823,8 +22862,8 @@
|
||||
"valueType": "jsonata"
|
||||
}
|
||||
],
|
||||
"x": 220,
|
||||
"y": 360,
|
||||
"x": 160,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[
|
||||
"533921a587f031d4"
|
||||
@ -22835,6 +22874,7 @@
|
||||
"id": "533921a587f031d4",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -22863,13 +22903,18 @@
|
||||
"t": "eq",
|
||||
"v": "Basement On",
|
||||
"vt": "str"
|
||||
},
|
||||
{
|
||||
"t": "eq",
|
||||
"v": "Dinner Is Ready",
|
||||
"vt": "str"
|
||||
}
|
||||
],
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 5,
|
||||
"x": 355,
|
||||
"y": 360,
|
||||
"outputs": 6,
|
||||
"x": 295,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[
|
||||
"65240dc52617459d"
|
||||
@ -22885,6 +22930,9 @@
|
||||
],
|
||||
[
|
||||
"b57e12eb73074535"
|
||||
],
|
||||
[
|
||||
"93b718cd47747ccc"
|
||||
]
|
||||
],
|
||||
"l": false
|
||||
@ -22893,6 +22941,7 @@
|
||||
"id": "65240dc52617459d",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Climate",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -22911,8 +22960,8 @@
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 2,
|
||||
"x": 500,
|
||||
"y": 260,
|
||||
"x": 440,
|
||||
"y": 120,
|
||||
"wires": [
|
||||
[
|
||||
"d3763c0194214956"
|
||||
@ -22926,6 +22975,7 @@
|
||||
"id": "d3763c0194214956",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "MB Climate Manual Day",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -22943,8 +22993,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 710,
|
||||
"y": 220,
|
||||
"x": 650,
|
||||
"y": 80,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -22953,6 +23003,7 @@
|
||||
"id": "638703bd017d6e5b",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "MB Climate Manual Night",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -22970,8 +23021,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 710,
|
||||
"y": 280,
|
||||
"x": 650,
|
||||
"y": 140,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -22980,6 +23031,7 @@
|
||||
"id": "bc5f205fd5e7582e",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Goodnight",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -22997,8 +23049,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 670,
|
||||
"y": 340,
|
||||
"x": 610,
|
||||
"y": 200,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23007,6 +23059,7 @@
|
||||
"id": "1516f464e4d87c56",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Give Me Darkness",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -23022,8 +23075,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 690,
|
||||
"y": 400,
|
||||
"x": 630,
|
||||
"y": 260,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23032,6 +23085,7 @@
|
||||
"id": "e21a948e9523bce7",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Lights",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -23048,8 +23102,8 @@
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 2,
|
||||
"x": 490,
|
||||
"y": 480,
|
||||
"x": 430,
|
||||
"y": 340,
|
||||
"wires": [
|
||||
[
|
||||
"6ec2fd7aaaf1fc98"
|
||||
@ -23063,6 +23117,7 @@
|
||||
"id": "6ec2fd7aaaf1fc98",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Floors",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -23081,8 +23136,8 @@
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 2,
|
||||
"x": 650,
|
||||
"y": 480,
|
||||
"x": 590,
|
||||
"y": 340,
|
||||
"wires": [
|
||||
[
|
||||
"c5e9589db7e0b0bf"
|
||||
@ -23096,6 +23151,7 @@
|
||||
"id": "c5e9589db7e0b0bf",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Second Floor",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -23113,8 +23169,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 870,
|
||||
"y": 460,
|
||||
"x": 810,
|
||||
"y": 320,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23123,6 +23179,7 @@
|
||||
"id": "50cf93faa2e3996c",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "First Floor",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -23140,8 +23197,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 860,
|
||||
"y": 520,
|
||||
"x": 800,
|
||||
"y": 380,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23150,6 +23207,7 @@
|
||||
"id": "89f6119d5702185b",
|
||||
"type": "function",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Rooms",
|
||||
"func": "var room = msg.payload.event.actionName\n\nif (room === \"lights-basement-studio\") {\n msg.room = \"light.basement_studio_lights\"\n} else if (room === \"lights-living-room\") {\n msg.room = \"light.living_room_lights\"\n} else if (room === \"lights-dining-room-lamp\") {\n msg.room = \"light.dining_room_lamp\"\n} else if (room === \"lights-tina-lamp\") {\n msg.room = \"light.tina_lamp\"\n} else if (room === \"lights-mud-room\") {\n msg.room = \"light.mud_room_overhead\"\n} else if (room === \"lights-upstairs-hallway\") {\n msg.room = \"light.hallway_overhead\"\n} else if (room === \"lights-upstairs-bathroom\") {\n msg.room = \"light.upstairs_bathroom_lights\"\n} else if (room === \"lights-master-bedroom\") {\n msg.room = \"light.master_bedroom_lights\"\n} else if (room === \"lights-kallen-bedroom\") {\n msg.room = \"light.kallen_bedroom_lights\"\n} else if (room === \"lights-emma_bedroom\") {\n msg.room = \"light.emma_bedroom_light\"\n} else if (room === \"lights-front-porch\") {\n msg.room = \"light.front_porch_light\"\n} else if (room === \"lights-furnace-room\") {\n msg.room = \"light.furnace_room_overhead\"\n}\n\nreturn msg;",
|
||||
"outputs": 1,
|
||||
@ -23157,8 +23215,8 @@
|
||||
"initialize": "",
|
||||
"finalize": "",
|
||||
"libs": [],
|
||||
"x": 660,
|
||||
"y": 580,
|
||||
"x": 600,
|
||||
"y": 440,
|
||||
"wires": [
|
||||
[
|
||||
"15ae48c0b6e70f36"
|
||||
@ -23169,6 +23227,7 @@
|
||||
"id": "15ae48c0b6e70f36",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Toggle Lights",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -23186,8 +23245,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 870,
|
||||
"y": 580,
|
||||
"x": 810,
|
||||
"y": 440,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23196,19 +23255,21 @@
|
||||
"id": "572b2040be874f4e",
|
||||
"type": "link out",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "iOS Action - Basement On",
|
||||
"mode": "link",
|
||||
"links": [
|
||||
"1f5808147fa975cf"
|
||||
],
|
||||
"x": 525,
|
||||
"y": 640,
|
||||
"x": 465,
|
||||
"y": 500,
|
||||
"wires": []
|
||||
},
|
||||
{
|
||||
"id": "b57e12eb73074535",
|
||||
"type": "change",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "",
|
||||
"rules": [
|
||||
{
|
||||
@ -23224,8 +23285,8 @@
|
||||
"from": "",
|
||||
"to": "",
|
||||
"reg": false,
|
||||
"x": 455,
|
||||
"y": 640,
|
||||
"x": 395,
|
||||
"y": 500,
|
||||
"wires": [
|
||||
[
|
||||
"572b2040be874f4e"
|
||||
@ -23237,6 +23298,7 @@
|
||||
"id": "f5aff29df4e07a4a",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "26f91eb2ef77450d",
|
||||
"name": "",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -23255,8 +23317,8 @@
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 2,
|
||||
"x": 525,
|
||||
"y": 820,
|
||||
"x": 475,
|
||||
"y": 740,
|
||||
"wires": [
|
||||
[
|
||||
"7107656a6cbecce7"
|
||||
@ -23269,6 +23331,7 @@
|
||||
"id": "7107656a6cbecce7",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "26f91eb2ef77450d",
|
||||
"name": "Kallen PC On",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
@ -23284,8 +23347,8 @@
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 680,
|
||||
"y": 820,
|
||||
"x": 630,
|
||||
"y": 740,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
@ -23294,6 +23357,7 @@
|
||||
"id": "6bb57058f0a576e7",
|
||||
"type": "server-events",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "26f91eb2ef77450d",
|
||||
"name": "iOS Notification Action Fired",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 2,
|
||||
@ -23325,8 +23389,8 @@
|
||||
"valueType": "jsonata"
|
||||
}
|
||||
],
|
||||
"x": 260,
|
||||
"y": 820,
|
||||
"x": 210,
|
||||
"y": 740,
|
||||
"wires": [
|
||||
[
|
||||
"e97b782efaaf5976"
|
||||
@ -23337,6 +23401,7 @@
|
||||
"id": "e97b782efaaf5976",
|
||||
"type": "switch",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "26f91eb2ef77450d",
|
||||
"name": "",
|
||||
"property": "payload.event.actionName",
|
||||
"propertyType": "msg",
|
||||
@ -23350,8 +23415,8 @@
|
||||
"checkall": "true",
|
||||
"repair": false,
|
||||
"outputs": 1,
|
||||
"x": 445,
|
||||
"y": 820,
|
||||
"x": 395,
|
||||
"y": 740,
|
||||
"wires": [
|
||||
[
|
||||
"f5aff29df4e07a4a"
|
||||
@ -23359,6 +23424,32 @@
|
||||
],
|
||||
"l": false
|
||||
},
|
||||
{
|
||||
"id": "93b718cd47747ccc",
|
||||
"type": "api-call-service",
|
||||
"z": "bb961e59e2ef86c9",
|
||||
"g": "f519aff597ece351",
|
||||
"name": "Dinner Is Ready",
|
||||
"server": "9e87348d.9c1c48",
|
||||
"version": 5,
|
||||
"debugenabled": false,
|
||||
"domain": "script",
|
||||
"service": "dinner_is_ready",
|
||||
"areaId": [],
|
||||
"deviceId": [],
|
||||
"entityId": [],
|
||||
"data": "",
|
||||
"dataType": "jsonata",
|
||||
"mergeContext": "",
|
||||
"mustacheAltTags": false,
|
||||
"outputProperties": [],
|
||||
"queue": "none",
|
||||
"x": 460,
|
||||
"y": 560,
|
||||
"wires": [
|
||||
[]
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "a4c477269b22f766",
|
||||
"type": "ha-button",
|
||||
|
Reference in New Issue
Block a user