From: Vincent Date: Sun, 8 Mar 2020 17:50:50 +0000 (+0100) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1b25f8d1ae40f1b6dc902d299c23b6ba0881a934;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c09de2f..adc8bbe 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,8 +3,8 @@ - - + + @@ -1217,12 +1217,12 @@ - + - + @@ -1242,12 +1242,12 @@ - + - + diff --git a/scripts/domoticz_device_event.php b/scripts/domoticz_device_event.php index 589a8aa..6da91ad 100644 --- a/scripts/domoticz_device_event.php +++ b/scripts/domoticz_device_event.php @@ -49,5 +49,7 @@ if ($_GET['device'] == 480) { default: break; } +}else if($_GET['device']==1451){ + domoticzSwitch(1450); } echo '1'; \ No newline at end of file diff --git a/scripts/lib/scenes.php b/scripts/lib/scenes.php index 0b8467b..2d95a24 100644 --- a/scripts/lib/scenes.php +++ b/scripts/lib/scenes.php @@ -42,12 +42,6 @@ $scenes = [ 'chambre/deshumidificateur/off' => [ ['type' => 'domoticz', 'device' => '1062', 'command' => false], ], - 'chambre/raspberry/on' => [ - ['type' => 'insteon', 'command' => '0?1138=I=0=0'], - ], - 'chambre/raspberry/off' => [ - ['type' => 'insteon', 'command' => '0?1338=I=0=0'], - ], 'chambre/auto' => [ ['type' => 'nightmode', 'mode' => '0'], ['type' => 'function', 'function' => 'chambreAuto', 'args' => [true]], @@ -554,7 +548,6 @@ $scenes = [ ], 'ecomode/basic' => [ ['type' => 'scene', 'scene' => 'sdb/ampli/off'], - ['type' => 'scene', 'scene' => 'chambre/raspberry/off'], ['type' => 'domoticz', 'device' => '1', 'switchtype' => 'scene', 'command' => false], ], 'ecomode/super' => [ @@ -570,7 +563,6 @@ $scenes = [ ], 'ecomode/off' => [ ['type' => 'scene', 'scene' => 'ecomode/notsuper'], - ['type' => 'scene', 'scene' => 'chambre/raspberry/on', 'when' => ['night' => 0]], ['type' => 'domoticz', 'device' => '1', 'switchtype' => 'scene', 'command' => true, 'priority' => false], ], ]; @@ -725,18 +717,20 @@ function planetarium($on) function checkPlanetarium($periodicOffCheck = true) { + $device = 1452; + $on = getState('planetarium') == '1'; if ($on) { if ($periodicOffCheck) { $min = intval(date('i')); if ($min % 30 == 0) { - insteonCommand('3?026221A6DE0F1300=I=3'); + domoticzSwitch($device, false); sleep(5); } } - insteonCommand('3?026221A6DE0F11FF=I=3'); + domoticzSwitch($device, true); } else { - insteonCommand('3?026221A6DE0F1300=I=3'); + domoticzSwitch($device, false); } }