This adapter will make the configuration of statistics more easier.
The adapter only reacts on state changes (state.ack=true), not on commands!
choose from the following settings:
- count impulses or on/off changes (Only for binary values and positive edge)
- calculate costs from the counted values (Only for binary values)
- how long was status true/ON and how long false/OFF (Only for binary values)
- delta between logged analogue values (Only for analog values)
- daily max, min and average (Not for delta calculations)
- min/max over the year
- counts within 5 min and daily max, min and average of it (Not for delta calculations)
- sum up of grouped values
The adapter subscribes to the configured objects and creates his own states in the statistics tree.
2 separate trees are created:
- statistics.0.save -> final values of the time frame
- statistics.0.temp -> temporary values up to the moment of transfer to save, then temp starts again
The structure of the state is: statistics.0.{save|temp}.{kind of stat}.{original observed state}.{state of statistical value}
A german HowTo doc is available here: howto_de
- specify the relevant groups in the instance configuration page (admin => instances => statistics config)
- specify the configuration in the settings of the state (admin => objects)
- (bluefox) Caught error if structure is invalid
- (bluefox) Added sentry
- adapter.getObjectView -> controller > 2.0
- (HIRSCH-DE) bugfix main.js
- (foxthefox) delete messagehandler
- (foxthefox) adapter logs a warning when invalid values arrive and cancels further processing
- (foxthefox) correction, timecount value was milliseconds instead seconds
- (foxthefox) other calculations with 2 decimal places after comma
- (foxthefox) min/max for day/week/month/quarter/year
- (foxthefox) set of daily min/max starting point from actual value
- (foxthefox) fixing the PR with dayMin 0 at 00:00
- (foxthefox) improvement for timecount when receiving status updates and no real status change
- (foxthefox) compact mode
- (foxthefox) license added in io-package.json
- (foxthefox) ReadMe updated
- (foxthefox) type = misc-data
- first npm release
- (foxthefox) german doc added
- (foxthefox) error corrections
- (foxthefox) travis testing corrections
- (bluefox) total refactoring
- admin3 implemented
- complete rewrite to have configuration through the settings of the individual states instead in admin page
- setup running
- initial release
The MIT License (MIT)
Copyright (c) 2018-2020 foxthefox foxthefox@wysiwis.net,
Copyright (c) 2018-2020 bluefox dogafox@gmail.com