James,
I have a question about how the time delay format for the set event timer functions.
I know you can set a delay of the form 1h 10m in order to trigger an event 1 hour and 10 minutes from now, for example.
My question is: can the minute delay amount be greater than 60?
The reason I ask is because I was trying to come up with a temporary workaround to accomplish what Ajith is trying to do: setting a timer for 00:30.
I have come up with a time delay solution using a python calculation. Initially I had a problem with the minutes, because depending on the current time my calculation would result in negative minutes. So I came up with the following solution instead, but it means that the set event timer function needs to know that 1h 80m is the same as 2h 20m.
Here's what I came up with. ... Maybe I made this overly complicated.
My mission was to avoid needing multiple lines of python code so that I could use just the one Py.ExecString action.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.1.9-->
<command id="276" name="SetShutdownTime" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>PY.ExecString</cmdType>
<params>
<param>result=str(23-{dtcustom.HH})+"h "+str(90-{dtcustom.mm})+"m"</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.SetEventTimer</cmdType>
<params>
<param>{LastResult}</param>
<param>TIMER_SHUTDOWN</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<event>VC.Loaded</event>
</command>