# HG changeset patch # User drewp@bigasterisk.com # Date 1555830272 25200 # Node ID a8823c7aab581ca5b738cc33538887215adaa300 # Parent b5abd4fc65a48f1879619a785f452fe8fe4ec7bb door lock rules Ignore-this: 182c5bf72e51479c94f03e4bb8deeb2a diff -r b5abd4fc65a4 -r a8823c7aab58 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 . +} .