Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Two soap requests on button click


Yuliy
 Share

Question

Hello everybody here,

I'm new on this forum and I have an issue with my virtul device created on HCL.  In particular, after have been created a virtual device with a button and a label, I would like to assign an action for a such button.

Let's say, I want to turn on some phiscal device and update a label's value to "Turned On" respectively.

By using a String option on HCL, I managed to send a single SOAP request(on a button click) in order to either turn on device or change label's value separately. The issue is that, I would like to execute both things togather.

In the following I'll share my code which  I've tried to assign to the button:

 

Please login or register to see this code.

Case 1 Works fine

 

Please login or register to see this code.

Case 2 Works fine

 

Please login or register to see this code.

Case 3, both things together, No. It executes only the first request.

So I've been wondering, is it even possible to carry out something like case 3? And if so, where I've been failing?

Thanks for any kind of help!

Edited by Yuliy
correction of mistakes
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi,

 

I have a same problem with my Foscam: send arm the cam and with separate command the preset position.

 

I use VD with LUA:

 

selfId = fibaro:getSelfId()

FoscamIP = fibaro:get(selfId, "IPAddress")

FoscamPort = fibaro:get(selfId, "TCPPort")

Foscam = Net.FHttp(FoscamIP,FoscamPort)

 

Foscam:GET('/cgi-bin/CGIProxy.fcgi?&usr=xxxx&pwd=xxx&cmd=ptzGotoPresetPoint&name=Avvio')

Foscam:GET('/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&linkage=8&snapInterval=2&sensitivity=2&triggerInterval=0&isMovAlarmEnable=1&isPirAlarmEnable=0&schedule0=281474976710655&schedule1=281474976710655&schedule2=281474976710655&schedule3=281474976710655&schedule4=281474976710655&schedule5=281474976710655&schedule6=281474976710655&area0=1023&area1=1023&area2=1023&area3=1023&area4=1023&area5=1023&area6=1023&area7=1023&area7=1023&area8=1023&area9=1023&usr=xxxx&pwd=xxxxx')

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...