I haven't see this posted anywhere before... Alexa voice commands for lighting with dynamic timers. For example, "Alexa, turn on the living room lights for 20 minutes." Or, "Alexa, turn off the lights for 45 seconds." Or even, "Alexa, disable office motion for 1 hour."
So, after creating some lighting flows with my motion sensors, I realized they often turned the lights off more quickly than I wanted, or kept them on longer than I wanted. Somewhere I found a flow that allowed me to disable the motion sensors whenever I gave a voice command to turn on the lights, but that still didn't really cut it for a variety of reasons. I got the idea of dynamic timers using Alexa voice commands and after a bunch of searching around I came across @stephen_nutt's post here at #116 (thank you kind sir!) After tinkering with his flows I came up with this...
There are essentially two different methods at play here. One is using "on" and "off" hubitat command nodes for my light groups. The other is on the other side of the link-out nodes where I use @yadomi/node-red-contrib-philipshue-events to take care of my lighting. Here is an example...
The reason for two methods is because I was originally using Hue Magic to control everything, but as luck would have it, it stopped working. So, I've been slowly converting everything over to method two as I have time. Frankly, once you figure it out, the philipshue-events method is way better than Hue Magic.
I've only been at this home automation thing for a few weeks, and I whipped this first flow out in the last three or four hours, so I'm sure it could use some work. I wanted to get it out though because I thought people might be interested in this particular application of using Alexa to turn on light groups with dynamic timers.
Besides the contrib mentioned above, these flows use node-red-contrib-stoptimer-varidelay, node-red-contrib-ecolect, node-red-contrib-alexa-remote2-applestrudel, and node-red-contrib-boolean-logic-ultimate. I should also mention these flows were created in Node-RED 3.0 beta 3. If anyone has any questions, suggestions or wants more information, please hit me up.
EDIT: One limitation I've discovered is the timer will only work for the last command you gave Alexa. So, if you told her to turn on your living room lights for an hour and then during that hour, told her to turn on your kitchen lights for 5 minutes, it will reset the timer to 5 minutes.
[
{
"id": "25bc6f35f2a44cb7",
"type": "tab",
"label": "Flow 9",
"disabled": false,
"info": "",
"env": []
},
{
"id": "65e8c3c1e958d3ea",
"type": "group",
"z": "25bc6f35f2a44cb7",
"style": {
"stroke": "#000000",
"label": true,
"fill": "#addb7b",
"color": "#000000"
},
"nodes": [
"98a49fe9e4e49101",
"04a0a024d2811afd",
"f1190985f2bc844f",
"be315601ea68f849",
"93ccf8606e4db7ec",
"8f79b7c924abff02",
"6bcdbfe69cafb699",
"f629d61ac9189375",
"baec9cd6f13d2225",
"9be4a146ec75a4a7",
"04562dfaf46c5bf3",
"ed0794686d944bf3",
"86f54ac3daaf7768",
"e826ee85e975ffa4",
"84ff480ae5725c14",
"b072027c6d1d6e64",
"8f7f56ba872e61f0",
"6e1f8cc4f1ab07e0",
"a8f3dd512cfb7be4",
"919572594d214e9a"
],
"x": 188,
"y": 574,
"w": 1444,
"h": 1052
},
{
"id": "a8f3dd512cfb7be4",
"type": "group",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Alexa Local Light Voice Control ",
"style": {
"stroke": "#000000",
"fill": "#bfdbef",
"label": true,
"color": "#000000"
},
"nodes": [
"f547e027474194f6",
"a27c511addeda301",
"15adfeaf0f1dcb7a",
"1a4c9334cd28463e",
"2eef74b5af789246",
"0c68db52072968f3",
"0c6a84a9b1dadc54",
"6f4ae984d0fb9410",
"966b3c2392432a60",
"6b5aeb1c80fc63eb",
"05a0037e8e57b876",
"eae5abcd46cb1c12",
"62cfa8a173b8235d",
"ba28246ca58d1781",
"370756c64ae1a442",
"626bd71df581ea5a",
"6c0c3bf8a453a80c",
"1b64c986a124f861",
"5d43fb69a17a6eef",
"4630e3f5d44bdf5b"
],
"x": 214,
"y": 899,
"w": 1392,
"h": 409.5
},
{
"id": "8f7f56ba872e61f0",
"type": "junction",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"x": 1220,
"y": 600,
"wires": [
[
"f1190985f2bc844f"
]
]
},
{
"id": "6e1f8cc4f1ab07e0",
"type": "junction",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"x": 1220,
"y": 1600,
"wires": [
[
"8f79b7c924abff02"
]
]
},
{
"id": "eae5abcd46cb1c12",
"type": "junction",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"x": 1200,
"y": 940,
"wires": [
[
"966b3c2392432a60"
]
]
},
{
"id": "1b64c986a124f861",
"type": "junction",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"x": 560,
"y": 1160,
"wires": [
[
"f547e027474194f6",
"15adfeaf0f1dcb7a"
]
]
},
{
"id": "98a49fe9e4e49101",
"type": "switch",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Voice Commands",
"property": "payload.description.summary",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "turn on",
"vt": "str"
},
{
"t": "cont",
"v": "lights on",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 850,
"y": 760,
"wires": [
[
"04a0a024d2811afd"
],
[
"04a0a024d2811afd"
]
]
},
{
"id": "04a0a024d2811afd",
"type": "switch",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Which Device?",
"property": "payload.deviceSerialNumber",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 9,
"x": 1080,
"y": 760,
"wires": [
[
"8f7f56ba872e61f0"
],
[
"8f7f56ba872e61f0",
"be315601ea68f849",
"86f54ac3daaf7768"
],
[
"8f7f56ba872e61f0"
],
[
"8f7f56ba872e61f0",
"f629d61ac9189375"
],
[
"8f7f56ba872e61f0",
"e826ee85e975ffa4"
],
[
"8f7f56ba872e61f0",
"86f54ac3daaf7768",
"be315601ea68f849"
],
[
"8f7f56ba872e61f0",
"9be4a146ec75a4a7"
],
[
"8f7f56ba872e61f0"
],
[
"8f7f56ba872e61f0"
]
],
"outputLabels": [
"Bedroom Echo",
"Family Room Echo",
"Garage Echo",
"Guest Room Echo",
"Hallway Echo",
"Kitchen Echo",
"Living Room Echo",
"Master Bath Echo",
"Office Echo"
]
},
{
"id": "f1190985f2bc844f",
"type": "debug",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "debug 515",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1070,
"y": 640,
"wires": []
},
{
"id": "be315601ea68f849",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 620,
"wires": [
[]
]
},
{
"id": "93ccf8606e4db7ec",
"type": "switch",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Which Device?",
"property": "payload.deviceSerialNumber",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
},
{
"t": "eq",
"v": "Alexa Serial Number Here",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 9,
"x": 1080,
"y": 1440,
"wires": [
[
"6e1f8cc4f1ab07e0"
],
[
"6e1f8cc4f1ab07e0",
"6bcdbfe69cafb699",
"ed0794686d944bf3"
],
[
"6e1f8cc4f1ab07e0"
],
[
"6e1f8cc4f1ab07e0",
"baec9cd6f13d2225"
],
[
"6e1f8cc4f1ab07e0",
"84ff480ae5725c14"
],
[
"6e1f8cc4f1ab07e0",
"ed0794686d944bf3",
"6bcdbfe69cafb699"
],
[
"6e1f8cc4f1ab07e0",
"04562dfaf46c5bf3"
],
[
"6e1f8cc4f1ab07e0"
],
[
"6e1f8cc4f1ab07e0"
]
],
"outputLabels": [
"Bedroom Echo",
"Family Room Echo",
"Garage Echo",
"Guest Room Echo",
"Hallway Echo",
"Kitchen Echo",
"Living Room Echo",
"Master Bath Echo",
"Office Echo"
]
},
{
"id": "8f79b7c924abff02",
"type": "debug",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "debug 516",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1070,
"y": 1560,
"wires": []
},
{
"id": "6bcdbfe69cafb699",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 1340,
"wires": [
[]
]
},
{
"id": "f629d61ac9189375",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 680,
"wires": [
[]
]
},
{
"id": "baec9cd6f13d2225",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 1400,
"wires": [
[]
]
},
{
"id": "9be4a146ec75a4a7",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 860,
"wires": [
[]
]
},
{
"id": "04562dfaf46c5bf3",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 1580,
"wires": [
[]
]
},
{
"id": "ed0794686d944bf3",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 1520,
"wires": [
[]
]
},
{
"id": "86f54ac3daaf7768",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 800,
"wires": [
[]
]
},
{
"id": "e826ee85e975ffa4",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 740,
"wires": [
[]
]
},
{
"id": "84ff480ae5725c14",
"type": "hubitat command",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"deviceLabel": "",
"name": "",
"server": "",
"deviceId": "",
"command": "",
"commandArgs": "",
"x": 1520,
"y": 1460,
"wires": [
[]
]
},
{
"id": "b072027c6d1d6e64",
"type": "switch",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Voice Commands",
"property": "payload.description.summary",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "lights off",
"vt": "str"
},
{
"t": "cont",
"v": "turn off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 850,
"y": 1440,
"wires": [
[
"93ccf8606e4db7ec"
],
[
"93ccf8606e4db7ec"
]
]
},
{
"id": "f547e027474194f6",
"type": "change",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "set numbers",
"rules": [
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "one",
"fromt": "str",
"to": "1",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "two",
"fromt": "str",
"to": "2",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "three",
"fromt": "str",
"to": "3",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "four",
"fromt": "str",
"to": "4",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "five",
"fromt": "str",
"to": "5",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "six",
"fromt": "str",
"to": "6",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "seven",
"fromt": "str",
"to": "7",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "eight",
"fromt": "str",
"to": "8",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "nine",
"fromt": "str",
"to": "9",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "ten",
"fromt": "str",
"to": "10",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "fifteen",
"fromt": "str",
"to": "15",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "twenty",
"fromt": "str",
"to": "20",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "thirty",
"fromt": "str",
"to": "30",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "fourty",
"fromt": "str",
"to": "40",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "fifty",
"fromt": "str",
"to": "50",
"tot": "num"
},
{
"t": "change",
"p": "values.number",
"pt": "msg",
"from": "sixty",
"fromt": "str",
"to": "60",
"tot": "num"
},
{
"t": "set",
"p": "delay",
"pt": "msg",
"to": "values.number",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 1160,
"wires": [
[
"1a4c9334cd28463e"
]
]
},
{
"id": "a27c511addeda301",
"type": "stoptimer-varidelay",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"duration": "60",
"durationType": "num",
"units": "Minute",
"payloadtype": "str",
"payloadval": "off",
"name": "",
"reporting": "last_minute_seconds",
"persist": true,
"ignoretimerpass": false,
"x": 940,
"y": 1260,
"wires": [
[
"05a0037e8e57b876",
"93ccf8606e4db7ec"
],
[],
[]
]
},
{
"id": "15adfeaf0f1dcb7a",
"type": "change",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "set units",
"rules": [
{
"t": "set",
"p": "units",
"pt": "msg",
"to": "values.units",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 1240,
"wires": [
[
"1a4c9334cd28463e"
]
]
},
{
"id": "1a4c9334cd28463e",
"type": "join",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "",
"mode": "custom",
"build": "array",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 810,
"y": 1200,
"wires": [
[
"a27c511addeda301"
]
]
},
{
"id": "2eef74b5af789246",
"type": "ecolect",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Voice Commands for Lighting",
"topics": [
{
"name": "lights",
"phrases": "turn {state} the {item} for {number} {units}\nturn {state} the {item} in the {area} for {number} {units}\nturn {state} the {item} in the {area}\n{state} {item}\n{item}{state}\nturn {state} the {area} {item} for {number} {units}\nturn {state} the {area} {item} \nturn {state} the {item} in the {area}\nturn {state} the {item} in the {area} for {number} {units}\n",
"values": [
{
"name": "item",
"type": "enumeration",
"enumerations": [
"lights",
"light",
"motion",
"motion sensors",
"sensors"
]
},
{
"name": "units",
"type": "enumeration",
"enumerations": [
"seconds",
"minutes",
"hours"
]
},
{
"name": "state",
"type": "enumeration",
"enumerations": [
"on",
"off",
"disable",
"enable",
"activate",
"deactivate"
]
},
{
"name": "number",
"type": "enumeration",
"enumerations": [
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine",
"ten",
"eleven",
"twelve",
"thirteen",
"fourteen",
"fifteen",
"sixteen",
"seventeen",
"eighteen",
"ninteen",
"twenty",
"twenty-one",
"twenty-two",
"twenty-three",
"twenty-four",
"twenty-five",
"thirty",
"fourty",
"fourty-five",
"fifty",
"sixty"
]
},
{
"name": "area",
"type": "enumeration",
"enumerations": [
"bathroom",
"bedroom",
"dining room",
"entryway",
"family room",
"garage",
"guest room",
"hallway",
"kitchen",
"laundry room",
"living room",
"master bathroom",
"master bath",
"office",
"outside"
]
}
]
}
],
"outputs": 2,
"x": 650,
"y": 1080,
"wires": [
[
"0c6a84a9b1dadc54",
"1b64c986a124f861"
],
[]
]
},
{
"id": "0c68db52072968f3",
"type": "change",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "set payload from summary",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.description.summary",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 480,
"y": 1020,
"wires": [
[
"2eef74b5af789246"
]
]
},
{
"id": "0c6a84a9b1dadc54",
"type": "change",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "set state",
"rules": [
{
"t": "change",
"p": "values.state",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "true",
"tot": "bool"
},
{
"t": "change",
"p": "values.state",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "false",
"tot": "bool"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "values.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 920,
"y": 1040,
"wires": [
[
"6f4ae984d0fb9410"
]
]
},
{
"id": "6f4ae984d0fb9410",
"type": "switch",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Room/Area",
"property": "values.area",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "bathroom",
"vt": "str"
},
{
"t": "eq",
"v": "bedroom",
"vt": "str"
},
{
"t": "eq",
"v": "dining room",
"vt": "str"
},
{
"t": "eq",
"v": "entryway",
"vt": "str"
},
{
"t": "eq",
"v": "family room",
"vt": "str"
},
{
"t": "eq",
"v": "garage",
"vt": "str"
},
{
"t": "eq",
"v": "guest room",
"vt": "str"
},
{
"t": "eq",
"v": "hallway",
"vt": "str"
},
{
"t": "eq",
"v": "kitchen",
"vt": "str"
},
{
"t": "eq",
"v": "laundry",
"vt": "str"
},
{
"t": "eq",
"v": "living room",
"vt": "str"
},
{
"t": "eq",
"v": "master bath",
"vt": "str"
},
{
"t": "eq",
"v": "office",
"vt": "str"
},
{
"t": "eq",
"v": "outside",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 14,
"x": 1090,
"y": 1080,
"wires": [
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"370756c64ae1a442"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"6b5aeb1c80fc63eb"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"626bd71df581ea5a"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"6c0c3bf8a453a80c"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"62cfa8a173b8235d"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12"
],
[
"eae5abcd46cb1c12",
"ba28246ca58d1781"
],
[
"eae5abcd46cb1c12"
]
],
"outputLabels": [
"Bathroom",
"Bedroom",
"Dining Room",
"Entryway",
"Family Room",
"Garage",
"Guest Room",
"Hallway",
"Kitchen",
"Laundry Room",
"Living Room",
"Master Bath",
"Office",
"Outside"
]
},
{
"id": "966b3c2392432a60",
"type": "debug",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "debug 517",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1310,
"y": 940,
"wires": []
},
{
"id": "6b5aeb1c80fc63eb",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Entryway Lights",
"mode": "link",
"links": [
"1cbe1d67bbf89d7c"
],
"x": 1500,
"y": 1020,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "05a0037e8e57b876",
"type": "change",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "set state",
"rules": [
{
"t": "change",
"p": "values.state",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "false",
"tot": "bool"
},
{
"t": "change",
"p": "values.state",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "true",
"tot": "bool"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "values.state",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 920,
"y": 1120,
"wires": [
[
"6f4ae984d0fb9410"
]
]
},
{
"id": "62cfa8a173b8235d",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Laundry Room Lights",
"mode": "link",
"links": [
"2d4d225366c81a39"
],
"x": 1480,
"y": 1200,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "ba28246ca58d1781",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Office Lights",
"mode": "link",
"links": [
"e127b95333e569fd",
"27f951496da4f276",
"5445e96a55d1da7f",
"a03c0d4ba6e71fda"
],
"x": 1510,
"y": 1260,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "370756c64ae1a442",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Bedroom Lights",
"mode": "link",
"links": [
"21ebd38950e29f43",
"5c8badb0bd0992fe"
],
"x": 1500,
"y": 960,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "626bd71df581ea5a",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Garage Lights",
"mode": "link",
"links": [],
"x": 1500,
"y": 1080,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "6c0c3bf8a453a80c",
"type": "link out",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Hallway Lights",
"mode": "link",
"links": [
"2d4d225366c81a39",
"a7e452d41c38e273"
],
"x": 1500,
"y": 1140,
"wires": [],
"icon": "node-red/light.svg",
"l": true
},
{
"id": "5d43fb69a17a6eef",
"type": "alexa-remote-event",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "",
"account": "",
"event": "ws-device-activity",
"x": 330,
"y": 1080,
"wires": [
[
"98a49fe9e4e49101",
"b072027c6d1d6e64",
"0c68db52072968f3"
]
]
},
{
"id": "919572594d214e9a",
"type": "comment",
"z": "25bc6f35f2a44cb7",
"g": "65e8c3c1e958d3ea",
"name": "Regarding Hubitat Command Nodes",
"info": "You will need ot add your own device info into\nthe command nodes. The top row are \"on\" nodes\nthe bottom row are \"off\" nodes.",
"x": 1100,
"y": 860,
"wires": []
},
{
"id": "4630e3f5d44bdf5b",
"type": "comment",
"z": "25bc6f35f2a44cb7",
"g": "a8f3dd512cfb7be4",
"name": "Conenct your alexa account here",
"info": "Details for how to set this up can be found \nin the contrib",
"x": 370,
"y": 960,
"wires": []
}
]