Files
2026-08-10 19:42:19 +00:00

44 lines
1.5 KiB
YAML

template:
- sensor:
- name: heat_total
unit_of_measurement: gKal
default_entity_id: sensor.heat_total
state: >-
{% set v = states('sensor.saures_teploschetchik_fonvizina') %}
{{ ((v | float + 32.7600) | round(4)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
- name: heat_hourly_cost
unit_of_measurement: '₽'
state: >-
{% set v = states('sensor.heat_hourly') %}
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
- name: heat_daily_cost
unit_of_measurement: '₽'
state: >-
{% set v = states('sensor.heat_daily') %}
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
- name: heat_monthly_cost
unit_of_measurement: '₽'
state: >-
{% set v = states('sensor.heat_monthly') %}
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
utility_meter:
heat_hourly:
source: sensor.saures_teploschetchik_fonvizina
cycle: hourly
heat_daily:
source: sensor.saures_teploschetchik_fonvizina
cycle: daily
heat_monthly:
source: sensor.saures_teploschetchik_fonvizina
cycle: monthly
homeassistant:
customize:
sensor.heat_hourly:
friendly_name: Тепло в час
sensor.heat_daily:
friendly_name: Тепло в день
sensor.heat_monthly:
friendly_name: Тепло в месяц