<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/denon.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/denon.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/kodi.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/kodi.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/lib/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<workItem from="1615272627869" duration="1428000" />
<workItem from="1615664533256" duration="84000" />
<workItem from="1615664973136" duration="697000" />
- <workItem from="1615881847886" duration="1197000" />
- </task>
- <task id="LOCAL-00409" summary=".">
- <created>1606050006824</created>
- <option name="number" value="00409" />
- <option name="presentableId" value="LOCAL-00409" />
- <option name="project" value="LOCAL" />
- <updated>1606050006824</updated>
+ <workItem from="1615881847886" duration="1242000" />
+ <workItem from="1616096372227" duration="1452000" />
+ <workItem from="1616413943061" duration="808000" />
+ <workItem from="1616750847432" duration="1134000" />
</task>
<task id="LOCAL-00410" summary=".">
<created>1606074001062</created>
<option name="project" value="LOCAL" />
<updated>1615881926506</updated>
</task>
- <option name="localTasksCounter" value="458" />
+ <task id="LOCAL-00458" summary=".">
+ <created>1615883286918</created>
+ <option name="number" value="00458" />
+ <option name="presentableId" value="LOCAL-00458" />
+ <option name="project" value="LOCAL" />
+ <updated>1615883286918</updated>
+ </task>
+ <option name="localTasksCounter" value="459" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
usleep(1000000 * 0.5);
}
-// $volumes = ['Media Player' => 60, 'HEOS Music' => 50, 'CD' => 30, 'AUX' => 26];
-// if (isset($volumes[$input])) {
-// denonAVRVolume($volumes[$input], '');
-// usleep(1000000 * 0.5);
-// }
+ $volumes = ['Media Player' => 60, 'HEOS Music' => 50, 'CD' => 30, 'AUX' => 26];
+ if (isset($volumes[$input])) {
+ denonAVRVolume($volumes[$input], '');
+ usleep(1000000 * 0.5);
+ }
//denonAVRSetSpeakerPreset(1);
}
<?php
function getKodiDBConnection()
{
- return mysqli_connect('localhost', "kodi", "atacama", "MyVideos116");
+ return mysqli_connect('localhost', "kodi", "atacama", "MyVideos119");
}
function kodiSyncPlayedStatus()
['type' => 'function', 'function' => 'chemineeOff', 'args' => ['salon']],
],
'salon/media/off' => [
- ['type' => 'function', 'function' => 'off','args'=> ['salon']],
+ ['type' => 'function', 'function' => 'off', 'args' => ['salon']],
],
'salon/media/play' => [
'bureau/base/off' => [
['type' => 'function', 'function' => 'bureauAuto', 'args' => [false]],
['type' => 'state', 'key' => 'bureau_gradient', 'value' => 'off'],
+ ['type' => 'state', 'key' => 'bureau_gradient', 'value' => 'off'],
['type' => 'scene', 'scene' => 'bureau/sleeppc'],
],
'bureau/off' => [
['type' => 'scene', 'scene' => 'bureau/base/off'],
['type' => 'hue', 'group' => $bureau, 'scene' => array('on' => false, 'brightness' => 0)],
- ['type' => 'domoticz', 'scene' => 41, 'command' => false, 'priority' => true],
-
+ ['type' => 'domoticz', 'scene' => 42, 'command' => false, 'priority' => true],
],
'bureau/sound/on' => [
['type' => 'domoticz', 'device' => 24, 'switchtype' => 'scene', 'command' => true, 'priority' => true],
'home/off' => [
['type' => 'scene', 'scene' => 'home/hueoff'],
['type' => 'ecomode', 'mode' => '2'],
- ['type' => 'scene', 'scene' => 'cuisine/off'],
+ //['type' => 'scene', 'scene' => 'cuisine/off'],
['type' => 'scene', 'scene' => 'salon/off'],
['type' => 'scene', 'scene' => 'cour/off'],
['type' => 'scene', 'scene' => 'bureau/off'],
{
if ($timeout === 'auto') {
$d = time() - getState('lastVMCOn');
- if ($d <= 60) {
- $timeout = 0;
- } else if ($d > 60 && $d <= 120) {
- $timeout = 60;
+ if ($d <= 120) {
+ $timeout = 600;
} else if ($d > 120 && $d <= 300) {
- $timeout = 300;
+ $timeout = 900;
} else {
- $timeout = 600;
+ $timeout = 1200;
}
}
$t = time() + $timeout;