<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/switchbot.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/switchbot.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/rooms.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/rooms.php" 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/lib/domoticz.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/domoticz.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.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" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<workItem from="1642848701157" duration="3435000" />
<workItem from="1642856038290" duration="9359000" />
<workItem from="1642939498777" duration="2862000" />
- <workItem from="1642946319444" duration="2408000" />
- </task>
- <task id="LOCAL-00466" summary=".">
- <created>1618341457184</created>
- <option name="number" value="00466" />
- <option name="presentableId" value="LOCAL-00466" />
- <option name="project" value="LOCAL" />
- <updated>1618341457184</updated>
+ <workItem from="1642946319444" duration="4176000" />
+ <workItem from="1642972278612" duration="818000" />
+ <workItem from="1643960128394" duration="25000" />
+ <workItem from="1643960576868" duration="95000" />
+ <workItem from="1643960682357" duration="593000" />
+ <workItem from="1644143547964" duration="594000" />
+ <workItem from="1644673539378" duration="1825000" />
+ <workItem from="1644683361342" duration="3044000" />
</task>
<task id="LOCAL-00467" summary=".">
<created>1618342660944</created>
<option name="project" value="LOCAL" />
<updated>1642950374766</updated>
</task>
- <option name="localTasksCounter" value="515" />
+ <task id="LOCAL-00515" summary=".">
+ <created>1642950622190</created>
+ <option name="number" value="00515" />
+ <option name="presentableId" value="LOCAL-00515" />
+ <option name="project" value="LOCAL" />
+ <updated>1642950622190</updated>
+ </task>
+ <option name="localTasksCounter" value="516" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
$favorites = [
['type' => 'light', 'scene' => 'salon/on', 'label' => 'Allumer'],
['type' => 'light', 'scene' => 'salon/off', 'label' => 'éteindre'],
+ ['type' => 'light', 'scene' => 'salon/lumineux', 'label' => 'lumineux'],
['type' => 'light', 'scene' => 'salon/cinema', 'label' => 'cinéma'],
['type' => 'light', 'scene' => 'salon/cineclub', 'label' => 'cinéma de minuit'],
['type' => 'light', 'scene' => 'salon/tamise', 'label' => 'Tamisé'],
$res['outdoor_temp'] = toNumber(getDomoticzDeviceStatus(1467), 1);
$res['outdoor_humidity'] = toNumber(getDomoticzDeviceStatus(1026), true);
$res['outdoor_pressure'] = toNumber(getDomoticzDeviceStatus(1027), true);
- $res['backyard_temp'] = toNumber(getDomoticzDeviceStatus(6840), 1);
- $res['backyard_humidity'] = toNumber(getDomoticzDeviceStatus(6841), true);
- $res['backyard_pressure'] = toNumber(getDomoticzDeviceStatus(6842), true);
+ $res['backyard_temp'] = toNumber(getDomoticzDeviceStatus(1354), 1);
+ $res['backyard_humidity'] = toNumber(getDomoticzDeviceStatus(1357), true);
+ $res['backyard_pressure'] = toNumber(getDomoticzDeviceStatus(1358), true);
$res['bathroom_temp'] = toNumber(getDomoticzDeviceStatus(1346), 1);
$res['bathroom_humidity'] = toNumber(getDomoticzDeviceStatus(1347), true);
- $res['bedroom_temp'] = toNumber(getDomoticzDeviceStatus(1356), 1);
- $res['bedroom_humidity'] = toNumber(getDomoticzDeviceStatus(1357), true);
+ $res['bedroom_temp'] = toNumber(getDomoticzDeviceStatus(6851), 1);
+ $res['bedroom_humidity'] = toNumber(getDomoticzDeviceStatus(6852), true);
+ $res['bedroom_airquality'] = toNumber(getDomoticzDeviceStatus(6853), true);
$res['livingroom_temp'] = toNumber(getDomoticzDeviceStatus(6453), 1);
$res['livingroom_humidity'] = toNumber(getDomoticzDeviceStatus(6454), true);
$res['kitchen_temp'] = toNumber(getDomoticzDeviceStatus(1506), 1);
//echo ':)';
$res = runDomoticzCommand(['type' => 'devices', 'rid' => $device]);
$res = json_decode($res->getBody(), true);
+
try {
$update = new DateTime($res['result'][0]['LastUpdate']);
$now = new DateTime();
if ($val === false) {
return '--';
}
+ $e = explode(',', $val);
+ $val = $e[0];
$val = preg_replace('/[^0-9-.]/', '', $val);
$val = floatval($val);
if ($round) {
['type' => 'scene', 'scene' => 'cuisine/on', 'delay' => 1],
['type' => 'scene', 'scene' => 'salon/cheminee', 'delay' => 1],
],
+ 'salon/lumineux' => [
+ ['type' => 'domoticz', 'scene' => 51, 'command' => true, 'priority' => true],
+ ['type' => 'hue', 'group' => $salon, 'scene' => 'Gte8sl76rzAD1wO', 'repeat' => 2],
+ ['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)],