Mercurial > code > home > repos > homeauto
comparison service/piNode/config/frontdoor.n3 @ 346:9636e950373e
split up pi configs
Ignore-this: 8770e4e488662d5335c896fe71ad5c82
author | drewp@bigasterisk.com |
---|---|
date | Sun, 15 Apr 2018 04:16:56 -0700 |
parents | |
children | 003343daeb62 |
comparison
equal
deleted
inserted
replaced
345:d36863e09095 | 346:9636e950373e |
---|---|
1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
2 @prefix : <http://projects.bigasterisk.com/room/> . | |
3 @prefix order: <http://projects.bigasterisk.com/room/ledColorOrder/> . | |
4 @prefix ha: <http://bigasterisk.com/homeauto/> . | |
5 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . | |
6 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . | |
7 | |
8 @prefix pin: <http://bigasterisk.com/homeauto/piFrontdoor/pin/> . | |
9 | |
10 ha:piFrontdoor a :PiBoard; | |
11 :hostname "frontdoor"; | |
12 :onboardDevice ha:frontdoorPiTemp; | |
13 :hasPin | |
14 pin:GPIO4, # open | |
15 pin:GPIO11, # motion | |
16 pin:GPIO17, # OW temp | |
17 pin:GPIO18 . # rgb | |
18 | |
19 ha:frontdoorPiTemp a :OnboardTemperature; | |
20 :influxMeasurement "temperatureF"; | |
21 :influxTag [:key "location"; :value "frontdoorPi"] . | |
22 | |
23 pin:GPIO4 :gpioNumber 4; :connectedTo :frontdoorOpenSwitch . | |
24 :frontdoorOpenSwitch a :Pushbutton; :style :inverted; | |
25 :influxMeasurement [ | |
26 :measurement "state"; | |
27 :predicate :buttonState; | |
28 :tag [:key "host"; :value "frontdoor"], | |
29 [:key "sensor"; :value "open"], | |
30 [:key "location"; :value "frontDoor"]];. | |
31 | |
32 | |
33 pin:GPIO11 :gpioNumber 11; :connectedTo sensor:motionFrontdoorInside . | |
34 sensor:motionFrontdoorInside a :MotionSensor; | |
35 :influxMeasurement [ | |
36 :measurement "presence"; | |
37 :predicate :sees; | |
38 :tag [:key "host"; :value "frontdoor"], | |
39 [:key "sensor"; :value "motion"], | |
40 [:key "location"; :value "frontdoorInside"]]; | |
41 :sees :entryway . | |
42 # 17 5V | |
43 # 23 GPIO11 through 100R, and signal->220R->LED->gnd | |
44 # 25 gnd | |
45 | |
46 pin:GPIO18 :gpioNumber 18; :connectedTo :frontdoorRgb . | |
47 :frontdoorRgb a :RgbPixels; | |
48 :colorOrder order:GRB; | |
49 :pixelGroup :frontdoorRgb . | |
50 | |
51 :frontdoorRgb | |
52 :startIndex 0; | |
53 :endIndex 2; | |
54 :src "rainbow.png"; | |
55 :x 199; | |
56 :y 0; | |
57 :height 3; | |
58 :interpolate :slide; | |
59 :rate 30 . # px/sec |