From 82fa86a337fff050332ec921a50cde6c4e937b12 Mon Sep 17 00:00:00 2001 From: gunstr Date: Sun, 17 Dec 2023 23:36:32 +0100 Subject: [PATCH] Added sensors for energy and operational time --- rego1000.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/rego1000.yaml b/rego1000.yaml index 8bf67a6..693eabc 100644 --- a/rego1000.yaml +++ b/rego1000.yaml @@ -138,6 +138,65 @@ sensor: # state_class: "total_increasing" # device_class: "energy" # accuracy_decimals: 2 + - platform: rego1000 + id: op_time_compressor_heating + name: OpTime compressor heating + rego_variable: $STATS_COMPRESSOR_HEATING + unit_of_measurement: h + state_class: "total_increasing" + device_class: "duration" + filters: + - lambda: return x / 3600.0; + accuracy_decimals: 2 + - platform: rego1000 + id: op_time_compressor_dwh + name: OpTime compressor dhw + rego_variable: $STATS_COMPRESSOR_DHW + unit_of_measurement: h + state_class: "total_increasing" + device_class: "duration" + filters: + - lambda: return x / 3600.0; + accuracy_decimals: 2 + - platform: template + id: energy_consumption_compressor + name: Energy consumption compressor + unit_of_measurement: kWh + state_class: "total_increasing" + device_class: "energy" + accuracy_decimals: 2 + lambda: |- + return (id(op_time_compressor_heating).state + id(op_time_compressor_dwh).state) * 2.3; + update_interval: 60s + - platform: rego1000 + id: energy_consumption_add_heating + name: Energy consumption add heating + rego_variable: $STATS_ELECTR_ADD_HEATING + value_factor: .001 + unit_of_measurement: kWh + state_class: "total_increasing" + device_class: "energy" + accuracy_decimals: 2 + - platform: rego1000 + id: energy_consumption_add_dhw + name: Energy consumption add dhw + rego_variable: $STATS_ELECTR_ADD_DHW + value_factor: .001 + unit_of_measurement: kWh + state_class: "total_increasing" + device_class: "energy" + accuracy_decimals: 2 + - platform: template + id: energy_consumption_add + name: Energy consumption add + unit_of_measurement: kWh + state_class: "total_increasing" + device_class: "energy" + accuracy_decimals: 2 + lambda: |- + return id(energy_consumption_add_heating).state + id(energy_consumption_add_dhw).state; + update_interval: 60s + binary_sensor: - platform: rego1000