Mercurial > code > home > repos > homeauto
view service/piNode/config/frontdoor.n3 @ 1681:9d074317e16a
checkpoint service/piNode
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 23:04:36 -0700 |
parents | 32ecc365813c |
children |
line wrap: on
line source
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix : <http://projects.bigasterisk.com/room/> . @prefix order: <http://projects.bigasterisk.com/room/ledColorOrder/> . @prefix ha: <http://bigasterisk.com/homeauto/> . @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . @prefix pin: <http://bigasterisk.com/homeauto/piFrontdoor/pin/> . # beware of frontdoor vs frontDoor # 26 gry cs # 18 grn dc # 19 blu sda oled # 23 vio scl # 3 org txd/sda rfid # 5 yel rxd/sda ha:piFrontdoor a :PiBoard; :hostname "frontdoor"; :onboardDevice ha:frontdoorPiTemp; :hasPin pin:GPIO4, # open pin:GPIO5, # pin:GPIO17, # pin:GPIO22, # pin:GPIO27, # pin:GPIO18 . # ha:frontdoorPiTemp a :OnboardTemperature; :influxMeasurement [ :measurement "temperatureF"; :predicate :temperatureF; :tag [:key "host"; :value "frontdoor"], [:key "location"; :value "frontdoorPi"]] . pin:GPIO22 :gpioNumber 22; :connectedTo :frontDoorScreenButton1 . :frontDoorScreenButton1 a :Pushbutton . pin:GPIO27 :gpioNumber 27; :connectedTo :frontDoorScreenButton2 . :frontDoorScreenButton2 a :Pushbutton . pin:GPIO17 :gpioNumber 17; :connectedTo :frontDoorScreenButton3 . :frontDoorScreenButton3 a :Pushbutton . pin:GPIO4 :gpioNumber 4; :connectedTo :frontDoorOpenSwitch . :frontDoorOpenSwitch a :Pushbutton; :style :inverted; :influxMeasurement [ :measurement "state"; :predicate :buttonState; :tag [:key "host"; :value "frontdoor"], [:key "sensor"; :value "open"], [:key "location"; :value "frontDoor"]];. pin:GPIO5 :gpioNumber 5; :connectedTo sensor:motionFrontDoorInside . sensor:motionFrontDoorInside a :MotionSensor; :influxMeasurement [ :measurement "presence"; :predicate :sees; :tag [:key "host"; :value "frontdoor"], [:key "sensor"; :value "motion"], [:key "location"; :value "frontdoorInside"]]; :sees :entryway . # 17 5V # 23 GPIO11 through 100R, and signal->220R->LED->gnd # 25 gnd pin:GPIO18 :gpioNumber 18; :connectedTo :frontDoorRgb . :frontDoorRgb a :RgbPixels_disabled_pending_pi4_support; :colorOrder order:GRB; :pixelGroup :frontDoorRgb . :frontDoorRgb :startIndex 0; :endIndex 2; :src "rainbow.png"; :x 199; :y 0; :height 3; :interpolate :slide; :rate 30 . # px/sec