-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[expire] Add an optional flag to have Expire reschedule on change as opposed to update #2542
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/using-expire-as-a-timer/127771/8 |
From the technical standpoint (regarding the implementation) this is easy, the question is how to configure that (backward compatible) in the metadata. My best idea would be to add |
I'm not sure how the Expire function works but since it's metadata we could add a configuration option along the lines of I don't have a strong opinion either way. I think your proposal would be more internally consistent with how the Expire metadata already works. |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/turn-off-light-when-its-on-for-x-hours/153336/5 |
The ignoreStateUpdates parameter is not yet documented here |
It does not appear so. Updating the docs would be done on the openhab-docs repo. |
NOTE: this might be a duplicate of #1994 and I can close it if that's the case.
The problem is that lots of bindings will update Items periodically, sometimes as often as once a minute, even when the Item's state has not changed. Unfortunately, if one sets an Expire timeout greater than how often the binding updates the Item that means that the Expire will never happen.
If we had a flag to tell Expire that we only care about changes, not updates, we can support use cases like commanding the bathroom fan to OFF after five minutes of it being ON even when the binding keeps updating the Item every minute.
Looking at ExpireManager I think it would just be a matter:
The text was updated successfully, but these errors were encountered: