<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/domoticz_device_event.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/domoticz_device_event.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/lib.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/lib.php" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="Make" enabled="true" />
</method>
</configuration>
- <configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
- <option name="arquillianRunConfiguration">
- <value>
- <option name="containerStateName" value="" />
- </value>
- </option>
- <option name="TEST_OBJECT" value="class" />
- <method v="2">
- <option name="Make" enabled="true" />
- </method>
- </configuration>
<configuration default="true" type="ArquillianTestNG" factoryName="">
<option name="arquillianRunConfiguration">
<value>
<workItem from="1611582691581" duration="2261000" />
<workItem from="1611585304162" duration="1674000" />
<workItem from="1611609259944" duration="949000" />
- <workItem from="1611653492674" duration="1693000" />
- </task>
- <task id="LOCAL-00391" summary=".">
- <created>1605364934828</created>
- <option name="number" value="00391" />
- <option name="presentableId" value="LOCAL-00391" />
- <option name="project" value="LOCAL" />
- <updated>1605364934828</updated>
+ <workItem from="1611653492674" duration="2030000" />
+ <workItem from="1611656202680" duration="487000" />
</task>
<task id="LOCAL-00392" summary=".">
<created>1605365556377</created>
<option name="project" value="LOCAL" />
<updated>1611655053436</updated>
</task>
- <option name="localTasksCounter" value="440" />
+ <task id="LOCAL-00440" summary=".">
+ <created>1611655420798</created>
+ <option name="number" value="00440" />
+ <option name="presentableId" value="LOCAL-00440" />
+ <option name="project" value="LOCAL" />
+ <updated>1611655420798</updated>
+ </task>
+ <option name="localTasksCounter" value="441" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
return;
}
setState('last_harmony_volume', time());
+
+ $volume = min(5, max(1, $volume));
+
if ($increase == '-') {
- return harmonyRequest('commands/volume-down?repeat=5', 'POST');
+ return harmonyRequest('commands/volume-down?repeat=' . $volume, 'POST');
} else {
- return harmonyRequest('commands/volume-up?repeat=4', 'POST');
+ return harmonyRequest('commands/volume-up?repeat=' . $volume, 'POST');
}
case 'vlc':
return VLCCmd(['command' => 'volume', 'val' => $increase . '20'], $device);