From 9cb3e1af0b64f54e8ff142118fd17a3a64da65dd Mon Sep 17 00:00:00 2001 From: gilder0 <26692162+gilder0@users.noreply.github.com> Date: Thu, 9 Dec 2021 20:03:14 +0100 Subject: [PATCH 1/4] Added attributes for support of long-term statistics. Added calculation in kWh for Energy Consumed for Heat and DHW Added force update of Power Consumption for smooth calculation of Energy Consumed. --- Integrations/Home Assistant/heishamon.yaml | 31 +++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Integrations/Home Assistant/heishamon.yaml b/Integrations/Home Assistant/heishamon.yaml index dff642bd..a70b2eee 100644 --- a/Integrations/Home Assistant/heishamon.yaml +++ b/Integrations/Home Assistant/heishamon.yaml @@ -305,35 +305,47 @@ sensor: name: Aquarea Actual Tank Temperature state_topic: "panasonic_heat_pump/main/DHW_Temp" unit_of_measurement: '°C' + state_class: 'measurement' #TOP11 - Compressor Operating Time - platform: mqtt name: Aquarea Compressor Operating Hours state_topic: "panasonic_heat_pump/main/Operations_Hours" unit_of_measurement: 'Hours' + state_class: total #TOP12 - Compressor On/Off cycle number - platform: mqtt name: Aquarea Compressor Start/Stop Counter state_topic: "panasonic_heat_pump/main/Operations_Counter" + state_class: total + #TOP14 - Outdoor unit ambient temperature - platform: mqtt name: Aquarea Outdoor Ambient state_topic: "panasonic_heat_pump/main/Outside_Temp" unit_of_measurement: '°C' + state_class: 'measurement' #TOP15 - Heating power produced - platform: mqtt name: Aquarea Power Produced state_topic: "panasonic_heat_pump/main/Heat_Energy_Production" unit_of_measurement: 'W' + device_class: 'power' + state_class: 'measurement' + force_update: true #TOP16 - Heating power consumed - platform: mqtt name: Aquarea Power Consumed state_topic: "panasonic_heat_pump/main/Heat_Energy_Consumption" unit_of_measurement: 'W' + device_class: 'power' + state_class: 'measurement' + force_update: true + #TOP17 - Heating powerful mode - platform: mqtt @@ -406,12 +418,18 @@ sensor: name: Aquarea DHW Power Produced state_topic: "panasonic_heat_pump/main/DHW_Energy_Production" unit_of_measurement: 'W' + device_class: 'power' + state_class: 'measurement' + force_update: true #TOP41 - DHW power consumed - platform: mqtt name: Aquarea DHW Power Consumed state_topic: "panasonic_heat_pump/main/DHW_Energy_Consumption" unit_of_measurement: 'W' + device_class: 'power' + state_class: 'measurement' + force_update: true #TOP44 - Last active error - platform: mqtt @@ -615,7 +633,18 @@ sensor: {%- else -%} n/a {%- endif -%} - + #Calculation Energy consumed (kWh) - DHW + - platform: integration + source: sensor.aquarea_dhw_power_consumed + name: aquarea_dhw_power_consumed_kwh + unit_prefix: k + method: left + #Calculation Energy consumed (kWh) - Heat + - platform: integration + source: sensor.aquarea_power_consumed + name: aquarea_power_consumed_kwh + unit_prefix: k + method: left # switch # From f28a7ee16056170a64290b4bca1d22ad94799646 Mon Sep 17 00:00:00 2001 From: gilder0 <26692162+gilder0@users.noreply.github.com> Date: Thu, 9 Dec 2021 21:13:39 +0100 Subject: [PATCH 2/4] Fix HA Errors and Warnings --- Integrations/Home Assistant/heishamon.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Integrations/Home Assistant/heishamon.yaml b/Integrations/Home Assistant/heishamon.yaml index dff642bd..b39ce563 100644 --- a/Integrations/Home Assistant/heishamon.yaml +++ b/Integrations/Home Assistant/heishamon.yaml @@ -606,15 +606,17 @@ sensor: friendly_name: "Aquarea COP" unit_of_measurement: "x" value_template: >- - {%- if states('sensor.heishamon_w_production') != "Unknown" -%} - {%- if states('sensor.heishamon_w_consumption') > "0" -%} - {{ '%0.1f' % ((states('sensor.heishamon_w_production') | float ) / (states('sensor.heishamon_w_consumption') | float)) }} - {%- else -%} - 0.0 - {%- endif -%} + {%- if states('sensor.heishamon_w_consumption') | float > 0 -%} + {{ '%0.1f' % ((states('sensor.heishamon_w_production') | float ) / (states('sensor.heishamon_w_consumption') | float )) }} {%- else -%} - n/a + 0.0 {%- endif -%} + availability_template: >- + {%- if is_number(states('sensor.heishamon_w_consumption')) and is_number(states('sensor.heishamon_w_production')) %} + true + {%- else %} + false + {%- endif %} From 77d3e01293af50a42476c09e38730d36c4aeee40 Mon Sep 17 00:00:00 2001 From: gilder0 <26692162+gilder0@users.noreply.github.com> Date: Fri, 10 Dec 2021 07:24:48 +0100 Subject: [PATCH 3/4] Human readable integration names --- Integrations/Home Assistant/heishamon.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Integrations/Home Assistant/heishamon.yaml b/Integrations/Home Assistant/heishamon.yaml index a70b2eee..206fb729 100644 --- a/Integrations/Home Assistant/heishamon.yaml +++ b/Integrations/Home Assistant/heishamon.yaml @@ -636,13 +636,13 @@ sensor: #Calculation Energy consumed (kWh) - DHW - platform: integration source: sensor.aquarea_dhw_power_consumed - name: aquarea_dhw_power_consumed_kwh + name: Aquarea DHW Energy Consumed unit_prefix: k method: left #Calculation Energy consumed (kWh) - Heat - platform: integration source: sensor.aquarea_power_consumed - name: aquarea_power_consumed_kwh + name: Aquarea Heat Energy Consumed unit_prefix: k method: left From 2e0ec671891e1dc4d8fb9fdde43dda9861f1dbb8 Mon Sep 17 00:00:00 2001 From: Egyras <36902688+Egyras@users.noreply.github.com> Date: Tue, 14 Dec 2021 13:10:41 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 21c358e9..d3326416 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ A json output of all received data (heatpump and 1wire) is available at the url Within the 'integrations' folder you can find examples how to connect your automation platform to the HeishaMon. +# Do not advise to use set commands too often due possible eeprom failure on Panasonic as its not tested well. + # Debug led indications On first boot the debug led will turn on after 10 seconds to let you know that there is no config yet and a HeishaMon-Setup wifi portal should be available. A factory reset can be performed on the web interface but if the web interface is unavailable you can perform a double reset. The double reset should be performed not too fast but also not too slow. Usually halve a second between both resets should do the trick. To indicate that the double reset performed a factory reset, the blue led will flash rapidly (You need to press reset again now to start HeishaMon-Setup wifi portal).