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

[FR] Condition valid for <x> time (duration condition) #468

Open
MayeulC opened this issue Feb 12, 2023 · 0 comments
Open

[FR] Condition valid for <x> time (duration condition) #468

MayeulC opened this issue Feb 12, 2023 · 0 comments
Labels
feature request Proposal for new features

Comments

@MayeulC
Copy link

MayeulC commented Feb 12, 2023

Is your feature request related to a problem? Please describe.
A friend asked if it was possible to turn their phone off if the screen had been off and the phone not charging for 30 minutes.

The two "screen" and "power" conditions are easy enough to implement, but I couldn't see how to implement the duration condition.

Describe the solution you'd like
I can imagine a new field on every condition "valid for", this is how HomeAssistant approaches the problem:
image

Describe alternatives you've considered [optional]
Alternatively, a new condition: "timer" to put as a child.
If the input condition is valid for <time>, the condition becomes valid.

Variants can be used too, like an inverted timer that turns off after a while.

Additional context
I don't think this can be achieved with the current "time" condition, as this is time-based and not duration-based.

@MayeulC MayeulC added the feature request Proposal for new features label Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Proposal for new features
Projects
None yet
Development

No branches or pull requests

1 participant