346
|
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 houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
|
|
6 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> .
|
|
7
|
|
8 @prefix pin: <http://bigasterisk.com/homeauto/piBed/pin/> .
|
|
9 @prefix ow: <http://bigasterisk.com/homeauto/piBed/oneWire/> .
|
|
10
|
1681
|
11 # on cable from buttons, black is gnd, other 2 are the buttons.
|
|
12
|
|
13
|
346
|
14 ha:piBed a :PiBoard;
|
|
15 :hostname "bed";
|
|
16 :onboardDevice ha:bedroomPiTemp;
|
|
17 :hasPin
|
|
18 pin:GPIO2,
|
|
19 pin:GPIO3,
|
|
20 pin:GPIO4,
|
|
21 pin:GPIO17,
|
|
22 pin:GPIO27,
|
|
23 pin:GPIO18,
|
|
24 pin:GPIO23
|
|
25 .
|
|
26
|
|
27 ha:bedPiTemp a :OnboardTemperature;
|
|
28 :influxMeasurement [
|
|
29 :measurement "temperatureF";
|
|
30 :predicate :temperatureF;
|
|
31 :tag [:key "host"; :value "bed"], [:key "location"; :value "bedPi"]] .
|
|
32
|
|
33 pin:GPIO2 :gpioNumber 2 .
|
|
34 pin:GPIO3 :gpioNumber 3 .
|
|
35 pin:GPIO4 :gpioNumber 4 .
|
|
36 pin:GPIO17 :gpioNumber 17 .
|
|
37 pin:GPIO27 :gpioNumber 27 .
|
|
38 pin:GPIO18 :gpioNumber 18 .
|
|
39 pin:GPIO23 :gpioNumber 23 .
|
|
40
|
|
41 pin:GPIO18 :connectedTo sensor:bedGreenButton .
|
|
42 pin:GPIO23 :connectedTo sensor:bedRedButton .
|
|
43 sensor:bedGreenButton a :Pushbutton .
|
|
44 sensor:bedRedButton a :Pushbutton .
|
|
45
|
|
46 pin:GPIO17 :connectedTo sensor:bedMotionBed .
|
|
47 sensor:bedMotionBed a :MotionSensor;
|
|
48 :influxMeasurement [
|
|
49 :measurement "presence";
|
|
50 :predicate :sees;
|
|
51 :tag [:key "host"; :value "bed"],
|
|
52 [:key "sensor"; :value "motion"],
|
|
53 [:key "location"; :value "bed"]];
|
|
54 :sees houseLoc:bed .
|
|
55
|
|
56 :bedLedStrip a :RgbStrip;
|
|
57 :redChannel pin:GPIO2;
|
|
58 :greenChannel pin:GPIO3;
|
|
59 :blueChannel pin:GPIO4 .
|
|
60
|
|
61 pin:GPIO27 :connectedTo :headboardWhite .
|
|
62 :headboardWhite a :LedOutput ; :gamma 2; :fade "yes" .
|
|
63
|
|
64 #pin:b29 :connectedTo ow: .
|
|
65 #ow: a :OneWire;
|
|
66 # :connectedTo ow:temperatureSensor .
|
|
67 #ow:temperatureSensor a :TemperatureSensor;
|
|
68 # :position :bed .
|