<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/freeboxchannel.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/freeboxchannel.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="1599118677122" duration="2877000" />
<workItem from="1599210105610" duration="1219000" />
<workItem from="1599397263288" duration="714000" />
- <workItem from="1599417261812" duration="294000" />
- </task>
- <task id="LOCAL-00293" summary=".">
- <created>1581414712831</created>
- <option name="number" value="00293" />
- <option name="presentableId" value="LOCAL-00293" />
- <option name="project" value="LOCAL" />
- <updated>1581414712831</updated>
+ <workItem from="1599417261812" duration="501000" />
+ <workItem from="1599417922867" duration="2676000" />
</task>
<task id="LOCAL-00294" summary=".">
<created>1581434421749</created>
<option name="project" value="LOCAL" />
<updated>1599316711212</updated>
</task>
- <option name="localTasksCounter" value="342" />
+ <task id="LOCAL-00342" summary=".">
+ <created>1599417770384</created>
+ <option name="number" value="00342" />
+ <option name="presentableId" value="LOCAL-00342" />
+ <option name="project" value="LOCAL" />
+ <updated>1599417770385</updated>
+ </task>
+ <option name="localTasksCounter" value="343" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="760" y="94" key="#Project_Structure/0.0.2560.1040@0.0.2560.1040" timestamp="1592377765650" />
- <state x="935" y="70" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1599316661177">
+ <state x="935" y="70" width="1170" height="972" key="CommitChangelistDialog2" timestamp="1599417756076">
<screen x="0" y="0" width="2560" height="1040" />
</state>
<state x="701" y="75" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1598265694837" />
- <state x="935" y="70" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1599316661177" />
+ <state x="935" y="70" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1599417756076" />
<state x="1060" y="275" key="FileChooserDialogImpl" timestamp="1590912263817">
<screen x="0" y="0" width="2560" height="1040" />
</state>
],
'sdb/off' => [
['type' => 'state', 'key' => 'sdb', 'value' => 0],
- ['type' => 'hue', 'group' => $sdb, 'scene' => ['on' => false]],
+ ['type' => 'domoticz', 'scene' => 20, 'command' => false, 'priority' => true],
['type' => 'function', 'function' => 'stopSqueezeboxPlayer', 'args' => [$squeezeboxPlayers['Salle de bains'], false]],
],
'sdb/on' => [
['type' => 'state', 'key' => 'sdb', 'value' => 1],
- ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']],
- ['type' => 'hue', 'group' => $sdb, 'scene' => 'LmwN0cs0qsep2sA'],
+ ['type' => 'domoticz', 'scene' => 20, 'command' => true, 'priority' => true],
],
'sdb/morning' => [
['type' => 'state', 'key' => 'sdb', 'value' => 1],
],
'sdb/nuit' => [
['type' => 'state', 'key' => 'sdb', 'value' => 1],
- ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'none']],
- ['type' => 'hue', 'group' => $sdb, 'scene' => 'S59ayiWOy11L2tR'],
+ ['type' => 'domoticz', 'scene' => 21, 'command' => true, 'priority' => true],
],
'sdb/spa' => [
['type' => 'state', 'key' => 'sdb', 'value' => 1],
- ['type' => 'hue', 'group' => $sdb, 'scene' => ['effect' => 'colorloop', 'on' => true, 'brightness' => 128]],
+ ['type' => 'domoticz', 'scene' => 22, 'command' => true, 'priority' => true],
['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Rivière', $squeezeboxPlayers['Salle de bains'], 65]],
],
'salon/freebox/on' => [
['type' => 'hue', 'group' => $cour, 'scene' => 'WVanIpWUWjkBjsS'],
],
'cour/off' => [
- // ['type' => 'domoticz', 'device' => '678', 'command' => false],
['type' => 'hue', 'group' => $cour, 'scene' => ['on' => false]],
['type' => 'function', 'function' => 'courAuto', 'args' => [false]],
],
function updateChambreAuto($transitionTime = null)
{
$hours = intval(date('H'));
- if ($hours <= 1) {
- $scene = 'tropical';
- } else if ($hours <= 7) {
- $scene = 'tonic';
- } else if ($hours <= 11) {
+ if ($hours <= 4) {
+ $scene = 'party';
+ } else if ($hours <= 9) {
$scene = 'boreal';
+ } else if ($hours <= 11) {
+ $scene = 'tonic';
} else if ($hours <= 14) {
$scene = 'flowers';
} else if ($hours <= 18) {
$scene = 'beach';
- } else {
+ } else if ($hours <= 22) {
$scene = 'tropical';
+ } else {
+ $scene = 'party';
}
execScene('chambre/' . $scene, false, $transitionTime);
}
function updateBureauAuto()
{
$hours = intval(date('H'));
- if ($hours <= 3) {
+ if ($hours <= 4) {
$scene = 'outrun';
- } else if ($hours <= 7) {
- $scene = 'tonic';
- } else if ($hours <= 11) {
+ } else if ($hours <= 9) {
$scene = 'boreal';
+ } else if ($hours <= 11) {
+ $scene = 'tonic';
} else if ($hours <= 14) {
$scene = 'flowers';
} else if ($hours <= 18) {