hvorragend / ha-blueprints

Other
40 stars 8 forks source link

Contact sensor open / close delay #149

Open robertodamiani opened 1 month ago

robertodamiani commented 1 month ago

Hi,

the contact sensors reacts with an unwanted delay since a few versions ago:

While the late closing may be acceptable, the opening is not, as if I open the window / door I want to access outside as soon as possible. Also note that this behavior has changed recently, as the opening / closing was immediate before.

Looking at the code I suppose that the 5 seconds are due to:

I immagine that these delays are for stability (I've seen a comment somewhere), but the implementation causes (I think unwanted) delays. Maybe stability may be gained in some other better way.

Thanks. Roberto

hvorragend commented 1 month ago

Yes, I did this to get to grips with quick changes of the three-contact door handle.

The delays are really stupid in everyday life. I'm still looking for the perfect values. Perhaps this could even be made configurable. But this then leads to support requests again.

I would have to check whether the usual delays (drive delays) are also included. That would be really unfortunate.

What technology do you use? Do you or anyone else have experience with other values?