Energy Monitoring
Closed this issue · 6 comments
arnonel commented
Hi there
Does this solution, or 4IE/6IE support energy monitoring?
peternash commented
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 %}
arnonel commented
Thanks, do you use Home Assistant Energy to do this?
…On Thu, 2 May 2024 at 11:30, Peter Nash ***@***.***> wrote:
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 %}
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB42YAI5COWCAHXCMDTZMUDZAIIT3AVCNFSM6AAAAABHBZIBUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGEZTCMRQHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
-----------------------
Arno Nel ***@***.***>
-----------------------
peternash commented
Yes, the template sensor can be added as an Individual Energy Source in the HA Energy dashboard
peternash commented
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 %}
arnonel commented
Amazing, thanks bud
…On Thu, 2 May 2024 at 11:37, Peter Nash ***@***.***> wrote:
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 %}
—
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB42YAMSZG3MDD22OZCC6RDZAIJPXAVCNFSM6AAAAABHBZIBUOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGE2TIMZQGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
-----------------------
Arno Nel ***@***.***>
-----------------------
artmg commented
Thanks for the useful question, @arnonel and for your very clear explanation, @peternash which I have transferred into the Configuration ideas in our wiki