Mercurial > code > home > repos > homeauto
changeset 598:c7cdde15e8f0
rule updates
Ignore-this: e0e881f196303f76ee6f8a4a16dfad44
author | drewp@bigasterisk.com |
---|---|
date | Tue, 23 Jul 2019 10:15:33 -0700 |
parents | e1ee6661329a |
children | c5a20d0df4ed |
files | service/reasoning/rules.n3 |
diffstat | 1 files changed, 34 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/rules.n3 Sat Jul 13 19:58:50 2019 -0700 +++ b/service/reasoning/rules.n3 Tue Jul 23 10:15:33 2019 -0700 @@ -123,6 +123,18 @@ :starTrekLight :brightness 0.0 . } . +{ :frontBedPostSwitch1 :buttonState :press . } => { :loftDeskStrip :x 99.0 +. } . +{ :frontBedPostSwitch2 :buttonState :press . } => { :loftDeskStrip :x 15 +#84.0 +. } . +{ :frontBedPostSwitch3 :buttonState :press . } => { :loftDeskStrip :x 15 +#53.0 +. } . +{ :frontBedPostSwitch4 :buttonState :press . } => { :loftDeskStrip :x 15 +#30.0 +. } . +{ :frontBedPostSwitch5 :buttonState :press . } => { :loftDeskStrip :x 0.0 . } . #{ :change :down . } => { star:slideshow :postAction <http://brace:9049/effects/beep1> . } . #{ sensor:kitchenCounterButton1 :buttonState :press . } => { @@ -152,7 +164,7 @@ { sensor:motionBed :sees :motion . } => { :anim1 :playback :start . } . -{ sensor:motionFrontdoorInside :seesRecently30 :motion } => { +{ sensor:motionFrontDoorInside :seesRecently30 :motion } => { <http://bigasterisk.com/host/frontdoor/monitor> :powerState :on . } . @@ -177,13 +189,31 @@ } . {:frontDoorLock :state :locked .} => {:frontDoorOled :state :locked .}. -{:frontDoorLock :state :unlocked .} => {:frontDoorOled :state :unlockNews .}. +{:frontDoorLock :state :unlocked .} => { +:frontDoorOled :state :unlockNews . + :frontWindow :line2 "Unlocked" . +}. { - :frontDoorWindowRfid :reading ?card . - ?card :cardText ?text . + :cardReader :currentRead ?card . # mailslot reader +} => { + :frontWindow :line1 "Card found" . +}. + +{ +:cardReader :currentRead ?card . # mailslot reader +# :frontDoorWindowRfid :reading ?card . # glass reader +# ?card :cardText ?text . # id only ?card :owner ?agent . } => { + # :frontWindow :line2 "Access granted" . :frontDoorLock :putState :unlocked . :frontDoorLock :putAgent ?agent . } . + +{ + :frontDoorOpenSwitch :buttonState :pressed . +} => { + :frontWindow :line3 "Open" . +} . +