Quatt heat pump integration

It might be the case that you need to delete and reconfigure the integration in order to select an existing power sensor. (Let me know if that’s the case) Also, do you see a numeric value for flowRate for the flowMeter? For me that is currently the issue, resulting in COP unavailable but that seems to be an issue with my flowmeter.

I have currently two improvements planned, one is the options flow to configure and change the settings (IP and power sensor) when already set-up. Secondly, to better detect entities that should be disabled or enabled. For example hp2 is currently disabled by default for everyone and OpenTherm boiler data is enabled even when boiler is connected through one-off, resulting in a bunch of unavailable sensors.

If you have features or ideas, I’m happy to hear them :wink:

I see values for both flow rate and flow meter.
I don’t have a power sensor that measures the power consumption of the Quatt. What do you use for this? What device I mean. Quatt does not expose this info in the API yet, right?

And yes, I had to remove the integration and re-add it to see an option to select power sensor. But for now this is not helping since I am missing this power sensor to measure HP electrical power consumption.

When and if Quatt exposes it, your integration might need an update to automatically use this data.

Finally got time to test out the integration. Working quite nicely on this end! Now next steps are how t create a nice Dashboard for the Quatt.

I am envisioning a image of the quatt in a standard home setup (So an image of the Quatt, a Central Heating furness and the pipes in a diagram). So i can add all of the devices in one simple overview.
I created a overview in PPT, but not yet happy with the way it looks, yet.

Maybe I overlook it, but does the API only allow to read/monitor stuff, or also to control it? Like turning heat up/down on/of?

The API provided by Quatt only gives reading possibilities. So this is what @mbotje has integrated.

Point of the integration is that it is a simple method of integratie your Quatt into HA with all of the different sensors by only typing your up-address.

I can connect to my thermostaat through another HA integrations so I am able to control the heating and the extra sensors added by this integration help in that proces.

The API now exposes power information. Unfortunately it’s only instant power (powerInput). I’d love to see statistics about kWh. But I guess there are ways to compute that from instant power. After reading a bit, it seems people have been able to calculate kWh from a W sensor using the Riemman sum integral:

  "hp1": {
    "modbusSlaveId": 1,
    "getMainWorkingMode": 0,
    "temperatureOutside": 15.35,
    "temperatureWaterIn": 16.27,
    "temperatureWaterOut": 16.45,
    "powerInput": 5.150232,
    "power": 0,
    "silentModeStatus": false,
    "limitedByCop": false
  }

@mbotje this would be a nice to have: kWh calculation from the powerInput W sensor to track power consumption.

I believe I can confidently confirm that “power” is the heat power output, similar to how @krizzziz calculated his Quatt CiC Heatpower. The values are very close to each other. And power input is electrical power used instantly.

1 Like

Agreed! Would be a better integration than the one I suggested a longer time ago.

So @mbotje I am a happy user of the addon. Works great! Saw an update of the integration displaying the power device. Really nice! Keep up the good work.

I agree that energy in kWh is more useful than power. I don’t know if it’s possible to configure a Riemann sum sensor from this integration. We could do a simple Riemann ourselves off course. I think it would be better if Quatt would expose the total energy used through the API.

The power and powerInput are already added to the integration by another contributor. So I’m happy to see the integration gaining some traction and I’ll try to keep adding the new features as they become available.

1 Like

Yesterday the integration has been accepted in the default HACS repos so no every HACS user can find the Quatt Integration without adding a custom repo :tada:

5 Likes

@mbotje any ideas on how we can utilize the COP calculation you have in the integration so we can make a NEW COP value like a daily/weekly/monthly/yearly average?

I am now checking my COP for that day in the graphs…

@Doublet where is your example of your Quatt card? I really liked the idea!

I will post it again tomorrow with some small improvements,

Here is my picture elements card. I have used the sensors from the @mbotje integration:

Screenshot 2023-10-23 at 09.36.37

type: picture-elements
elements:
  - type: state-label
    entity: sensor.heatpump_hp1_quatt_cop
    style:
      top: 59%
      left: 35%
  - type: state-label
    entity: sensor.heatpump_qc_supervisory_control_mode
    style:
      top: 93%
      left: 42%
  - type: state-label
    entity: sensor.heatpump_hp1_temperaturewaterout
    style:
      top: 40%
      left: 88%
  - type: state-label
    entity: sensor.heatpump_hp1_temperaturewaterin
    style:
      top: 54%
      left: 88%
  - type: state-label
    entity: sensor.heatpump_hp1_powerinput
    style:
      top: 71%
      left: 87%
  - type: state-label
    entity: sensor.heatpump_flowmeter_flowrate
    style:
      top: 46%
      left: 60%
  - type: state-label
    entity: sensor.heatpump_hp1_temperatureoutside
    style:
      top: 18%
      left: 50%
  - type: state-label
    entity: sensor.heatpump_thermostat_room_setpoint
    style:
      top: 54%
      left: 11%
  - type: state-label
    entity: sensor.heatpump_thermostat_room_temperature
    style:
      top: 76%
      left: 11%
image: /local/Quatt.png

1 Like

Nice! I works, i only neeed to change the sensor for the power…

Ik heb 4 sensoren in HA gemaakt om de input power en de heat power in Watt om te zetten naar kWh. Ik ben nu aan het vergelijken met de grafieken in de Quatt app en het komt redelijk overeen.

Mocht je interesse hebben, doe er je voordeel mee…

De eerste twee sensore gebruiken de Riemann sum integral https://www.home-assistant.io/integrations/integration/ om W om te zetten naar kWh:

- platform: integration
  name: "Quatt Power Input kWh"
  source: sensor.heatpump_hp1_powerinput
  unit_prefix: k
  round: 2
  method: left
    
- platform: integration
  name: "Quatt Heat Power kWh"
  source: sensor.heatpump_hp1_power
  unit_prefix: k
  round: 2
  method: left

Dit levert een continue oplopende waarde, dus daarmee het totale verbruik in kWh. Om deze vervolgens om te zetten in een dagelijks verbruik, heb ik nog twee extra sensoren aangemaakt met de Utility Meter (https://www.home-assistant.io/integrations/utility_meter/):

utility_meter:
  quatt_power_input_kwh_hourly:
    source: sensor.quatt_power_input_kwh
    name: Quatt Power Input kWh Hourly
    cycle: hourly
    offset: 00:00
  quatt_heat_power_kwh_hourly:
    source: sensor.quatt_heat_power_kwh
    name: Quatt Heat Power kWh Hourly
    cycle: hourly
    offset: 00:00

En de laatste stap voor in het HA dasboard gebruik ik een Statiscs Graph (https://www.home-assistant.io/dashboards/statistics-graph) om het dagelijkse verbruik te tonen:

Per uur:

chart_type: bar
period: hour
type: statistics-graph
entities:
  - sensor.quatt_power_input_kwh_hourly
  - sensor.quatt_heat_power_kwh_hourly
stat_types:
  - state
title: Hourly kWh
days_to_show: 1

En per dag:

chart_type: bar
period: day
type: statistics-graph
entities:
  - sensor.quatt_power_input_kwh_hourly
  - sensor.quatt_heat_power_kwh_hourly
stat_types:
  - sum
title: Daily kWh
days_to_show: 7

En het resultaat in HA heeft een zeer kleine afwijking (paar %-tjes) tov de Quatt App:

2 Likes

Wellicht handig om deze link ook te delen op de OP.

Nieuwe Quatt en HA forum op Tweakers:

https://gathering.tweakers.net/forum/list_message/76981226#76981226

Here is my new Tado version of the Picture element card, including 3 conditional appearing icons :slight_smile:

Screenshot 2023-10-31 at 21.02.21

This version is also better in the dark mode:

Screenshot 2023-10-31 at 21.06.52

type: picture-elements
elements:
  - type: state-label
    entity: sensor.heatpump_hp1_quatt_cop
    style:
      top: 59%
      left: 38%
  - type: state-label
    entity: sensor.heatpump_qc_supervisory_control_mode
    style:
      top: 93%
      left: 45%
  - type: state-label
    entity: sensor.heatpump_hp1_temperaturewaterout
    style:
      top: 40%
      left: 90%
  - type: state-label
    entity: sensor.heatpump_hp1_temperaturewaterin
    style:
      top: 54%
      left: 90%
  - type: state-label
    entity: sensor.heatpump_hp1_powerinput
    style:
      top: 71%
      left: 90%
  - type: state-label
    entity: sensor.heatpump_flowmeter_flowrate
    style:
      top: 46%
      left: 63%
  - type: state-label
    entity: sensor.heatpump_hp1_temperatureoutside
    style:
      top: 17%
      left: 52%
  - type: state-label
    entity: sensor.heatpump_thermostat_room_setpoint
    style:
      top: 46%
      left: 13%
      font-size: 16px
  - type: state-label
    entity: sensor.heatpump_thermostat_room_temperature
    style:
      top: 76%
      left: 13%
  - type: conditional
    conditions:
      - entity: sun.sun
        state: above_horizon
    elements:
      - type: image
        image: /local/Sun.png
        style:
          top: 18%
          left: 34%
          width: 20%
  - type: conditional
    conditions:
      - entity: sun.sun
        state: below_horizon
    elements:
      - type: image
        image: /local/Moon.png
        style:
          top: 17%
          left: 34%
          width: 20%
  - type: conditional
    conditions:
      - entity: binary_sensor.heatpump_hp1_silentmode
        state: 'on'
    elements:
      - type: image
        image: /local/Stilte.png
        style:
          top: 18%
          left: 87%
          width: 14%
  - type: conditional
    conditions:
      - entity: binary_sensor.heatpump_boiler_heating
        state: 'on'
    elements:
      - type: image
        image: /local/Boiler.png
        style:
          top: 18%
          left: 13%
          width: 13%
image: /local/Quatt3.png

Stilte


Sun

1 Like

@mbotje the integration is missing the power sensor for HP2. See https://github.com/marcoboers/home-assistant-quatt/issues/46

Thanks, I get the notifications from GitHub as well :wink:
Will look into it in the next few days