openhab / openhab-js

openHAB JavaScript Library for JavaScript Scripting Automation
https://www.openhab.org/addons/automation/jsscripting/
Eclipse Public License 2.0
38 stars 31 forks source link

[items] Add/Improve support for persisted future states #308

Closed florian-h05 closed 4 days ago

florian-h05 commented 7 months ago

https://github.com/openhab/openhab-core/pull/3597 introduced support for persisting historic and future states using a time series.

Our library should add methods to the Item class to provide easy and convenient access to future Item states.

I can imagine having a future property similar to history of the Items class, with methods like nextState(skipEqual), stateAt(timestamp) and stateAtRange(timestamp, range).

florian-h05 commented 6 months ago

This issue depends on the implementation of https://github.com/openhab/openhab-core/issues/3896.

florian-h05 commented 4 days ago

Closes by #331.