mam elektricke podlahove topeni s termostaty Tuya, pridane v HA pomoci integrace local Tuya. Vse funguje celkem dobre. Dale bych rad pocital spotrebu topeni na zaklade doby sepnuti termostatu a znameho prikonu. Stav sepnuti temostatu vycitam primo ze zarizeni pomoci sensoru Big Bathroom consumption, dale prevadim na kWh pomoci sensoru big_bathroom_energy_spend a vkladam do citace pomoci utility metru big_bathroom_consumption_daily.
Problem je, ze to pocita spatne. V tomto pripade viz screen by spotreba mela byt kolem 1kWh, kdezto big_bathroom_energy_spend napocital 8kWh. Tusim ze problem je v parametrech senzoru. Poradi nekdo jak zmenit aby pocital spravne?
Kód: Vybrat vše
# Power consumption
template:
- sensor:
- name: Big Bathroom heating consumption
unit_of_measurement: W
state: >
{% if is_state_attr('climate.big_bathroom_thermostat', 'hvac_action', 'heating') %}
750
{% else %}
0
{% endif %}
sensor:
- platform: integration
source: sensor.big_bathroom_heating_consumption
name: big_bathroom_energy_spend
unit_prefix: k
utility_meter:
big_bathroom_consumption_daily:
source: sensor.big_bathroom_energy_spend
cycle: daily
big_bathroom_consumption_weekly:
source: sensor.big_bathroom_energy_spend
cycle: weekly
big_bathroom_consumption_monthly:
source: sensor.big_bathroom_energy_spend
cycle: monthly