Commit Graph
23 Commits
Author SHA1 Message Date
Andrew Fiddian-GreenandGitHub 94313ba102 remove duplicate code (#18270)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-15 23:55:48 +01:00
Andrew Fiddian-GreenandGitHub d0bac82f21 [basicprofiles] Fix StateFilterProfile to use linked Item system unit (#18144)
* [basicprofiles] Improve StateFilterProfile unit based calculations

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2025-02-12 21:52:18 +01:00
Holger FriedrichandGitHub 6a1a41a58f Adapt Nullable annotations to core change (#18231)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-02-10 16:03:10 +01:00
jimtngandGitHub 1650591403 [basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter (#18089)
* [basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter
* use Optional for acceptedState

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-09 08:25:54 +01:00
jimtngandGitHub 019fb8acf4 [basicprofiles] Convert to relative unit in State Filter's Delta check (#18127)
* [basicprofiles] Convert to relative unit in State Filter's Delta check

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-02-02 21:24:50 +01:00
jimtngandGitHub de951f5904 [basicprofiles] Fix regular comparison of Percent Quantity interpreted as $DELTA_PERCENT check (#18121)
* [basicprofiles] Fix regular comparison of Percent Quantity interpreted as
$DELTA_PERCENT check

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-24 14:23:08 +01:00
jimtngandGitHub 087a511120 [basicprofiles] Fix handling of multiple $DELTA conditions (#18088)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-23 20:02:09 +01:00
jimtngandGitHub 3b0c78795d [basicprofiles] Support double quoted strings in state filter (#18117)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-17 16:41:08 +01:00
jimtngandGitHub d36b2a8d82 [basicprofiles] Add a table-of-contents at top of README.md (#18058)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-08 20:15:25 +01:00
Wouter BornandGitHub 8672ed0208 Start license headers with /* instead of /** (#18061)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 22:33:03 +01:00
Wouter BornandGitHub d6476042ec Update license headers to 2025 (#18015)
* Update license headers to 2025

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-02 00:30:12 +01:00
jimtngandGitHub 34d8fec597 [basicprofiles] Fix delta state filter handling of negative values (#17997)
* [basicprofiles] Pass the initial data for delta state filter

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-31 20:23:41 +01:00
Jacob LaursenandGitHub 6e6a0d080c Link to Java 21 documentation (#17939)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-12-21 08:20:08 +01:00
Holger FriedrichandGitHub 639a1cb263 Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:30:05 +01:00
openhab-bot f80fd3d18c [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 13:46:58 +00:00
jimtngandGitHub 1190c14f75 [basicprofiles] Add $DELTA_PERCENT function to State Filter profile (#17843)
* [basicprofiles] Add $DELTA_PERCENT function to State Filter profile

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-05 20:52:42 +01:00
jimtngandGitHub 12e7212bd9 [basicprofiles] Add support for functions (DELTA, MEDIAN, AVG, STDDEV, MIN, MAX) in State Filter (#17362)
* [basicprofiles] Add support for functions (DELTA, MEDIAN, AVG, STDDEV, MIN, MAX) in State Filter

Support any type of operand on either side of the operator
e.g.: `ItemName > 10` and `10 < ItemName`

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-12-03 20:03:15 +01:00
Holger FriedrichandGitHub 54fd13b0c1 Reduce SAT warnings (#17406)
* Reduce SAT warnings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-09-13 17:20:11 +02:00
jimtngandGitHub 6f55f3d2ad [basicprofile] Fix statefilter check against item's value on the rhs (#17346)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-30 20:44:30 +02:00
jimtngandGitHub e4ce954dc2 [basicprofiles] Add additional comparisons to State Filter profile (#17323)
* Add inequality comparisons to State Filter profile

- Fix bug where undefined `mismatchState` passed `UNDEF` instead of ignoring state updates
- Support multiline conditions
- Support comparing against the input state from handler to filter out
unwanted data

* Support comparing item to item or input to item

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-08-28 16:28:10 +02:00
lsiepelandGitHub 71a208b91b Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-07 23:20:16 +02:00
openhab-bot 4b5e4646ac [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 18:09:31 +00:00
J-N-KandGitHub 706f9ca6b5 [basicprofiles] Initial contribution (#16754)
* [basicprofiles] Initial contribution

A set of basic profiles with general use cases. See documentation for details.

Also-By: Christoph Weitkamp <github@christophweitkamp.de>
Also-By: Arne Seime <arne.seime@gmail.com>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-05-28 23:30:46 +02:00