Author Topic: VC is PAUSING  (Read 4257 times)

0 Members and 3 Guests are viewing this topic.

Etrust

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 1
    • View Profile
VC is PAUSING
« on: November 30, 2014, 03:30:03 AM »
hi guys,

os: windows 8.1
vc: newest official stable version
problem: VC freeze most of the time after sending severall http request using scrape

turn all light on:
scrape http://192.168.0.16:8083/ZWaveAPI/Run/devices[11].instances[0].SwitchBinary.Set(1)
scrape http://192.168.0.16:8083/ZWaveAPI/Run/devices[12].instances[0].SwitchBinary.Set(1)
scrape http://192.168.0.16:8083/ZWaveAPI/Run/devices[13].instances[0].SwitchBinary.Set(1)
scrape http://192.168.0.16:8083/ZWaveAPI/Run/devices[14].instances[0].SwitchBinary.Set(1)


I am sending this http request to a raspberry with a zwave module that can speak to the zwave switches.

My CPU Usage and Memory is normal, so I have no idea what the problem could be. Interesting is that sometimes it works well and sometimes (most of the time) VC is freezing. After 1 minute VC is ready again but not all my http requests was trigered.

It seems that I have only problem using the scrape function for the moment. I have the same issue sending just one http request to turn a lamp on or off.

Can somebody help  ::confused
« Last Edit: November 30, 2014, 02:03:24 PM by jitterjames »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC is PAUSING
« Reply #1 on: November 30, 2014, 08:34:55 AM »
Is it actually crashing? It sounds like it is temporarily freezing, and then it works again (except for the fact that not all your scrapes have executed)?

Please enable logging in VC, repeat the problem, and then post the log for us.

http://voxcommando.com/mediawiki/index.php?title=Log

... Also please post the xml of whatever command you use when re-creating the problem.
« Last Edit: November 30, 2014, 02:03:41 PM by jitterjames »
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)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7712
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VC is PAUSING
« Reply #2 on: November 30, 2014, 08:47:28 AM »
It just sounds like VC is waiting for a response from the RaspberryPi.  Scrape is one of the most tested actions in VC and if there were a problem with it I think we would know about it by now.

The problem is probably external to VC.  If we are going to have any hope of helping you we will need a full log but you should also post the XML of your command for us to check.

Also it might help to know what software you are running on the Pi.

You should also check that there is not something else interfering such as a firewall, unreliable wifi, or anti-virus etc.

In your case I don't think the version number matters much, but "newest" is not an acceptable version number.  One should always provide the actual version number(s) when seeking help with any product on any forum or help-desk.
« Last Edit: November 30, 2014, 02:03:51 PM by jitterjames »

Etrust

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 1
    • View Profile
Re: VC is PAUSING
« Reply #3 on: November 30, 2014, 03:31:32 PM »
hi guys,

here the files. my vc version is: 2.1.0.7

I used the phrase "shuttdown" as the last command to turn all lights off and VC freezed.

At the beginning it worked fine. I could turn all lights off using shuttdown phrase and turn all lights on using the phrase all lights.

Can somebody see the problem?

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC is PAUSING
« Reply #4 on: November 30, 2014, 04:05:41 PM »
Thanks Etrust.

We still need your VC log file, and it would be helpful to know what is the software you are running on the Pi.
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)

Etrust

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 1
    • View Profile
Re: VC is PAUSING
« Reply #5 on: November 30, 2014, 05:30:44 PM »
Hi,

oh yes sorry here I attached the log. I am using this solution on my raspberry: http://razberry.z-wave.me/

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC is PAUSING
« Reply #6 on: November 30, 2014, 10:14:49 PM »
We can deduce nothing from the log. Of the 13 commands, significant delays between scrape actions were evident with 4 of them (3 of these in sequence). But there is no discernible pattern to when it is working instantly and when it isn't.

If the requests were timing out for some reason, that may show up in the History window but not the VC log. Did you notice any red error lines in the left-hand History window?

At any rate, it seems likely that James was correct earlier when he suggested that the problem is not within VC.

To eliminate variables, you should concentrate on stress-testing the Z-way controller software, without VoxCommando.

If the controller has its own logging, take a look there to see if commands are timing out. Or maybe you can see a pattern with z-wave devices that are far from the controller not always responding?

Sorry that we can't be more helpful.
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)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7712
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VC is PAUSING
« Reply #7 on: November 30, 2014, 10:37:23 PM »
Let us know about what you see in the history window but you can also try the following:

Insert VC.Pause actions between your scrape actions in case the Pi or Zwave controller are not able to keep up with multiple commands in a row.

See if there is a way to control groups of lights in Z-way, or create scenes, or issue an all on or all off command instead of turning all lights on or off one by one.

Also seek help from the razberry and Z-way communities since they will probably have more experience with this type of problem.

Are you sure you are supposed to use a value of 1 to turn lights on?  I have seen others using 255.

I am 99% sure this is not a VoxCommando problem.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7712
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VC is PAUSING
« Reply #8 on: November 30, 2014, 10:53:02 PM »
I'm not sure if we will understand it but you can also try to send us your Z-way log as per:
http://razberry.z-wave.me/index.php?id=27

Please restart Z-way just before issuing VoxCommando commands so that the log will not be too long.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC is PAUSING
« Reply #9 on: December 01, 2014, 09:23:54 AM »
Etrust, can you please try the following command repeatedly.

1. See if the delays between scrapes help resolve the problem.
2. Post your VC log again afterward. This command should record any responses received from your z-wave controller in the log file (if any are received).

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.2.5-->
<command id="318" name="Testing all lights off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[10].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[7].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[8].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[11].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[12].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Pause</cmdType>
    <params>
      <param>200</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.0.16:8083/ZWaveAPI/Run/devices[13].instances[0].SwitchBinary.Set(0)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VcAdvanced.Log</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Testing all lights off</phrase>
</command>

But please still tell us if you are seeing errors in your history window.
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)

Etrust

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 1
    • View Profile
Re: VC is PAUSING
« Reply #10 on: December 02, 2014, 05:12:09 AM »
Hi Guys, you are all amazing!!

a lot of very good ideas here. I will try your ideas out and will let you know soon as possible. My wife is today evening not at home so I can test and control all the lights without to have problem with her  ;D ;D

Can't wait to test.


Etrust

  • Jr. Member
  • **
  • Posts: 45
  • Karma: 1
    • View Profile
Re: VC is PAUSING
« Reply #11 on: December 02, 2014, 02:45:15 PM »
Hi Guys,

finally tested and solved!!

You were both right. Ther problem was not VC!! I have tryed pause between the commands and it worked better!! But VC still paused..I also confirm that VC was not showing Errors on the History Window.

I am using scrape to enable a scene now (not separate commands like before) on the razberry. Now I have only one http request: http://192.168.0.16:8083/ZAutomation/api/v1/devices/LightScene_8/command/on

Razberry do the rest..

It works perfect now. I have tested a lot and can confirm that the razberry zway module was the problem recieving more commands at the same time.

Guys you are all amazing. I love VC and this Forum is so great!! Thank you so much!!!

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC is PAUSING
« Reply #12 on: December 02, 2014, 05:41:11 PM »
That's great news.

And yes, creating and executing a scene rather than sending separate requests for each light definitely sounds like a better plan. :-)

Thanks for the update.
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)