</component>
<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
+ <change beforePath="$PROJECT_DIR$/.docker/config/httpd/httpd.conf" beforeDir="false" afterPath="$PROJECT_DIR$/.docker/config/httpd/httpd.conf" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/homeassistant.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/homeassistant.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/homeassistant_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/homeassistant_device_event.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/weatherstation.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/weatherstation.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1688714739367" duration="177000" />
<workItem from="1688731476610" duration="5344000" />
<workItem from="1688739158435" duration="1157000" />
- <workItem from="1688750143650" duration="212000" />
+ <workItem from="1688750143650" duration="1624000" />
+ <workItem from="1688808953960" duration="594000" />
+ <workItem from="1688849303515" duration="1558000" />
+ <workItem from="1688897001591" duration="6567000" />
</task>
<task id="LOCAL-00502" summary=".">
<created>1641726946298</created>
<option name="project" value="LOCAL" />
<updated>1687259667913</updated>
</task>
- <option name="localTasksCounter" value="561" />
+ <option name="localTasksCounter" value="562" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
['type' => 'nightmode', 'mode' => '1'],
['type' => 'ecomode', 'mode' => '1'],
['type' => 'state', 'key' => 'chambre', 'value' => 0],
- ['type' => 'function', 'function' => 'chambreRideaux', 'args' => [false]],
+ ['type' => 'ha', 'device' => 'script.rideaux_chambre_ferme'],
//['type' => 'insteon', 'command' => '0?1131=I=0=0'],
['type' => 'function', 'function' => 'bedbrightness', 'args' => [$bedlowscreenbrightness]],
['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'],
['type' => 'state', 'key' => 'chambre', 'value' => 0],
//['type' => 'insteon', 'command' => '0?1332=I=0=0'], // Lustre et tableau off
['type' => 'function', 'function' => 'bedbrightness', 'args' => [$bedlowscreenbrightness]],
- ['type' => 'function', 'function' => 'chambreRideaux', 'args' => [false]],
+ ['type' => 'ha', 'device' => 'script.rideaux_chambre_ferme'],
['type' => 'scene', 'scene' => 'sdb/off'],
['type' => 'scene', 'scene' => 'chambre/planetarium/on'], // Planétarium on
['type' => 'scene', 'scene' => 'chambre/deshumidificateur/off'],
],
'chambre/rideaux/open' => [
- ['type' => 'function', 'function' => 'chambreRideaux'],
+ ['type' => 'ha', 'device' => 'script.rideaux_chambre_ouvre'],
],
'chambre/rideaux/close' => [
- ['type' => 'function', 'function' => 'chambreRideaux', 'args' => [false]],
+ ['type' => 'ha', 'device' => 'script.rideaux_chambre_ferme'],
],
'home/alert' => [
['type' => 'function', 'function' => 'alert',],
['type' => 'scene', 'scene' => 'bureau/auto'],
],
'bureau/screen/down' => [
- ['type' => 'domoticz', 'device' => '1', 'command' => 'Close', 'priority' => true],
+ ['type' => 'ha', 'device' => 'cover.office_screen', 'command' => 'close_cover'],
],
'bureau/screen/up' => [
- ['type' => 'domoticz', 'device' => '1', 'command' => 'Open', 'priority' => true],
+ ['type' => 'ha', 'device' => 'cover.office_screen', 'command' => 'open_cover'],
],
'bureau/rideaux/close' => [
- ['type' => 'domoticz', 'device' => '391', 'command' => 'Close', 'priority' => true],
+ ['type' => 'ha', 'device' => 'cover.office_curtain', 'command' => 'close_cover'],
],
'bureau/rideaux/open' => [
- ['type' => 'domoticz', 'device' => '391', 'command' => 'Open', 'priority' => true],
+ ['type' => 'ha', 'device' => 'cover.office_curtain', 'command' => 'open_cover'],
],
'bureau/rideaux/toggle' => [
- ['type' => 'domoticz', 'device' => '391', 'command' => 'Toggle', 'priority' => true],
+ ['type' => 'ha', 'device' => 'cover.office_curtain', 'command' => 'toggle'],
],
'insteon/off' => [
// ['type' => 'insteon', 'command' => '0?135=I=0=0'],
}
}
-function chambreRideaux($ouvre = true) {
- $device = 1756;
- $priority = true;
- // ['type' => 'domoticz', 'device' => '1756', 'command' => 'Group Off', 'priority' => 'sync'],
- if ($ouvre && getDomoticzDeviceStatus($device) === 'Off') {
- return;
- }
- $cmd = $ouvre ? 'Group Off' : 'Group On';
- domoticzSwitch($device, $cmd, 'light', $priority);
- if ($ouvre) {
- usleep(1000000 * 4.7);
- domoticzSwitch($device, $cmd, 'light', $priority);
- }
-}
-
function execScene($name, $fromUserAction = false, $transitionTime = null) {
global $scenes;
} else {
$scene = 'tamise';
}
- }else{
+ } else {
if ($hours <= 9) {
$scene = 'tamise';
- } else {
+ } else {
$scene = 'day';
}
}