Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Energy Calculation #2

Open
Korol-Yurii opened this issue Aug 27, 2022 · 1 comment
Open

Energy Calculation #2

Korol-Yurii opened this issue Aug 27, 2022 · 1 comment

Comments

@Korol-Yurii
Copy link

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 -%}

sensor:

  • platform: powercalc
    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?

@dentra
Copy link
Owner

dentra commented Oct 11, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants