News:

There is now a ChangeLog page on the wiki
New developments are added at the bottom of the page.

Main Menu

Odd issue with Maps in V2 - 30 second lock up when setting value

Started by garryjw, March 19, 2014, 08:04:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garryjw

Hi

Been testing my Tellus script with V2 and hit an odd issue. In the toggle script I'm getting a 30 second hang up when setting the map value and then the Map Value doesn't seem to set. Oddly I don't get the hangup on the discrete script and the value.

For example when I say lounge light please, I hear Off Turning - 30 second delay - On and the map value is still Off afterwards.

Whilst the delay is occurring VoxCommando appears to be locked up and the log screen is blank.

<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name=" tellstick" enabled="True" prefix="" priority="0" requiredProcess="" description="">
 <command id="1505" name="Discrete" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
   <action>
     <cmdType>OSD.ShowText</cmdType>
     <cmdString>{1} {2} {3} &amp;&amp;1000</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <action>
     <cmdType>Launch.Hidden</cmdType>
     <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--{3}  "{1} {2}"</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <action>
     <cmdType>Map.Set</cmdType>
     <cmdString>switchstate&amp;&amp;{1}{2}&amp;&amp;{3}</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <phrase>turn</phrase>
   <payloadList>lounge,bedroom,spareroom</payloadList>
   <payloadList>light,lamp,lamps</payloadList>
   <payloadList>on,off</payloadList>
   <event>tell.lights</event>
 </command>
 <command id="1503" name="Toggle" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
   <action>
     <cmdType>Map.Get</cmdType>
     <cmdString>switchstate&amp;&amp;{1}{2}</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <if ifBlockDisabled="False" ifNot="True">
     <ifType>LastActionSuccess</ifType>
     <ifParams>&amp;&amp;</ifParams>
     <then>
       <action>
         <cmdType>Map.CreateTable</cmdType>
         <cmdString>switchstate</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>Map.Set</cmdType>
         <cmdString>switchstate&amp;&amp;{1}{2}&amp;&amp;off</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>Map.Get</cmdType>
         <cmdString>switchstate&amp;&amp;{1}{2}</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>TTS.Speak</cmdType>
         <cmdString>Reset</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
     </then>
     <else />
   </if>
   <action>
     <cmdType>TTS.Speak</cmdType>
     <cmdString>{LastResult} turning</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <if ifBlockDisabled="False" ifNot="False">
     <ifType>(A)Contains(B)</ifType>
     <ifParams>{LastResult}&amp;&amp;off</ifParams>
     <then>
       <action>
         <cmdType>Map.Set</cmdType>
         <cmdString>switchstate&amp;&amp;{1}{2}&amp;&amp;on</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>TTS.Speak</cmdType>
         <cmdString>on</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>Launch.Hidden</cmdType>
         <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--on "{1} {2}"</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
     </then>
     <else>
       <action>
         <cmdType>Map.Set</cmdType>
         <cmdString>switchstate&amp;&amp;{1}{2}&amp;&amp;off</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>TTS.Speak</cmdType>
         <cmdString>off</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>Launch.Hidden</cmdType>
         <cmdString>C:\Program Files\Telldus\tdtool.exe&amp;&amp;--off "{1} {2}"</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
     </else>
   </if>
   <payloadList>lounge,bedroom,spareroom</payloadList>
   <payloadList>light,lamp,lamps</payloadList>
   <phrase>please</phrase>
 </command>
</commandGroup>


Any thoughts?

nime5ter

Thanks for this bug report. We have been able to reproduce the problem in version 2 as well. James will look into it.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

garryjw