Advertisement
Guest User

Pilight config

a guest
Jul 27th, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.05 KB | None | 0 0
  1. {
  2.     "devices": {
  3.         "fernbd1": {
  4.             "protocol": [ "elro_800_switch" ],
  5.             "id": [{
  6.                 "systemcode": 10,
  7.                 "unitcode": 10
  8.             }],
  9.             "state": "off"
  10.         },
  11.         "fernbd2": {
  12.             "protocol": [ "elro_800_switch" ],
  13.             "id": [{
  14.                 "systemcode": 10,
  15.                 "unitcode": 12
  16.             }],
  17.             "state": "off"
  18.         },
  19.         "fernbd3": {
  20.             "protocol": [ "elro_800_switch" ],
  21.             "id": [{
  22.                 "systemcode": 10,
  23.                 "unitcode": 8
  24.             }],
  25.             "state": "off"
  26.         },
  27.         "fernbd4": {
  28.             "protocol": [ "elro_800_switch" ],
  29.             "id": [{
  30.                 "systemcode": 10,
  31.                 "unitcode": 14
  32.             }],
  33.             "state": "off"
  34.         },
  35.         "lamp1": {
  36.             "protocol": [ "relay" ],
  37.             "id": [{
  38.                 "gpio": 2
  39.             }],
  40.             "state": "off"
  41.         },
  42.         "lamp2": {
  43.             "protocol": [ "relay" ],
  44.             "id": [{
  45.                 "gpio": 3
  46.             }],
  47.             "state": "off"
  48.         },
  49.         "lamp3": {
  50.             "protocol": [ "relay" ],
  51.             "id": [{
  52.                 "gpio": 12
  53.             }],
  54.             "state": "off"
  55.         }
  56.     },
  57.     "rules": {
  58.         "fernbd1-on1": {
  59.             "rule": "IF (fernbd1.state IS on) THEN switch DEVICE lamp1 TO on",
  60.             "active": 1
  61.         },
  62.         "fernbd1-on2": {
  63.             "rule": "IF (lamp1.state IS on) THEN switch DEVICE fernbd1 TO on",
  64.             "active": 1
  65.         },
  66.         "fernbd1-off1": {
  67.             "rule": "IF (fernbd1.state IS off) THEN switch DEVICE lamp1 TO off",
  68.             "active": 1
  69.         },
  70.         "fernbd1-off2": {
  71.             "rule": "IF (lamp1.state IS off) THEN switch DEVICE fernbd1 TO off",
  72.             "active": 1
  73.         },
  74.         "fernbd2-on1": {
  75.             "rule": "IF (fernbd2.state IS on) THEN switch DEVICE lamp2 TO on",
  76.             "active": 1
  77.         },
  78.         "fernbd2-on2": {
  79.             "rule": "IF (lamp2.state IS on) THEN switch DEVICE fernbd2 TO on",
  80.             "active": 1
  81.         },
  82.         "fernbd2-off1": {
  83.             "rule": "IF (fernbd2.state IS off) THEN switch DEVICE lamp2 TO off",
  84.             "active": 1
  85.         },
  86.         "fernbd2-off2": {
  87.             "rule": "IF (lamp2.state IS off) THEN switch DEVICE fernbd2 TO off",
  88.             "active": 1
  89.         },
  90.         "fernbd3-on1": {
  91.             "rule": "IF (fernbd3.state IS on) THEN switch DEVICE lamp3 TO on",
  92.             "active": 1
  93.         },
  94.         "fernbd3-on2": {
  95.             "rule": "IF (lamp3.state IS on) THEN switch DEVICE fernbd3 TO on",
  96.             "active": 1
  97.         },
  98.         "fernbd3-off1": {
  99.             "rule": "IF (fernbd3.state IS off) THEN switch DEVICE lamp3 TO off",
  100.             "active": 1
  101.         },
  102.         "fernbd3-off2": {
  103.             "rule": "IF (lamp3.state IS off) THEN switch DEVICE fernbd3 TO off",
  104.             "active": 1
  105.         }
  106.     },
  107.     "gui": {
  108.         "lamp1": {
  109.             "name": "Sofa",
  110.             "group": [ "Terasse" ],
  111.             "media": [ "all" ]
  112.         },
  113.         "lamp2": {
  114.             "name": "Tisch",
  115.             "group": [ "Terasse" ],
  116.             "media": [ "all" ]
  117.         },
  118.         "lamp3": {
  119.             "name": "Musik",
  120.             "group": [ "Terasse" ],
  121.             "media": [ "all" ]
  122.         }
  123.     },
  124.     "settings": {
  125.         "log-level": 6,
  126.         "pid-file": "/var/run/pilight.pid",
  127.         "log-file": "/var/log/pilight.log",
  128.         "webserver-enable": 1,
  129.         "webserver-root": "/usr/local/share/pilight/",
  130.         "webserver-http-port": 5001,
  131.         "webserver-cache": 1,
  132.         "gpio-platform": "raspberrypi2"
  133.     },
  134.     "hardware": {
  135.         "433gpio": {
  136.             "sender": 12,
  137.             "receiver": 0
  138.         }
  139.     },
  140.     "registry": {
  141.         "pilight": {
  142.             "version": {
  143.                 "current": "7.0"
  144.             }
  145.         }
  146.     }
  147. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement