diff service/piNode/config/main.n3 @ 246:d4c5b0775b62

device and service configs Ignore-this: 8477635c654c66b171e85335212d3cd
author drewp@bigasterisk.com
date Tue, 02 Feb 2016 22:42:24 -0800
parents 4ebb5cc30002
children 88a9f78a7fa2
line wrap: on
line diff
--- a/service/piNode/config/main.n3	Tue Feb 02 22:41:42 2016 -0800
+++ b/service/piNode/config/main.n3	Tue Feb 02 22:42:24 2016 -0800
@@ -5,8 +5,8 @@
 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
 
 @prefix board2pin: <http://bigasterisk.com/homeauto/board2/pin/> .
-@prefix board2ow: <http://bigasterisk.com/homeauto/board2/oneWire/> .
-
+@prefix board2ow:  <http://bigasterisk.com/homeauto/board2/oneWire/> .
+@prefix bed:       <http://bigasterisk.com/homeauto/sensor/bed/> .
 ha:node2 a :PiBoard;
   :hostname "sticker";
   :onboardDevice ha:bedroomPiTemp;
@@ -15,7 +15,9 @@
     board2pin:GPIO3,
     board2pin:GPIO4,
     board2pin:GPIO17,
-    board2pin:GPIO27
+    board2pin:GPIO27,
+    board2pin:GPIO18,
+    board2pin:GPIO23 
     .
 
 ha:bedroomPiTemp a :OnboardTemperature .
@@ -25,6 +27,13 @@
 board2pin:GPIO4 :gpioNumber 4 .
 board2pin:GPIO17 :gpioNumber 17 .
 board2pin:GPIO27 :gpioNumber 27 .
+board2pin:GPIO18 :gpioNumber 18 .
+board2pin:GPIO23 :gpioNumber 23 .
+
+board2pin:GPIO18 :connectedTo bed:greenButton .
+board2pin:GPIO23 :connectedTo bed:redButton .
+bed:greenButton a :Pushbutton .
+bed:redButton a :Pushbutton .
 
 board2pin:GPIO17 :connectedTo sensor:motion1 .
 sensor:motion1 a :MotionSensor;