view service/reasoning/input/devices.n3 @ 1550:540942773028

rule updates Ignore-this: aed200759cd4678d35957590d497a76f darcs-hash:151d4196657acbb55249b16bba919bd10ac69f59
author drewp <drewp@bigasterisk.com>
date Thu, 13 Feb 2020 10:24:23 -0800
parents a02b1b08f24f
children 3c18ec6cb6ef
line wrap: on
line source

@prefix : <http://projects.bigasterisk.com/room/>.
@prefix device: <http://projects.bigasterisk.com/device/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix onewire: <http://bigasterisk.com/onewire/> .
@prefix bang: <http://bigasterisk.com/host/bang/> .
@prefix reasoning: <http://projects.bigasterisk.com/ns/reasoning/>.


:unlocked :putValue "1" .
:on :putValue "on" .
:off :putValue "off" .


#<http://bigasterisk.com/host/bang/monitor>      :putUrl "http://bang:9095/monitor"; :zeroValue "off" .
#<http://bigasterisk.com/host/dash/monitor>      :putUrl "http://dash:9095/monitor" .
<http://bigasterisk.com/host/frontdoor/monitor> :putUrl "http://frontdoor:9095/monitor"; :matchPredicate :powerState .
reasoning:defaultOutput reasoning:default [
  :subject <http://bigasterisk.com/host/frontdoor/monitor>;
  :predicate :powerState;
  :defaultObject "off"
] .

:storageCeilingLedCross :putUrl <http://bang:9059/output>; :putPredicate :brightness .
reasoning:defaultOutput reasoning:default [
  :subject :storageCeilingLedCross;
  :predicate :brightness;
  :defaultObject 0.0
] .

:storageCeilingLedLong :putUrl <http://bang:9059/output>; :putPredicate :brightness .
reasoning:defaultOutput reasoning:default [
  :subject :storageCeilingLedLong;
  :predicate :brightness;
  :defaultObject 0.0
] .

:garageOverhead :putUrl <http://garage.vpn-home.bigasterisk.com:9059/output>; :putPredicate :brightness .
reasoning:defaultOutput reasoning:default [
  :subject :garageOverhead;
  :predicate :brightness;
  :defaultObject 0.0
] .

:headboardWhite :putUrl <http://bed.vpn-home.bigasterisk.com:9059/output>; :putPredicate :brightness .
# no default, follows switch (which should be moved to edit /store)

:bedLedStrip :putUrl <http://bed.vpn-home.bigasterisk.com:9059/output>; :putPredicate :color .
reasoning:defaultOutput reasoning:default [
  :subject :bedLedStrip;
  :predicate :color;
  :defaultObject "#000000"
] .

:starTrekLight :putUrl <http://frontbed:9059/output>; :putPredicate :brightness .

:kitchenLight :putUrl <http://bang:10008/output>; :putPredicate :brightness .
# no default, follows switch

:kitchenCounterLight :putUrl <http://bang:10008/output>; :putPredicate :brightness .
# no default, follows switch

:changingWhite :putUrl <http://changing:9059/output>; :putPredicate :brightness .
reasoning:defaultOutput reasoning:default [
  :subject :changingWhite;
  :predicate :brightness;
  :defaultObject 0.0
] .

:changingCamPost a :OneShotPost; :subject :changingCam; :predicate :grab .
bang: a :OneShotPost; :subject bang:; :predicate :postAction .

:livingRoomLamp1 :putUrl <http://living:9059/output>; :putPredicate :brightness .
# no default, follows switch

:loftDeskStrip :putUrl <http://frontbed:9059/output>; :putPredicate :x .
# no default, follows switch

:frontDoorLock
  :matchPredicate :putState;
  :putUrl <http://bang:10011/output>;
  :refreshPutValue "2s";
  :putPredicate :state .
reasoning:defaultOutput reasoning:default [
  :subject :frontDoorLock;
  :predicate :putState;
  :defaultObject :locked
] .

:frontDoorOled :putUrl <http://frontdoor:10013/output>; :putPredicate :state .
:frontWindow :putPredicate :line1, :line2, :line3, :line4; :putUrl <http://bang:10008/output> .