You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps it is possible to "catch" the idle state of the water heater by the help of small calculations between current water temperature and set water temperature. In case current_temperature<set_temperature the water heater is working. The power consumption is also known because it can be of 3 states.
I usually use my water heater only at 2000W. So in configuration.yaml I've created a simple binary sensor to measure power consumption.
`binary_sensor:
platform: template
sensors:
boiler_state:
friendly_name: Boiler State
entity_id:
- binary_sensor.boiler_state
value_template: >-
{%- if (state_attr('climate.water_heater', 'temperature')-state_attr('climate.water_heater', 'current_temperature'))>1 -%}
on
{%- else -%}
off
{%- endif -%}
I already thought about a similar implementation, but I didn't get around to checking everything )
So if your test was good enough I will implement this feature.
Perhaps it is possible to "catch" the idle state of the water heater by the help of small calculations between current water temperature and set water temperature. In case current_temperature<set_temperature the water heater is working. The power consumption is also known because it can be of 3 states.
I usually use my water heater only at 2000W. So in configuration.yaml I've created a simple binary sensor to measure power consumption.
`binary_sensor:
sensors:
boiler_state:
friendly_name: Boiler State
entity_id:
- binary_sensor.boiler_state
value_template: >-
{%- if (state_attr('climate.water_heater', 'temperature')-state_attr('climate.water_heater', 'current_temperature'))>1 -%}
on
{%- else -%}
off
{%- endif -%}
sensor:
entity_id: binary_sensor.boiler_state
create_energy_sensor: true
mode: fixed
fixed:
power: 2000
name: "Water heater consumption"`
I'm still testing this scenario. Any thoughts about its usability?
The text was updated successfully, but these errors were encountered: