Created
January 26, 2019 14:18
-
-
Save rusenask/c4686f64616efd2f73bbd1a8b9ecb0b0 to your computer and use it in GitHub Desktop.
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": "e8757f5a.d3e63", | |
"type": "tab", | |
"label": "google home", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "cc70fafa.341f8", | |
"type": "tv-bravia-put", | |
"z": "e8757f5a.d3e63", | |
"device": "76b6f1d1.5f92e8", | |
"name": "", | |
"action": "Mute", | |
"x": 650, | |
"y": 460, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "8e6631f0.9f4e5", | |
"type": "tv-bravia-put", | |
"z": "e8757f5a.d3e63", | |
"device": "76b6f1d1.5f92e8", | |
"name": "turn off TV", | |
"action": "Sleep", | |
"x": 670, | |
"y": 300, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "430ed221.c4bb24", | |
"type": "wake on lan", | |
"z": "e8757f5a.d3e63", | |
"mac": "", | |
"host": "", | |
"name": "turn on TV", | |
"x": 670, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "bc073cef.500598", | |
"type": "webhookrelay", | |
"z": "e8757f5a.d3e63", | |
"buckets": "gactions", | |
"x": 130, | |
"y": 220, | |
"wires": [ | |
[ | |
"e98a21eb.74d69" | |
] | |
] | |
}, | |
{ | |
"id": "e98a21eb.74d69", | |
"type": "function", | |
"z": "e8757f5a.d3e63", | |
"name": "extract body", | |
"func": "\nreturn {\n payload: msg.payload.body\n};", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 330, | |
"y": 220, | |
"wires": [ | |
[ | |
"b46e91fe.5820d" | |
] | |
] | |
}, | |
{ | |
"id": "a575fe2b.abd5c", | |
"type": "switch", | |
"z": "e8757f5a.d3e63", | |
"name": "", | |
"property": "payload.action", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "tv_off", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "tv_on", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "tv_mute", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 3, | |
"x": 310, | |
"y": 340, | |
"wires": [ | |
[ | |
"8e6631f0.9f4e5" | |
], | |
[ | |
"430ed221.c4bb24" | |
], | |
[ | |
"cc70fafa.341f8" | |
] | |
] | |
}, | |
{ | |
"id": "b46e91fe.5820d", | |
"type": "json", | |
"z": "e8757f5a.d3e63", | |
"name": "", | |
"property": "payload", | |
"action": "", | |
"pretty": false, | |
"x": 500, | |
"y": 220, | |
"wires": [ | |
[ | |
"a575fe2b.abd5c" | |
] | |
] | |
}, | |
{ | |
"id": "76b6f1d1.5f92e8", | |
"type": "tv-bravia", | |
"z": "", | |
"name": "lounge", | |
"address": "", | |
"port": "80", | |
"debug": false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment