iobroker.history
v5.0.1
Published
Log state history in a two-stages process (first to RAM, then to disk)
Readme

ioBroker.history
This adapter saves state history in a two-staged process.
This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information on how to disable the error reporting, see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.
Configuration
Changelog
5.0.1 (2026-08-26)
- (@joltcoke) Fixed average and total returning null for every interval that contains a null value: parseFloat(null) is NaN and poisoned the sum of the whole interval (thanks to @joltcoke, ioBroker/ioBroker.sql#526). As the result was NaN and not null, ignoreNull could not act on it either
- (@joltcoke) Fixed min returning a wrong value if the interval contains a null, minmax losing the minimum if the interval starts with a null, and percentile/quantile counting a null as 0
5.0.0 (2026-08-26)
- (ioBroker-Bot) Adapter requires js-controller >= 6.0.11 now.
- (simatec) Responsive Design added
- (@GermanBluefox) Adapter requires node.js >= 22 now.
- (@GermanBluefox) Added the data browser to the configuration, so the stored values can be viewed, edited and deleted.
- (@GermanBluefox) The aggregation is used now from
@iobroker/aggregateand is shared with the SQL and InfluxDB adapters.
4.0.0 (2026-03-10)
- (iobroker-bot) Adapter requires node.js >= 20 now.
- (@GermanBluefox) Migrated to TypeScript
3.0.1 (2023-10-24)
- (tuxyme) activated the round option when averaging
3.0.0 (2023-09-19)
- (foxriver76) fix
history2db.jswith controller v5 - (bluefox) Minimal node.sj version is 16
- (bluefox) Added support for
countaggregate type on getHistory
Older changelogs can be found there
License
The MIT License (MIT)
Copyright (c) 2014-2026 Bluefox [email protected], Apollon77
Copyright (c) 2016 Smiling_Jack
Copyright (c) 2014 hobbyquaker
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
