<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/cron/cron.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/cron/cron.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/domoticz_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/domoticz_device_event.php" 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/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/lib/shield.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/shield.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/servers/logcat.php" beforeDir="false" afterPath="$PROJECT_DIR$/servers/logcat.php" afterDir="false" />
</list>
<workItem from="1640605282180" duration="3543000" />
<workItem from="1640618757588" duration="59000" />
<workItem from="1640778900839" duration="879000" />
- <workItem from="1640787196827" duration="1027000" />
- </task>
- <task id="LOCAL-00451" summary=".">
- <created>1613067752007</created>
- <option name="number" value="00451" />
- <option name="presentableId" value="LOCAL-00451" />
- <option name="project" value="LOCAL" />
- <updated>1613067752007</updated>
+ <workItem from="1640787196827" duration="2522000" />
+ <workItem from="1641573994164" duration="2000" />
+ <workItem from="1641574032847" duration="1662000" />
</task>
<task id="LOCAL-00452" summary=".">
<created>1613738341286</created>
<option name="project" value="LOCAL" />
<updated>1640615601707</updated>
</task>
- <option name="localTasksCounter" value="500" />
+ <task id="LOCAL-00500" summary=".">
+ <created>1640788248689</created>
+ <option name="number" value="00500" />
+ <option name="presentableId" value="LOCAL-00500" />
+ <option name="project" value="LOCAL" />
+ <updated>1640788248690</updated>
+ </task>
+ <option name="localTasksCounter" value="501" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
'salon/on' => [
['type' => 'domoticz', 'scene' => 45, 'command' => true, 'priority' => true],
['type' => 'hue', 'group' => $salon, 'scene' => 'Gte8sl76rzAD1wO', 'repeat' => 2],
- //['type' => 'insteon', 'command' => '0?113=I=0=0'],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'on'],
['type' => 'scene', 'scene' => 'cuisine/on', 'delay' => 1],
['type' => 'scene', 'scene' => 'salon/cheminee', 'delay' => 1],
],
'salon/off' => [
['type' => 'domoticz', 'scene' => 45, 'command' => false, 'priority' => true],
['type' => 'hue', 'group' => $salon, 'scene' => array('on' => false)],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'off'],
//['type' => 'insteon', 'command' => '0?133=I=0=0'],
['type' => 'function', 'function' => 'chemineeOff', 'args' => ['salon']],
['type' => 'hue', 'group' => $salon, 'scene' => array('on' => false)],
['type' => 'hue', 'group' => $salon, 'scene' => 'xpCjXtV3u7O1kYu', 'repeat' => 2],
['type' => 'scene', 'scene' => 'salon/cinemabase'],
['type' => 'domoticz', 'scene' => 46, 'command' => true, 'priority' => true],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'cinema'],
['type' => 'scene', 'scene' => 'cuisine/tamise', 'repeat' => 2],
],
'salon/cinema' => [
['type' => 'domoticz', 'scene' => 47, 'command' => true, 'priority' => true],
['type' => 'hue', 'group' => $salon, 'scene' => 'AsU9eOyGsjEyz35', 'repeat' => 2],
['type' => 'scene', 'scene' => 'salon/cinemabase'],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'cinema'],
['type' => 'domoticz', 'scene' => 47, 'command' => true, 'priority' => true],
['type' => 'scene', 'scene' => 'cuisine/tamise', 'repeat' => 2],
],
['type' => 'ecomode', 'mode' => '0'],
['type' => 'domoticz', 'scene' => 48, 'command' => true, 'priority' => true],
['type' => 'hue', 'group' => $salon, 'scene' => 'RbjnIcLtcDuHbfU', 'repeat' => 2],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'tamise'],
// ['type' => 'insteon', 'command' => '0?1130=I=0=0'],
['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 0.8]],
- ['type' => 'scene', 'scene' => 'cuisine/tamise', 'repeat' => 2],
+ ['type' => 'scene', 'scene' => 'cuisine/on', 'repeat' => 2],
],
'salon/lecturenocture' => [
['type' => 'domoticz', 'scene' => 49, 'command' => true, 'priority' => true],
['type' => 'hue', 'group' => $salon, 'scene' => 'HZiYyM6hMUMkmiY'],
+ ['type' => 'state', 'key' => 'salon', 'value' => 'tamise'],
// ['type' => 'insteon', 'command' => '0?1113=I=0=0'],
['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 0.25]],
- ['type' => 'scene', 'scene' => 'cuisine/tamise', 'repeat' => 2],
+ ['type' => 'scene', 'scene' => 'cuisine/on', 'repeat' => 2],
],
'salon/cheminee' => [
['type' => 'function', 'function' => 'chemineeOn', 'args' => ['salon', 'fire', 1]],
execScene('bureau/' . $scene);
}
+function updateCuisine(){
+ $salon=getState('salon','off');
+ if($salon==='on' || $salon==='off' || $salon==='tamise'){
+ execScene('cuisine/on');
+ }else if($salon=='cinema'){
+ execScene('cuisine/tamise');
+ }
+}
+
function updateCourAuto()
{
if (isDay()) {
set_time_limit(0);
ignore_user_abort(true);
-$cases = [
- 'Going to sleep due to power button' => function () use ($device) {
- echo 'sleep ' . $device . "\n";
- off($device);
- },
- 'Waking up from sleep' => function () use ($device) {
- echo 'wakeup ' . $device . "\n";
- shieldRunActivity(null, true);
- },
- 'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) {
- echo 'volume-down ' . $device . "\n";
- volume(config('VOLUME_STEP'), '-');
- },
- 'WindowManager: handleComboKeys keyCode: 24, keyAction: 1' => function () use ($device) {
- echo 'volume-up ' . $device . "\n";
- volume(config('VOLUME_STEP'), '+');
- }
-];
-
while (true) {
+ $cases = [
+ 'Going to sleep due to power button' => function () use ($device) {
+ echo 'sleep ' . $device . "\n";
+ off($device);
+ },
+ 'Waking up from sleep' => function () use ($device) {
+ echo 'wakeup ' . $device . "\n";
+ shieldRunActivity(null, true);
+ },
+ 'WindowManager: handleComboKeys keyCode: 25, keyAction: 1' => function () use ($device) {
+ echo 'volume-down ' . $device . "\n";
+ volume(config('VOLUME_STEP'), '-');
+ },
+ 'WindowManager: handleComboKeys keyCode: 24, keyAction: 1' => function () use ($device) {
+ echo 'volume-up ' . $device . "\n";
+ volume(config('VOLUME_STEP'), '+');
+ }
+ ];
+
echo 'Run home server logcat ' . $device . "\n";
shieldLogcat($cases, $device);
echo 'Logcat ended' . "\n----\n";