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

Door open for a period of time


Question

Posted

Hi all!

 

How do i use block scene or lua in Hc3 if i want a push notification if a door is open for a certain of time (5 mins) and the temperature outside is 15 degrees or below?

I dont want a notification for just an open door but if someone leaves it open...

 

/Andreas

10 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this attachment.

 

Just adde the condition of the temperature. This scene is for the three doors in ly house that open up to the outside

  • 0
Posted (edited)

Please login or register to see this attachment.

 

Please login or register to see this code.

 

 

Please login or register to see this attachment.

Edited by 10der
  • 0
Posted

Really ? Don't you think the block scene is a lot simpler ?

  • 0
Posted

sure! use blocks.

 

if you do not needs calculate how many times the door was opened.

if you  do not needs annoyed user to close the doors priodically

if you want :) annoyed user at summer time (cuz your block will annnoyed users when you WANT vent your room at the subber time)

and finally if you do not needs share the current state of doors in globaks - YES 

blocks it's for you!

you win!

  • Like 1
  • 0
Posted

Interesting scene but unfortunately it doesn't work for me :-(

 

Please login or register to see this attachment.

  • 0
Posted

Strange!

You have a two (2) stars.

and do not know about forum bug with Copy-paste

 :( 

5 minutes. a should prepere files

  • Like 1
  • 0
Posted

attached file

  • 0
Posted

The stars are for hc2. Unfortunately, I'm not a developer and I don't really understand what to do with this file. I changed the device numbers but unfortunately nothing comes of it.?

  • 0
Posted
23 hours ago, 10der said:

sure! use blocks.

 

if you do not needs calculate how many times the door was opened.

if you  do not needs annoyed user to close the doors priodically

if you want :) annoyed user at summer time (cuz your block will annnoyed users when you WANT vent your room at the subber time)

and finally if you do not needs share the current state of doors in globaks - YES 

blocks it's for you!

you win!

You are absolutely 100 % right: I do not care about all these terrible things (and certainly not if I need to write many lines of code to avoid them) !!!

  • 0
Posted

@10der I love your contributions here and I hope you will keep doing that for a long time. Thanks for that. I also prefer LUA for everything although I am not a programmer. But these comments you made are a bit arrogant and not very friendly.

 

On 11/16/2020 at 8:02 PM, 10der said:

sure! use blocks.

 

if you do not needs calculate how many times the door was opened.

if you  do not needs annoyed user to close the doors priodically

if you want :) annoyed user at summer time (cuz your block will annnoyed users when you WANT vent your room at the subber time)

and finally if you do not needs share the current state of doors in globaks - YES 

blocks it's for you!

you win!

The poster did not ask to count the number of times the door was opened.

The reason of the script is to close the door if it was left open, sow this will not be annoying in his eyes.

In the summertime it is above 15°C, so this will not be an issue.

The poster did not ask to save the state in a global variable, and this is also possible with bock scenes (at least in HC2).

 

On 11/17/2020 at 5:56 PM, 10der said:

Strange!

You have a two (2) stars.

and do not know about forum bug with Copy-paste

 :( 

5 minutes. a should prepere files

 

You are an expert with more then 3000 posts, so you should know that you get 2 stars after 50 posts and it has nothing to do with the skill level or knowledge of the poster.

 

  • Like 2

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