-
Notifications
You must be signed in to change notification settings - Fork 93
/
config.example.json
53 lines (53 loc) · 1.39 KB
/
config.example.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
{"buttons":[
{
"name": "Debug Dash Button",
"address": "d8:02:dc:98:63:49",
"debug": true
},
{
"name": "Start Party Time",
"address": "d8:02:dc:98:63:49",
"interface": "en0",
"timeout": "60000",
"protocol": "udp",
"url": "http://192.168.1.55:8123/api/services/scene/turn_on",
"method": "POST",
"headers": {"x-ha-access": "your_password"},
"json": true,
"body": {"entity_id": "scene.party_time"}
},
{
"name": "Start Cooking Playlist",
"address": "66:a0:dc:98:d2:63",
"protocol": "arp",
"url": "http://192.168.1.55:8181/playlists/cooking/play",
"method": "PUT"
},
{
"address": "63:c9:dc:4a:b1:49",
"url": "http://media.local:8888/button_presses/increment",
"method": "POST",
"body": "button_name=diaper_button",
"formData": {
"var1":"val1",
"var2":" val2"
}
},
{
"address": "55:a6:dc:4a:53:d4",
"url": "https://maker.ifttt.com/trigger/Notify/with/key/4uY5SD3IQcsLKK1xUWbcV",
"method": "POST"
},
{
"address": "43:02:dc:b2:ab:23",
"url": "https://maker.ifttt.com/trigger/Notify/with/key/4uY5SD3IQcsLKK1xUWbcV",
"method": "POST",
"json": true,
"body": {"value1": "any value", "value2": "another value", "value3": "wow, even more value"}
},
{
"name": "Command Exec Button",
"address": "41:02:dc:b2:10:12",
"cmd": "/home/user/dash_button.sh"
}
]}