</component>
<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
+ <change beforePath="$PROJECT_DIR$/.idea/dataSources.local.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/dataSources.local.xml" 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/lib/scenes.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/scenes.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/shield.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/shield.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/style/style.css" beforeDir="false" afterPath="$PROJECT_DIR$/style/style.css" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
</option>
</component>
<component name="Git.Settings">
- <option name="ROOT_SYNC" value="DONT_SYNC" />
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
<option name="RECENT_BRANCH_BY_REPOSITORY">
<map>
- <entry key="$PROJECT_DIR$" value="insteon" />
+ <entry key="$PROJECT_DIR$" value="7d8871d333db73c5e154bacf0e5b5972b602f039" />
</map>
</option>
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
+ <option name="ROOT_SYNC" value="DONT_SYNC" />
</component>
<component name="JupyterTrust" id="3f62eec0-7d7b-45be-bd97-06244d65817c" />
<component name="MarkdownSettingsMigration">
<recent_temporary>
<list>
<item itemvalue="Shell Script.adb-connect" />
+ <item itemvalue="Shell Script.adb-connect" />
</list>
</recent_temporary>
</component>
'wc/on' => [
['type' => 'function', 'function' => 'wcOn'],
],
- 'wc/morning' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'NC5ejamHGUNURj8'],
- ['type' => 'function', 'function' => 'wcMusic', 'args' => [70]],
- ],
- 'wc/day' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'qfuu8z5QaJ6J26W'],
- ['type' => 'function', 'function' => 'wcMusic', 'args' => [80]],
- ],
- 'wc/evening' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'h82j28eNu6ZHVhM'],
- ['type' => 'function', 'function' => 'wcMusic', 'args' => [80]],
- ],
- 'wc/late' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'IGo4F5jRQXc1H95'],
- ['type' => 'function', 'function' => 'wcMusic', 'args' => [70]],
- ],
- 'wc/night' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'eJy09JTEzCiIL1P'],
- ],
- 'wc/nightambiance' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => ['effect' => 'none']],
- ['type' => 'scene', 'scene' => 'wc/night'],
- ['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Nuit d\'été', $squeezeboxPlayers['WC'], 100, false]],
- ],
- 'wc/off' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => ['on' => false, 'effect' => 'none']],
- ['type' => 'function', 'function' => 'stopSqueezeboxPlayer', 'args' => [$squeezeboxPlayers['WC'], false]],
- ['type' => 'state', 'key' => 'wc', 'value' => 0],
- ['type' => 'function', 'function' => 'wcVMCOff'],
- ],
+
+// 'wc/nightambiance' => [
+// ['type' => 'hue', 'group' => $wc, 'scene' => ['effect' => 'none']],
+// ['type' => 'scene', 'scene' => 'wc/night'],
+// ['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Nuit d\'été', $squeezeboxPlayers['WC'], 100, false]],
+// ],
+
'wc/spa' => [
['type' => 'hue', 'group' => $wc, 'scene' => ['effect' => 'colorloop', 'on' => true, 'brightness' => 128]],
['type' => 'function', 'function' => 'squeezePlayByName', 'args' => ['Rivière', $squeezeboxPlayers['WC'], 100]],
['type' => 'function', 'function' => 'wcVMCOff'],
],
- 'wc/silentmorning' => [
- ['type' => 'hue', 'group' => $wc, 'scene' => 'NC5ejamHGUNURj8'],
- ['type' => 'function', 'function' => 'wcMusic', 'args' => [50]],
- ],
- 'wc/vmc/on' => [
- ['type' => 'function', 'function' => 'wcVMCOn'],
- ],
- 'wc/vmc/off' => [
- ['type' => 'ha', 'device' => HA_WC_VMC, 'command' => 'turn_off', 'priority' => true],
- ],
+
'sdb/ampli/on' => [
['type' => 'ha', 'device' => HA_SDB_AMPLI, 'priority' => true],
],
}
}
-function wcMusic($volume)
-{
- $d = date('w');
- if ($d == 4) {
- $music = 'New Morning';
- } else if ($d == 2) {
- $music = 'Radio Michel';
- } else if ($d == 5) {
- $music = 'Samba';
- //$volume += 10;
- } else {
- $music = 'FIP';
- }
- squeezePlayByName($music, 'WC', $volume, false);
-}
-
-function wcToggle()
-{
- if (getState('wc') == 1) {
- execScene('wc/off', true);
- } else {
- wcOn();
- }
-}
function sdbToggle()
{
}
}
-function wcOn($vmc = true)
-{
- $hour = getHour();
- if (getNightMode('chambre') && getNightMode('bureau')) {
- $period = 'night';
- } else if (getNightMode() && !getNightMode('bureau')) {
- $period = 'silentmorning';
- } else if ($hour > 0 && $hour < 6.75) {
- $period = 'late';
- } else if ($hour >= 6.75 && $hour < 10) {
- $period = 'morning';
- } else if ($hour >= 10 && $hour < 20) {
- $period = 'day';
- } else {
- $period = 'evening';
- }
- execScene('wc/' . $period, true);
- setState('wc', 1);
- if ($vmc && $period != 'night' && $period !== 'silentmorning') {
- wcVMCOn();
- } else {
- wcVMCOff(0);
- }
-}
-
function cheminee($lightId, $room = 'salon', $program = 'fire', $brightness = 1)
{
$start = time();