-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.json
101 lines (101 loc) · 2.08 KB
/
sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[{
"id": "f6b220ec.346fb",
"type": "hb-event",
"z": "5b8927c7.362aa",
"name": "Powder Room",
"Homebridge": "Penny",
"Manufacturer": "Heyu",
"Service": "Lightbulb",
"device": "PennyCC:22:3D:E3:CE:30HeyuPowder Room00000043",
"conf": "31bc5779.36b6d",
"x": 110,
"y": 160,
"wires": [
["7a5f2d2.a7e97d4"]
]
}, {
"id": "d4da68ec.20bdf",
"type": "hb-control",
"z": "5b8927c7.362aa",
"name": "Powder Room",
"Homebridge": "Penny",
"Manufacturer": "Heyu",
"Service": "Lightbulb",
"device": "PennyCC:22:3D:E3:CE:30HeyuPowder Room00000043",
"conf": "31bc5779.36b6d",
"x": 640,
"y": 220,
"wires": []
}, {
"id": "7a5f2d2.a7e97d4",
"type": "switch",
"z": "5b8927c7.362aa",
"name": "Splitter",
"property": "payload.On",
"propertyType": "msg",
"rules": [{
"t": "true"
}, {
"t": "false"
}],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 280,
"y": 160,
"wires": [
["9e302ddd.ac5518", "1aa0c674.73a582"],
["9e302ddd.ac5518"]
]
}, {
"id": "1aa0c674.73a582",
"type": "function",
"z": "5b8927c7.362aa",
"name": "Invert",
"func": "(msg.payload.On ? msg.payload.On = false : msg.payload.On = true)\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 250,
"y": 280,
"wires": [
["ac575609.98b698"]
]
}, {
"id": "ac575609.98b698",
"type": "delay",
"z": "5b8927c7.362aa",
"name": "",
"pauseType": "delay",
"timeout": "10",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 420,
"y": 280,
"wires": [
["d4da68ec.20bdf", "9e302ddd.ac5518"]
]
}, {
"id": "9e302ddd.ac5518",
"type": "hb-control",
"z": "5b8927c7.362aa",
"name": "Outside Office",
"Homebridge": "Leonard-Dev",
"Manufacturer": "mqttthing",
"Service": "Lightbulb",
"device": "Leonard-DevAC:22:3D:E3:CE:30mqttthingOutside Office00000043",
"conf": "31bc5779.36b6d",
"x": 640,
"y": 280,
"wires": []
}, {
"id": "31bc5779.36b6d",
"type": "hb-conf",
"z": "",
"username": "031-45-154"
}]