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


Recommended Posts

Posted

Hello,

i made an script it detect is the window open or close and then, depending on the state, save the value to a global variable or send it to the thermostat. You can swing the window/door....open....close....open...close or somehow otherwise, the script detect the actually status and when the status is the same does it nothing.

Background of this script: Children and they swing the window back and forth or the terraces door..... open...close...go inside... outside....etc. Is the door open or close for ca 60 sec then change the script the value of the thermostat or not.

And this is my first step to create my own heating panel

Please login or register to see this image.

/emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

But actually try to learn lua and look how it works

Please login or register to see this image.

/emoticons/default_icon_razz.gif" alt=":-P" />

Would be nice if you check the script and give me a feedback how it finds.

Sorry for my very good English

Please login or register to see this image.

/emoticons/default_icon_rolleyes.gif" alt=":roll:" />

regards Alex

---------------------

At the moment it works with only 1x window/door sensor and 1x Thermostat.

---------------------

To use: You must create a global variable, with any name, and change this name in the user settings and change the IDs of the sensors.

----------------------

Please login or register to see this code.

Join the conversation

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

Guest
Reply to this topic...

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