<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/homeassistant_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/homeassistant_device_event.php" 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" />
</list>
<workItem from="1689437591381" duration="3503000" />
<workItem from="1689663231923" duration="380000" />
<workItem from="1689669472736" duration="10000" />
- <workItem from="1689699901478" duration="329000" />
+ <workItem from="1689699901478" duration="1046000" />
</task>
<task id="LOCAL-00502" summary=".">
<created>1641726946298</created>
<option name="project" value="LOCAL" />
<updated>1687259667913</updated>
</task>
- <option name="localTasksCounter" value="581" />
+ <option name="localTasksCounter" value="582" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
['type' => 'function', 'function' => 'salonAuto', 'args' => [true]],
],
'salon/bar/on' => [
- ['type' => 'ha', 'device' => HA_BAR, 'command' => 'turn_on', 'priority' => true],
+ ['type' => 'ha', 'device' => HA_BAR, 'priority' => true],
],
'salon/bar/off' => [
['type' => 'ha', 'device' => HA_BAR, 'command' => 'turn_off', 'priority' => true],
['type' => 'scene', 'scene' => 'sdb/hotwater/auto'],
['type' => 'scene', 'scene' => 'bureau/off'],
['type' => 'scene', 'scene' => 'chambre/off'],
- ['type'=>'ha','device'=>HA_OFFICE_PLANE_SCREENS,'action'=>'turn_off'],
- ['type'=>'ha','device'=>HA_OFFICE_MAIN_SCREEN,'action'=>'turn_off'],
],
'home/welcome/eco/homeoffice' => [
['type' => 'scene', 'scene' => 'sdb/hotwater/auto'],
['type' => 'scene', 'scene' => 'salon/off'],
['type' => 'scene', 'scene' => 'chambre/off'],
- ['type'=>'ha','device'=>HA_OFFICE_PLANE_SCREENS,'action'=>'turn_off'],
+ ['type' => 'ha', 'device' => HA_OFFICE_PLANE_SCREENS, 'action' => 'turn_off'],
],
'home/welcome' => [
['type' => 'scene', 'scene' => 'cuisine/on'],
['type' => 'scene', 'scene' => 'salon/auto'],
['type' => 'scene', 'scene' => 'bureau/auto'],
- ['type'=>'ha','device'=>HA_OFFICE_PLANE_SCREENS,'action'=>'turn_on'],
+ ['type' => 'ha', 'device' => HA_OFFICE_PLANE_SCREENS],
['type' => 'scene', 'scene' => 'chambre/auto'],
['type' => 'scene', 'scene' => 'sdb/on'],
['type' => 'scene', 'scene' => 'cour/auto'],
['type' => 'ha', 'device' => HA_WC_VMC, 'command' => 'turn_off', 'priority' => true],
],
'sdb/ampli/on' => [
- ['type' => 'ha', 'device' => HA_SDB_AMPLI, 'command' => 'turn_on', 'priority' => true],
+ ['type' => 'ha', 'device' => HA_SDB_AMPLI, 'priority' => true],
//['type' => 'domoticz', 'device' => $amplisdb, 'command' => true, 'priority' => true],
],
'sdb/ampli/off' => [
}
domoticzSwitch($action['device'], $action['command'], isset($action['switchtype']) ? $action['switchtype'] : 'light', $action['priority'] ?? false);
} else if ($action['type'] === 'ha') {
+ if(isset($action['action']) && !isset($action['command'])){
+ $action['command']=$action['action'];
+ unset($action['action']);
+ }
haAction($action['device'], $action['command'] ?? null);
} else if ($action['type'] == 'ir') {
irsend($action['room'], $action['device'], $action['command']);
}
-
function wcVMCOn() {
setState('lastVMCOn', time());
// Start VMC
- haAction(HA_WC_VMC, 'turn_on');
+ haAction(HA_WC_VMC);
//domoticzSwitch(6449, true, 'light', true);
}