Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sensor that is triggered when door is open for longer than x #9

Open
gondalez opened this issue Jan 17, 2020 · 1 comment
Open

Comments

@gondalez
Copy link

It would be great to have a homekit sensor that is triggered when:

  • the integrations > if-open-longer-than is configured
  • the door is open longer than that time

Users could use this to receive notifications from homekit or even trigger automations.
Currently you can use IFTTT but it'd be nice to keep everything within homekit.

I had a peek at the api and it seems possible by querying the options api and the logs api.

Thanks for the great plugin :)

@therivenman
Copy link
Contributor

What you are trying to do can be easily accomplished by using a dummy switch (nfarina/homebridge-dummy) and some simple automations. I have something similar setup right now to close my garage door 30 minutes after it opens.

Simply create a dummy switch that has a timeout of 30 minutes. Setup an automation that turns the dummy switch on when the garage door state changes to open. Then setup another automation that does whatever you like when the state of the dummy switch changes to off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants