Download source PDF Page last generated on 22:11, 27 November 2015 Github 
Configuration
Example Configuration
Make sure pilight is not running before editing your configuration or else all changes will be lost.
A full pilight configuration looks like this:
1 {
2 "devices": {
3 "tv": {
4 "protocol": [ "relay" ],
5 "id": [{
6 "gpio": 3
7 }],
8 "state": "off",
9 "default-state": "off"
10 }
11 },
12 "rules": {
13 "lightswitch": {
14 "rule": "IF tv.state IS on THEN switch DEVICE tv TO off",
15 "active": 1
16 }
17 },
18 "gui": {
19 "tv": {
20 "name": "Television",
21 "group": [ "Living" ],
22 "media": [ "all" ],
23 "readonly": 0
24 }
25 },
26 "settings": {
27 "log-level": 6,
28 "pid-file": "/var/run/pilight.pid",
29 "log-file": "/var/log/pilight.log",
30 "webserver-enable": 1,
31 "webserver-http-port": 5001,
32 "webserver-cache": 1,
33 "webserver-root": "/usr/local/share/pilight"
34 },
35 "hardware": {
36 "433gpio": {
37 "sender": 0,
38 "receiver": 1
39 }
40 },
41 "registry": {
42 "pilight": {
43 "version": {
44 "current": "6.0"
45 }
46 }
47 }
48 }
Top