Mercurial > code > home > repos > homeauto
changeset 483:a8823c7aab58
door lock rules
Ignore-this: 182c5bf72e51479c94f03e4bb8deeb2a
author | drewp@bigasterisk.com |
---|---|
date | Sun, 21 Apr 2019 00:04:32 -0700 |
parents | b5abd4fc65a4 |
children | 892937212a04 |
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 . +} .