updating configuration
This commit is contained in:
@@ -3,16 +3,24 @@ template:
|
||||
- name: heat_total
|
||||
unit_of_measurement: gKal
|
||||
default_entity_id: sensor.heat_total
|
||||
state: '{{ states(''sensor.saures_teploschetchik_fonvizina'') | float + 32.7600 | round(4) }}'
|
||||
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: "{{ states('sensor.heat_hourly') | float * 3035 | round(2) }}"
|
||||
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: "{{ states('sensor.heat_daily') | float * 3035 | round(2) }}"
|
||||
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: "{{ states('sensor.heat_monthly') | float * 3035 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.heat_monthly') %}
|
||||
{{ ((v | float * 3035) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
|
||||
utility_meter:
|
||||
heat_hourly:
|
||||
@@ -29,7 +37,7 @@ homeassistant:
|
||||
customize:
|
||||
sensor.heat_hourly:
|
||||
friendly_name: Тепло в час
|
||||
sensor.heat_hourly:
|
||||
sensor.heat_daily:
|
||||
friendly_name: Тепло в день
|
||||
sensor.heat_hourly:
|
||||
sensor.heat_monthly:
|
||||
friendly_name: Тепло в месяц
|
||||
|
||||
Reference in New Issue
Block a user