-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexamples.json
64 lines (58 loc) · 1015 Bytes
/
examples.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
//database entries for single switches
{
"_id":"huiskamer",
"name":"Huiskamer",
"brand":"action",
"type":"switch",
"dip": 18,
"channel":"B",
"doctype":"switch"
}
{
"_id":"badkamer",
"name":"Badkamer",
"brand":"elro",
"type":"switch",
"code":5,
"socket":"D",
"doctype":"switch"
}
{
"_id":"muziek",
"name":"Muziek",
"brand":"kaku",
"type":"switch",
"address":"D",
"device":10,
"doctype":"switch"
}
{
"_id":"tv",
"name":"TV",
"brand": "blokker",
"type":"switch",
"device":7,
"doctype":"switch"
}
//Database entries for group switches
{
"_id":"media",
"name":"Entertainment",
"doctype":"switch",
"type":"group",
"on":["tv","muziek"]
}
//Database entries for mood switches
{
"_id":"media",
"name":"Entertainment",
"doctype":"switch",
"type":"mood",
"on":["tv","muziek"],
"off":["huiskamer","badkamer"]
}
//sending to NodeJS server
{
"ids":["tv","huiskamer"],
"state":"on"
}