Warning
Make sure pilight is not running before editing your configuration or else all changes will be lost.
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 | {
"devices": {
"tv": {
"protocol": ["relay"],
"id": [{
"gpio": 3
}],
"state": "off",
"default-state": "off"
}
},
"rules": {
"lightswitch": {
"rule": "IF tv.state == on THEN switch DEVICE tv TO off",
"active": 1
}
},
"gui": {
"tv": {
"name": "Television",
"group": ["Living"],
"media": ["all"],
"readonly": 0
}
},
"settings": {
"log-level": 6,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"webserver-enable": 1,
"webserver-http-port": 5001,
"webserver-cache": 1,
"webserver-root": "/usr/local/share/pilight"
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 1
}
},
"registry": {
"pilight": {
"version": {
"current": "6.0"
}
}
}
}
|