view service/piNode/config/kitchen.n3 @ 1393:f012cb2e3e7a

new crib anim Ignore-this: 7bc4d81fcaad189d52852aa7b6f5d43f darcs-hash:b3958ade19cbcbee9edc38176fdc2083daaddaa5
author drewp <drewp@bigasterisk.com>
date Sat, 06 Jul 2019 00:48:56 -0700
parents d9abb93515c2
children 9d074317e16a
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/piKitchen/pin/> .
@prefix ow: <http://bigasterisk.com/homeauto/piKitchen/oneWire/> .

ha:piKitchen a :PiBoard;
  :hostname "kitchen";
  :onboardDevice ha:kitchenPiTemp;
  :hasPin
    pin:GPIO4,
    pin:GPIO17,
    pin:GPIO14
    .

# pin 18 IR in
    
ha:kitchenPiTemp a :OnboardTemperature;
   :influxMeasurement [
    :measurement "temperatureF";
    :predicate :temperatureF;
    :tag [:key "host"; :value "kitchen"], [:key "location"; :value "kitchenPi"]] .

pin:GPIO4 :gpioNumber 4; :connectedTo sensor:tempHumidKitchen .
sensor:tempHumidKitchen a :TempHumidSensor;
  :sees houseLoc:kitchenCounter;
  :influxMeasurement [
    :measurement "temperatureF";
    :predicate :temperatureF;
    :pointsAtLeastEvery 10;
    :tag [:key "host"; :value "kitchen"], [:key "location"; :value "kitchenCounter"]], [
    :measurement "humidity";
    :predicate :humidity;
    :tag [:key "host"; :value "kitchen"], [:key "location"; :value "kitchenCounter"]].

pin:GPIO17 :gpioNumber 17; :connectedTo ow: .
ow: a :OneWire; :connectedTo ow:dev-000003a5a94c .
ow:dev-000003a5a94c a :TemperatureSensor;
  :position houseLoc:kitchenCounter;
  :influxMeasurement [
    :measurement "temperatureF";
    :predicate :temperatureF;
    :tag [:key "host"; :value "kitchen"], [:key "location"; :value "kitchenCounter_ds_test"]] .

pin:GPIO14 :gpioNumber 14; :connectedTo sensor:kitchenCounterButton1 .
sensor:kitchenCounterButton1 a :Pushbutton .