Log states into SQL database
Calculates consumption for defined sensors and resources
Statistics for the SQL History Adapter databases