From 38e210cd7b826ae05b030fb6870f04ab65e39476 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 26 Jul 2020 20:06:12 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 26 +++++++++++++------------- scripts/lib/scenes.php | 12 +++++++----- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index b948887..4d88e79 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,6 @@ - @@ -1241,11 +1241,11 @@ - - + + - + diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 87c4d2b..e622c42 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -269,10 +269,10 @@ $scenes = [ // ['type' => 'insteon', 'command' => '3?02622014690F11FF=I=3'], // ], 'chambre/rideaux/open' => [ - ['type' => 'insteon', 'command' => '0?1126=I=0=0'], + ['type' => 'domoticz', 'device' => '1746', 'command' => false], ], 'chambre/rideaux/close' => [ - ['type' => 'insteon', 'command' => '0?1326=I=0=0'], + ['type' => 'domoticz', 'device' => '1746', 'command' => true], ], 'home/alert' => [ ['type' => 'hue', 'group' => $alert, 'scene' => ['alert' => 'lselect']], @@ -936,8 +936,8 @@ function updateChambreAuto($transitionTime = null) function updateBureauAuto() { $hours = intval(date('H')); - if ($hours <= 1) { - $scene = 'tropical'; + if ($hours <= 3) { + $scene = 'outrun'; } else if ($hours <= 7) { $scene = 'tonic'; } else if ($hours <= 11) { @@ -946,8 +946,10 @@ function updateBureauAuto() $scene = 'flowers'; } else if ($hours <= 18) { $scene = 'beach'; - } else { + } else if ($hours <= 22) { $scene = 'tropical'; + } else { + $scene = 'outrun'; } execScene('bureau/' . $scene); } -- 2.39.5