changeset 1286:06e092390911

door lock rules Ignore-this: 182c5bf72e51479c94f03e4bb8deeb2a darcs-hash:b946c1911c1f814529c34e845957eadf5578dd4f
author drewp <drewp@bigasterisk.com>
date Sun, 21 Apr 2019 00:04:32 -0700
parents 47f309d8ba94
children 5f522c2d18bf
files service/reasoning/rules.n3
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/rules.n3	Sun Apr 21 00:00:27 2019 -0700
+++ b/service/reasoning/rules.n3	Sun Apr 21 00:04:32 2019 -0700
@@ -226,3 +226,21 @@
 #star:slideshow :postAction <http://dash:9049/effects/question> .
 bang: :postAction <http://10.2.0.62/rpc/motor> .
 } .
+
+{ :frontDoorLockRequest :state :unlocked .
+} => {
+  :frontDoorLock :putState :unlocked .
+  :frontDoorLock :putAgent :someStateRequest .
+} .
+
+{:frontDoorLock :state :locked .} => {:frontDoorOled :state :locked .}.
+{:frontDoorLock :state :unlocked .} => {:frontDoorOled :state :unlockNews .}.
+
+{
+  :frontDoorWindowRfid :reading ?card .
+  ?card :cardText ?text .
+  ?card :owner ?agent .
+} => {
+  :frontDoorLock :putState :unlocked .
+  :frontDoorLock :putAgent ?agent .
+} .