Created
December 21, 2018 05:34
-
-
Save pauly7300/1015fc4cb6fa0fa007011362bcc3b9b5 to your computer and use it in GitHub Desktop.
alexa turn light on for X minutes then turn off.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "4757e9d9.e3b448", | |
"type": "alexa-local", | |
"z": "e4a40a49.615548", | |
"devicename": "Office fan", | |
"inputtrigger": false, | |
"x": 658, | |
"y": 526, | |
"wires": [ | |
[ | |
"4d0df27a.fc779c" | |
] | |
] | |
}, | |
{ | |
"id": "4d0df27a.fc779c", | |
"type": "switch", | |
"z": "e4a40a49.615548", | |
"name": "", | |
"property": "payload", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "on", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "off", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 2, | |
"x": 814, | |
"y": 526, | |
"wires": [ | |
[ | |
"e473a1eb.b0cc9" | |
], | |
[ | |
"22aea8a7.2e93d8" | |
] | |
] | |
}, | |
{ | |
"id": "e473a1eb.b0cc9", | |
"type": "change", | |
"z": "e4a40a49.615548", | |
"name": "Set to ON", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "ON", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 1024, | |
"y": 475, | |
"wires": [ | |
[ | |
"e7ee5d5.f1b42a" | |
] | |
] | |
}, | |
{ | |
"id": "22aea8a7.2e93d8", | |
"type": "change", | |
"z": "e4a40a49.615548", | |
"name": "Set to OFF", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "OFF", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 1028, | |
"y": 519, | |
"wires": [ | |
[ | |
"5c325a63.a791f4" | |
] | |
] | |
}, | |
{ | |
"id": "e7ee5d5.f1b42a", | |
"type": "trigger", | |
"z": "e4a40a49.615548", | |
"op1": "ON", | |
"op2": "OFF", | |
"op1type": "str", | |
"op2type": "str", | |
"duration": "15", | |
"extend": true, | |
"units": "min", | |
"reset": "reset", | |
"bytopic": "all", | |
"name": "", | |
"x": 1212, | |
"y": 472, | |
"wires": [ | |
[ | |
"5c325a63.a791f4", | |
"3c022a4b.8898b6" | |
] | |
] | |
}, | |
{ | |
"id": "5c325a63.a791f4", | |
"type": "mqtt out", | |
"z": "e4a40a49.615548", | |
"name": "", | |
"topic": "cmnd/sonoff_touch1/power", | |
"qos": "", | |
"retain": "", | |
"broker": "f6a39141.63cf2", | |
"x": 1471, | |
"y": 472, | |
"wires": [] | |
}, | |
{ | |
"id": "1ed765b5.d6a07a", | |
"type": "inject", | |
"z": "e4a40a49.615548", | |
"name": "", | |
"topic": "", | |
"payload": "ON", | |
"payloadType": "str", | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 1035, | |
"y": 580, | |
"wires": [ | |
[ | |
"e7ee5d5.f1b42a" | |
] | |
] | |
}, | |
{ | |
"id": "3c022a4b.8898b6", | |
"type": "debug", | |
"z": "e4a40a49.615548", | |
"name": "", | |
"active": true, | |
"tosidebar": true, | |
"console": true, | |
"tostatus": false, | |
"complete": "true", | |
"x": 1358, | |
"y": 543, | |
"wires": [] | |
}, | |
{ | |
"id": "f61d1390.46557", | |
"type": "inject", | |
"z": "e4a40a49.615548", | |
"name": "reset", | |
"topic": "", | |
"payload": "reset", | |
"payloadType": "str", | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": "", | |
"x": 1037, | |
"y": 660, | |
"wires": [ | |
[ | |
"e7ee5d5.f1b42a" | |
] | |
] | |
}, | |
{ | |
"id": "a3c1a704.ea3b48", | |
"type": "inject", | |
"z": "e4a40a49.615548", | |
"name": "", | |
"topic": "", | |
"payload": "OFF", | |
"payloadType": "str", | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 1035, | |
"y": 620, | |
"wires": [ | |
[ | |
"5c325a63.a791f4" | |
] | |
] | |
}, | |
{ | |
"id": "f6a39141.63cf2", | |
"type": "mqtt-broker", | |
"z": "", | |
"broker": "192.168.1.60", | |
"port": "1883", | |
"clientid": "", | |
"usetls": false, | |
"compatmode": true, | |
"keepalive": "60", | |
"cleansession": true, | |
"birthTopic": "", | |
"birthQos": "0", | |
"birthPayload": "", | |
"willTopic": "", | |
"willQos": "0", | |
"willPayload": "" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment