WIP #120 History chart based on attributes

This commit is contained in:
Yegor Vialov
2018-10-29 00:58:52 +02:00
parent c20200b609
commit 91db34badb
9 changed files with 327 additions and 21 deletions

View File

@ -4,6 +4,13 @@ class ClimateEntity extends Entity {
@override
double widgetHeight = 38.0;
@override
EntityHistoryConfig historyConfig = EntityHistoryConfig(
chartType: EntityHistoryWidgetType.numericAttributes,
numericState: false,
numericAttributesToShow: ["temperature", "current_temperature"]
);
static const SUPPORT_TARGET_TEMPERATURE = 1;
static const SUPPORT_TARGET_TEMPERATURE_HIGH = 2;
static const SUPPORT_TARGET_TEMPERATURE_LOW = 4;