diff service/reasoning/rules.n3 @ 278:4b0282900fd3

try a 2-mode rule for redButton, but this can't work as-is Ignore-this: 391356b778a41a28bb99097af42d65a4
author drewp@bigasterisk.com
date Fri, 06 May 2016 17:31:20 -0700
parents 960a587e51d7
children 0b0fb67b0b3a
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/> .