changeset 1083:c5b61f943061

try a 2-mode rule for redButton, but this can't work as-is Ignore-this: 391356b778a41a28bb99097af42d65a4 darcs-hash:aa3db688cfa98036b7527a92059ba9cc4703c636
author drewp <drewp@bigasterisk.com>
date Fri, 06 May 2016 17:31:20 -0700
parents 4bbc4fea343c
children 3a9f20f881d1
files service/reasoning/rules.n3
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/rules.n3	Fri May 06 17:30:33 2016 -0700
+++ b/service/reasoning/rules.n3	Fri May 06 17:31:20 2016 -0700
@@ -140,8 +140,12 @@
   :headboardWhite :brightness 0.0 .
 } .
 
-{ bed:redButton :buttonState :press } => {
-  :headboardWhite :brightness 0.04 .
+{ bed:redButton :buttonState :press . :headboardWhite :brightness 0.0 . } => {
+  :headboardWhite :brightness 0.2 .
+} .
+
+{ bed:redButton :buttonState :press . :headboardWhite :brightness 0.2 . } => {
+  :headboardWhite :brightness 1 .
 } .
 
 @prefix sensor:   <http://bigasterisk.com/homeauto/sensor/> .