I really don’t remember running my fusion reactor this week…
Do you have any idea how to get rid of those random reads from history, so my diagrams looks anything useful? and if possible ignore them at all in thing/point update.
Use the include/exclude filters in your persistence config to ignore values outside a given range: Persistence | openHAB
Add a transform Profile on the link with a Script transform to ignore values that are too big of a difference from the last reading. Using JS it would look something like the following:
Exclude the Item from the persistence config entirely and implement a rule with the same logic as the transform above. Only persist the Item’s state if the delta is less than a threshold by calling .persist on the Item. This approach will not work with rrd4j as your persistence database.
The function doesn’t actually have anything hard coded that makes it so we cannot reuse it.
If defined in the UI under Settings → Transformations you define it once and refer to it by UID in the transform settings. If you choose to use a .js file, you refer to the file name instead.
If you have different thresholds, you can pass that in as an argument. See Transformations | openHAB
I’m assuming that each profile gets a different instance of the transformation. If that’s not the case you can pass in a unique id as an argument as well.
For example, if you have a .js file it would be something like filter.js?threshold=5&id=livingroomTemp and the function would become something like
Still I have no idea how to do this…
Programming is easy, setup is hard.
Here’s a screenshot that would tell you what I’m doing wrong. Keeping it in link looks so easy, but not very configurable. (I forgot: yes, I’m using OH 4)