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!



Smart Home Forum by FIBARO Team

  • 0

Two soap requests on button click



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



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)




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.

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.


  • Create New...