# HG changeset patch # User drewp@bigasterisk.com # Date 1460617826 25200 # Node ID 570b0e73d2bc795122ea2990b7144aad58dba99c # Parent 6fa5ce7a871882e828ace2e447f73d1e27f2f9ce rules updates Ignore-this: e8f0c7c412d0e685296139d5ccd19021 diff -r 6fa5ce7a8718 -r 570b0e73d2bc service/reasoning/actions.py --- a/service/reasoning/actions.py Sat Apr 02 23:34:44 2016 -0700 +++ b/service/reasoning/actions.py Thu Apr 14 00:10:26 2016 -0700 @@ -35,12 +35,14 @@ #(DEV.theaterDoorLock, ROOM.state), #(URIRef('http://bigasterisk.com/host/bang/monitor'), ROOM.powerState), (URIRef('http://bigasterisk.com/host/dash/monitor'), ROOM.powerState), - (URIRef('http://projects.bigasterisk.com/room/storageCeilingLedLong'), ROOM.brightness), - (URIRef('http://projects.bigasterisk.com/room/storageCeilingLedCross'), ROOM.brightness), - (URIRef('http://projects.bigasterisk.com/room/headboardWhite'), ROOM.brightness), - (URIRef('http://projects.bigasterisk.com/room/changingWhite'), ROOM.brightness), - (URIRef('http://projects.bigasterisk.com/room/starTrekLight'), ROOM.brightness), - (URIRef('http://projects.bigasterisk.com/room/bedLedStrip'), ROOM.color), + (ROOM['storageCeilingLedLong'], ROOM.brightness), + (ROOM['storageCeilingLedCross'], ROOM.brightness), + (ROOM['headboardWhite'], ROOM.brightness), + (ROOM['changingWhite'], ROOM.brightness), + (ROOM['starTrekLight'], ROOM.brightness), + (ROOM['livingRoomLamp1'], ROOM.brightness), + (ROOM['livingRoomLamp2'], ROOM.brightness), + (ROOM['bedLedStrip'], ROOM.color), ]: url = deviceGraph.value(dev, ROOM.putUrl) diff -r 6fa5ce7a8718 -r 570b0e73d2bc service/reasoning/input/startup.n3 --- a/service/reasoning/input/startup.n3 Sat Apr 02 23:34:44 2016 -0700 +++ b/service/reasoning/input/startup.n3 Thu Apr 14 00:10:26 2016 -0700 @@ -6,7 +6,7 @@ is :source of :reasoning; rdfs:label "kitchen pi" . is :source of :reasoning; rdfs:label "living room pi" . is :source of :reasoning; rdfs:label "slash arduino" . - is :source of :reasoning; rdfs:label "bed pi" . + is :source of :reasoning; rdfs:label "bed pi" . is :source of :reasoning; rdfs:label "brace arduino" . is :source of :reasoning; rdfs:label "changing pi" . diff -r 6fa5ce7a8718 -r 570b0e73d2bc service/reasoning/rules.n3 --- a/service/reasoning/rules.n3 Sat Apr 02 23:34:44 2016 -0700 +++ b/service/reasoning/rules.n3 Thu Apr 14 00:10:26 2016 -0700 @@ -157,6 +157,11 @@ :changingWhite :brightness 0.2 . } . -{ :sees :motionStart } => { +{ sensor:motionChanging :sees :motionStart } => { :changingCam :grab . - } . \ No newline at end of file + } . + +{ :bookSwitch :buttonState :press . :livingRoomLamp1 :brightness 0.0 . } => { + :livingRoomLamp1 :brightness 1.0 . :livingRoomLamp2 :brightness 1.0 } . +{ :bookSwitch :buttonState :press . :livingRoomLamp1 :brightness 1.0 . } => { + :livingRoomLamp1 :brightness 0.0 . :livingRoomLamp2 :brightness 0.0 } .