From 32f0d7bc551894f21cc27d2d00baa1a69f894c27 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 27 Apr 2018 23:02:33 +0200 Subject: [PATCH 1/2] MotionAllOff: Fix operator bug --- MotionAllOff/all-off.rule.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotionAllOff/all-off.rule.json b/MotionAllOff/all-off.rule.json index 3650665..d738a3f 100644 --- a/MotionAllOff/all-off.rule.json +++ b/MotionAllOff/all-off.rule.json @@ -8,7 +8,7 @@ }, { "address": "/sensors/MOTION/state/lastupdated", - "operator": "stable", + "operator": "ddx", "value": "PT02:00:00" } ], From 3e6327426136eb9cc6b6aec5a1ed6af5e6e02965 Mon Sep 17 00:00:00 2001 From: Adrian Date: Sat, 28 Apr 2018 00:25:37 +0200 Subject: [PATCH 2/2] MotionIntelligent: Add transition times --- MotionIntelligent/off.rule.json | 3 ++- MotionIntelligent/on-bright.rule.json | 3 ++- MotionIntelligent/on-dim.rule.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MotionIntelligent/off.rule.json b/MotionIntelligent/off.rule.json index 02567fe..4ef3379 100644 --- a/MotionIntelligent/off.rule.json +++ b/MotionIntelligent/off.rule.json @@ -22,7 +22,8 @@ "address": "/groups/GROUP/action", "method": "PUT", "body": { - "on": false + "on": false, + "transitiontime": 200 } }, { diff --git a/MotionIntelligent/on-bright.rule.json b/MotionIntelligent/on-bright.rule.json index 8630bdc..bace129 100644 --- a/MotionIntelligent/on-bright.rule.json +++ b/MotionIntelligent/on-bright.rule.json @@ -33,7 +33,8 @@ "body": { "on": true, "bri": 240, - "ct": 357 + "ct": 357, + "transitiontime": 2 } }, { diff --git a/MotionIntelligent/on-dim.rule.json b/MotionIntelligent/on-dim.rule.json index 840a0fa..1911d0e 100644 --- a/MotionIntelligent/on-dim.rule.json +++ b/MotionIntelligent/on-dim.rule.json @@ -33,7 +33,8 @@ "body": { "on": true, "bri": 13, - "ct": 1000 + "ct": 1000, + "transitiontime": 50 } }, {