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

Switch-off timer #36

Open
emanuelpsilva opened this issue Jan 10, 2021 · 1 comment
Open

Switch-off timer #36

emanuelpsilva opened this issue Jan 10, 2021 · 1 comment

Comments

@emanuelpsilva
Copy link

It will be great if we can set a timer to automatically turn-off the switch after turned on!

I know we can workaround creating automations around the Homebridge-dummy switch or Homebridge-delayed-switch but why should we complicate if we can have it simple? :)

Cheers!

@pponce
Copy link
Owner

pponce commented Jan 11, 2021

In theory your on script should be able to include a built in timer to also turn the device off.
If using filestate then just have your on script delete the file after a set amount of time. When using filestate HomeKit should automatically update state based on the existence of the file defined.

I’ve stopped using the plugin myself. How ever I will accept PR requests for enhancements. Though I think there are other actively maintained script plugins that might be better to use that may already include a timer function.

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