Skip to content

Commit

Permalink
* docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed May 27, 2022
1 parent c5f13dd commit 267f1ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ If you manually request some aggregation you should ignore first and last values
If you want to write other data into the history DB you can use the build in system function `storeState`.
This function can also be used to convert data from other History adapters like History or SQL.

The given ids are not checked against the ioBroker database and do not need to be set up there, but can only be accessed directly.
A successful response do not mean that the data are really written out to the disk. It just means that they were processed.

The given ids are not checked against the ioBroker database and do not need to be set up or enabled there. If own IDs are used without settings then the "rules" parameter is not supported and will result in an error. The default "Maximal number of stored in RAM values" is used for such IDs.

The Message can have one of the following three formats:
* one ID and one state object
Expand Down
1 change: 0 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,6 @@ function storeStatePushData(id, state, applyRules) {
let pushFunc = applyRules ? pushHistory : pushHelper;
if (!history[id] || !history[id][adapter.namespace]) {
if (applyRules) {
adapter.log.warn(`storeState: history not enabled for ${id}, so can not apply the rules as requested`);
throw new Error(`history not enabled for ${id}, so can not apply the rules as requested`);
}
history[id] = history[id] || {};
Expand Down

0 comments on commit 267f1ea

Please sign in to comment.