From bbcb5b05977686ba9e35ea90c6feea610a831af9 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 22 Aug 2021 19:52:06 +0200 Subject: [PATCH] Add washing machine measurement --- configuration/configuration.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index 01fc424..7a6f6fe 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -325,6 +325,12 @@ sensor: port: 993 username: 'home-assistant@nerull7.info' password: !secret imap_password + # Power + - platform: integration + name: "Washing machine energy Total" + unit_prefix: k + unit_time: h + source: sensor.washing_machine_electrical_measurement binary_sensor: - name: Desktop @@ -541,7 +547,6 @@ input_number: template: - sensor: - name: "3d_printer_kWh" - friendly_name_template: "3D printer energy (Total)" unit_of_measurement: "kWh" state_class: measurement device_class: energy @@ -552,5 +557,13 @@ template: {% else %} {{ states('sensor.3d_printer_kWh') }} {% endif%} + attributes: + last_reset: '1970-01-01T00:00:00+00:00' + - name: "washing_machine_kWh" + unit_of_measurement: "kWh" + state_class: measurement + device_class: energy + state: > + {{ states('sensor.washing_machine_energy_total') }} attributes: last_reset: '1970-01-01T00:00:00+00:00' \ No newline at end of file