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


Question

Posted

Hi,

 

I am using the HCL and I have a little problem with two scenes. I have a scene for when I leave the apartment, so that all blinds close, all lights go off, and all devices get armed (after three minutes). I furthermore have a scene for coming home, which turns on some lights, opens some blinds and disarms all devices. So far so good.

 

If I though decide within the 3 minutes that I do not want to leave, I press the button for the "Come home" scene. No problem with the lights or the blinds. All devices arm though after the three minutes are over (from the "Leave" scene). Apparently, they disarm when I press "Come home", but the "Leave" scene is still running in the background, causing them to arm again.

 

How can I fix that?

 

Regards

9 answers to this question

Recommended Posts

  • 0
Posted

You are right, there us action awaiting to be completed, no matter the disarm scene. I would recommend moving the arming action to separate scene, that will be run after 3 minutes. Then, in that separate scene look for some condition (maybe variable set in "coming back" scene) and then arm.

  • 0
  • Inquirer
  • Posted

    Thanks!

     

    That works of course. I think it would be much smoother if it would be possible to stop a scene. Is there no way of doing that?

    • 0
    Posted

    Which version of HCL do you have? If 3.x, there is a possibility to make a virtual device that stops other scene. But if 4.x, this approach wouldn't work cause of problem with HTTP requests.

    • 0
    Posted

    Ok, so: Create new virtual device. Set IP Address to 127.0.0.1 and TCP Port to 11111. Choose any button to add and check "Main" on the top right corner. Then replace "String to send" to following statement:

     

    GET /api/sceneControl?id=SCENE_ID&action=stop HTTP/1.1
    Host: 127.0.0.1
    Authorization: Basic YWRtaW46YWRtaW4=

     

    Where SCENE_ID is your scene's id. Now you can add to your second scene (coming home) a condition: if you are coming back, then turn your virtual device on. That will stop first scene.

    • 0
  • Inquirer
  • Posted

    Thanks for this great tip! I will definitely try it.

     

    Once my HCL gets upgraded to v4, will the problem with the http requests be solved at some point?

    • 0
    Posted

    If you are waiting for the new 4.x, the problem shouldn't occurs. When I asked you about the version, I had in mind that there could be an issue on 4.044. If 4.053, it should work.

    • 0
  • Inquirer
  • Posted

    Sorry I need to open this topic again. Somehow my Virtual Device does not stop my scene. So all devices are still being armed. I attached some screenshots. Maybe they help to solve this.

     

    Thanks,

    Martin

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted

    I somehow cannot make it work. I tried also your newest suggestions. Is it possible that the path has changed in v4? What about the authorization. Do I need to adapt that to my system?

    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.

    ×
    ×
    • Create New...