You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some float items that constantly change their value (based on a sensor) very marginally, eg. 20.34, 20.38, 20.12, 19.99 etc.
It is not very useful to write every small change into the database. So I propose an additional database_threshold keyword that specifies the necessary minimum change of an item to write it in the database. Example:
Last entry in database for specific item is 20.00 (maybe on init it should always write the current value, not regarding the threshold)
Item has database_threshold of 1.50
Item changes to 20.50, 21.20, 19.00, 21.25 and does not get written to the database as the value change in comparison to the last database entry (not the last item value!) is less than 1.50
After the last change to 21.25 the item value changes to 21.50 and now gets written to the database.
I'm aware that the problem could be solved by using extra items and/or logics but it might be a nice feature for the plugin itself.
The text was updated successfully, but these errors were encountered:
I have some float items that constantly change their value (based on a sensor) very marginally, eg. 20.34, 20.38, 20.12, 19.99 etc.
It is not very useful to write every small change into the database. So I propose an additional database_threshold keyword that specifies the necessary minimum change of an item to write it in the database. Example:
Last entry in database for specific item is 20.00 (maybe on init it should always write the current value, not regarding the threshold)
Item has database_threshold of 1.50
Item changes to 20.50, 21.20, 19.00, 21.25 and does not get written to the database as the value change in comparison to the last database entry (not the last item value!) is less than 1.50
After the last change to 21.25 the item value changes to 21.50 and now gets written to the database.
I'm aware that the problem could be solved by using extra items and/or logics but it might be a nice feature for the plugin itself.
The text was updated successfully, but these errors were encountered: