ha-warmup/warmup

Energy Monitoring

Closed this issue · 6 comments

Hi there

Does this solution, or 4IE/6IE support energy monitoring?

I have a 6iE. This integration exposes a climate entity which has an energy attribute for the daily power consumption. I then use a template sensor to extract that in a format that can be used for energy monitoring.

template:
  - sensor:
      - name: "ES bathroom underfloor daily energy"
        unique_id: "es_bathroom_underfloor_daily_energy"
        device_class: energy
        state_class: total_increasing
        unit_of_measurement: "kWh"
        state: >
          {% if states.climate.es_bathroom_underfloor %}
            {{ state_attr('climate.es_bathroom_underfloor', 'energy') }}
          {% else %}
            ??
          {% endif %}

Yes, the template sensor can be added as an Individual Energy Source in the HA Energy dashboard

You can also extract the floor and room temperature attributes as sensors in the same way:

template:
  - sensor:
      - name: "ES bathroom underfloor air temperature"
        unique_id: "es_bathroom_underfloor_air_temperature"
        device_class: temperature
        unit_of_measurement: "°C"
        icon: "mdi:thermometer-lines"
        state: >
          {% if states.climate.es_bathroom_underfloor %}
            {{ state_attr('climate.es_bathroom_underfloor', 'air_temperature') }}
          {% else %}
            ??
          {% endif %}
      - name: "ES bathroom underfloor floor temperature"
        unique_id: "es_bathroom_underfloor_floor_temperature"
        device_class: temperature
        unit_of_measurement: "°C"
        icon: "mdi:thermometer-lines"
        state: >
          {% if states.climate.es_bathroom_underfloor %}
            {{ state_attr('climate.es_bathroom_underfloor', 'floor_temperature') }}
          {% else %}
            ??
          {% endif %}

Thanks for the useful question, @arnonel and for your very clear explanation, @peternash which I have transferred into the Configuration ideas in our wiki