-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
config-sample.json
47 lines (47 loc) · 1.92 KB
/
config-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
{
"FAUXMO": {
"ip_address": "auto"
},
"PLUGINS": {
"SimpleHTTPPlugin": {
"DEVICES": [
{
"port": 12340,
"on_cmd": "http://192.168.1.104/myserver/fakeswitches/01/on",
"off_cmd": "http://192.168.1.104/myserver/fakeswitches/01/off",
"method": "GET",
"name": "fake switch one"
},
{
"port": 12341,
"on_cmd": "http://localhost:54321/devices/garage%20light",
"off_cmd": "http://localhost:54321/devices/garage%20light",
"on_data": {"isOn": 1},
"off_data": {"isOn": 0},
"user": "this",
"password": "that",
"method": "PUT",
"name": "fake Indigo switch",
"use_fake_state": true
},
{
"name": "fake home assistant switch via SimpleHTTPPlugin",
"port": 12342,
"headers": {
"Authorization": "Bearer YOURTOKENHERE",
"Content-Type": "application/json"
},
"on_cmd": "http://192.168.0.5:8123/api/services/switch/turn_on",
"off_cmd": "http://192.168.0.5:8123/api/services/switch/turn_off",
"method": "POST",
"on_data": "{\"entity_id\": \"switch.fake_hass_switch\"}",
"off_data": "{\"entity_id\": \"switch.fake_hass_switch\"}",
"state_method": "GET",
"state_cmd": "http://192.168.0.5:8123/api/states/switch.fake_hass_switch",
"state_response_on": "\"state\": \"on\"",
"state_response_off": "\"state\": \"off\""
}
]
}
}
}