From bcf8b117580c6ca02aff2316196e54e52e5a4433 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 22 Feb 2022 09:51:51 +0100 Subject: [PATCH] Added power graph. --- esphome/epaperframe.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/esphome/epaperframe.yaml b/esphome/epaperframe.yaml index fdab4ae..a8bf3be 100644 --- a/esphome/epaperframe.yaml +++ b/esphome/epaperframe.yaml @@ -165,6 +165,13 @@ text_sensor: entity_id: sensor.wohnzimmer_feinstaub_warnstufe id: wzpm +graph: + - id: line_power_graph + sensor: power_total + duration: 2h + width: 235 + height: 100 + time: - platform: homeassistant id: homeassistant_time @@ -654,7 +661,7 @@ display: Draw the outline of a rectangle with the top left at [86,21], a width of 297 and a height of 3 */ - it.filled_rectangle(76, 21, 317, 3); + it.filled_rectangle(76, 21, 307, 3); /* C1024 logo */ it.image(10 , 37, id(c1024_logo)); @@ -763,6 +770,8 @@ display: it.print(207 + offsetX, 20 + offsetY, id(sub_sensor_font), TextAlign::BASELINE_RIGHT, " - W"); } + it.graph(10 + offsetX, 30 + offsetY, id(line_power_graph)); + /* Serverroom */ offsetY = 247; it.print(10 + offsetX, 10 + offsetY, id(sensor_unit), "Serverraum");