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

Automatic Curtain behind door opening and closing - Help please


Question

Posted

Hello, I have a roller shutter 2, a ranch slider, aeon door sensor gen 5 and a electric curtain.

At the moment when the door is open the curtain behind door opens and sets a global var to automatic

 

My two scenes coded are as follows:

 

If door is breached and the curtain is closed then open the curtain and set global var to automatic

 

Please login or register to see this code.

 

Then a second scene.

 

If global var is automatic (ie the curtain was opened by the scene above) and the curtain is open still and the door is now closed

then change global var to manual and close the curtain

 

Please login or register to see this code.

 

To me it seems right, however the curtain no matter how it's opened is always closing automatically. Does the above look right or am I missing something.

 

Thank you

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

try to do the same with block scene, if this works change it to lua and look which code is different

 

  • 0
Posted (edited)

I am a little bit confused what exactly you're trying to achieve, but looking on your code it works correctly  i.e  door closed -> close the curtain.

What do you mean by "the curtain no matter how it's opened is always closing automatically"?

Please describe the case when the curtain closes unexpectedly (not according to your plan ).

In addition could you share the entire scene's code, including triggers.

One more question - as I understand  from your explanation the curtain should be closed or opened according to the door state, so  why you need two scenes and global variable. It could be done in one scene/code w/o variable, but may be i didn't understand correctly,  please explain what exactly you need?

Edited by cag014

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...