Added power graph.

This commit is contained in:
Marcus Scholz 2022-02-22 09:51:51 +01:00
parent f7ffbdc183
commit bcf8b11758

View File

@ -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");