# HG changeset patch # User drewp # Date 1555830272 25200 # Node ID 06e092390911ccff85946ba5dd32ac42088c4931 # Parent 47f309d8ba94b205196bfd8e514d7f9e21d6fcc8 door lock rules Ignore-this: 182c5bf72e51479c94f03e4bb8deeb2a darcs-hash:b946c1911c1f814529c34e845957eadf5578dd4f diff -r 47f309d8ba94 -r 06e092390911 service/reasoning/rules.n3 --- 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 . bang: :postAction . } . + +{ :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 . +} .