From b34300e8f3c8d5f8517833b754f40fdec022a4e8 Mon Sep 17 00:00:00 2001 From: gunstr Date: Mon, 18 Dec 2023 19:31:23 +0100 Subject: [PATCH] Set the compressor power consumption as a substitution --- README.md | 9 ++++++++- rego1000-v3.14.0.yaml | 1 + rego1000.yaml | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6010265..209acf5 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,30 @@ ESPHome component for Rego 1000 heat pump controller, found in: + * IVT Greenline HE/HC/HA * IVT Premiumline A Plus * IVT Premiumline EQ * IVT Premiumline HQ ### Features + * Poll any variable from heat pump (temperature sensors, timers, PID control values..) * Read any passive data on the heat pump CAN bus (used for i.e. compressor on/off state) * Set indoor setpoint using the Home assistant climate integration -* Act as an IVT indoor sensor using the tempeature from a home assistant integrated temperature sensor +* Act as an IVT indoor sensor using the temperature from a home assistant integrated temperature sensor * Set any heat pump variable, e.g. hysterisis, admin access, hot water eco/comfort mode ### Installation + +If the calculated sensor `Energy consumption compressor` will be used the estimated compressor power consumption should be set (or added if missing) in the `rego1000-vx.x.x.yaml file` + Make changes to secrets and CAN bus pins in rego1000.yaml, then install it on the ESP32 using + ```bash esphome run rego1000-.yaml ``` ### Connection + ![Connection overview](connection_overview.jpg) ![Connection](connection.jpg) diff --git a/rego1000-v3.14.0.yaml b/rego1000-v3.14.0.yaml index 37332d6..7fadb27 100644 --- a/rego1000-v3.14.0.yaml +++ b/rego1000-v3.14.0.yaml @@ -1,4 +1,5 @@ substitutions: + COMPRESSOR_POWER: "2.6" REGO_CAN_SUFFIX: "270" ACCESSORIES_CONNECTED_BITMASK: "0x0000" ACCESS_LEVEL: "0x0001" diff --git a/rego1000.yaml b/rego1000.yaml index 8dcbe12..fe15404 100644 --- a/rego1000.yaml +++ b/rego1000.yaml @@ -162,6 +162,8 @@ sensor: filters: - lambda: return x / 3600.0; accuracy_decimals: 2 + + # If this calculated sensor is used the COMPRESSOR_POWER should be set in the rego1000-vx.x.x.yaml file - platform: template id: energy_consumption_compressor name: Energy consumption compressor @@ -170,7 +172,7 @@ sensor: device_class: "energy" accuracy_decimals: 2 lambda: |- - return (id(op_time_compressor_heating).state + id(op_time_compressor_dwh).state) * 2.3; + return (id(op_time_compressor_heating).state + id(op_time_compressor_dwh).state) * $COMPRESSOR_POWER; update_interval: 60s - platform: rego1000