Power stats
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
counter_hot_money_monthly:
|
||||||
|
friendly_name: "Горячая в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.counter_hot_monthly') | float * 188.53) | round(2) }}"
|
||||||
|
counter_cold_money_monthly:
|
||||||
|
friendly_name: "Холодная в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.counter_cold_monthly') | float * 38.06) | round(2) }}"
|
||||||
|
power_money_monthly:
|
||||||
|
friendly_name: "Электричество в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.power_monthly') | float * 4.37) | round(2) }}"
|
||||||
|
dishwasher_money_monthly:
|
||||||
|
friendly_name: "Посудомойка в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.dishwasher_monthly') | float * 4.37) | round(2) }}"
|
||||||
|
washer_money_monthly:
|
||||||
|
friendly_name: "Стиралка в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.washer_monthly') | float * 4.37) | round(2) }}"
|
||||||
|
tv_money_monthly:
|
||||||
|
friendly_name: "ТВ в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.tv_monthly') | float * 4.37) | round(2) }}"
|
||||||
|
thermopot_money_monthly:
|
||||||
|
friendly_name: "Термопот в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.thermopot_monthly') | float * 4.37) | round(2) }}"
|
||||||
|
conditioner_money_monthly:
|
||||||
|
friendly_name: "Кондиционер в мес"
|
||||||
|
unit_of_measurement: 'Р'
|
||||||
|
value_template: "{{ (states('sensor.conditioner_monthly') | float * 4.37) | round(2) }}"
|
||||||
+11
-11
@@ -2,21 +2,21 @@
|
|||||||
sensors:
|
sensors:
|
||||||
dishwasher_consumed:
|
dishwasher_consumed:
|
||||||
friendly_name: "Посудомойка потреблено"
|
friendly_name: "Посудомойка потреблено"
|
||||||
unit_of_measurement: 'wH'
|
unit_of_measurement: 'kWh'
|
||||||
value_template: "{{ state_attr('switch.plug_158d0001a68c64', 'power_consumed') }}"
|
value_template: "{{ state_attr('switch.plug_158d0001a68c64', 'power_consumed') / 1000 }}"
|
||||||
washer_consumed:
|
washer_consumed:
|
||||||
friendly_name: "Стиралка потреблено"
|
friendly_name: "Стиралка потреблено"
|
||||||
unit_of_measurement: 'wH'
|
unit_of_measurement: 'kWh'
|
||||||
value_template: "{{ state_attr('switch.plug_158d0001a4cfb4', 'power_consumed') }}"
|
value_template: "{{ state_attr('switch.plug_158d0001a4cfb4', 'power_consumed') / 1000 }}"
|
||||||
tv_consumed:
|
tv_consumed:
|
||||||
friendly_name: "ТВ потреблено"
|
friendly_name: "ТВ потреблено"
|
||||||
unit_of_measurement: 'wH'
|
unit_of_measurement: 'kWh'
|
||||||
value_template: "{{ state_attr('switch.plug_158d0001104a0c', 'power_consumed') }}"
|
value_template: "{{ state_attr('switch.plug_158d0001104a0c', 'power_consumed') / 1000 }}"
|
||||||
thermopot_consumed:
|
thermopot_consumed2:
|
||||||
friendly_name: "Термопот потреблено"
|
friendly_name: "Термопот потреблено"
|
||||||
unit_of_measurement: 'wH'
|
unit_of_measurement: 'kWh'
|
||||||
value_template: "{{ state_attr('switch.plug_158d0001a68b18', 'power_consumed') }}"
|
value_template: "{{ state_attr('switch.plug_158d0001a68b18', 'power_consumed') / 1000 }}"
|
||||||
conditioner_consumed:
|
conditioner_consumed:
|
||||||
friendly_name: "Кондиционер потреблено"
|
friendly_name: "Кондиционер потреблено"
|
||||||
unit_of_measurement: 'wH'
|
unit_of_measurement: 'kWh'
|
||||||
value_template: "{{ state_attr('switch.plug_158d00010dd98d', 'power_consumed') }}"
|
value_template: "{{ state_attr('switch.plug_158d00010dd98d', 'power_consumed') / 1000 }}"
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
thermopot_hourly:
|
thermopot_hourly2:
|
||||||
source: sensor.thermopot_consumed
|
source: sensor.thermopot_consumed2
|
||||||
cycle: hourly
|
cycle: hourly
|
||||||
thermopot_dialy:
|
thermopot_dialy2:
|
||||||
source: sensor.thermopot_consumed
|
source: sensor.thermopot_consumed2
|
||||||
cycle: daily
|
cycle: daily
|
||||||
thermopot_monthly:
|
thermopot_monthly2:
|
||||||
source: sensor.thermopot_consumed
|
source: sensor.thermopot_consumed2
|
||||||
cycle: monthly
|
cycle: monthly
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ views:
|
|||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Движение"
|
title: "Движение"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.motion_sensor_158d0000e7c7ad
|
- binary_sensor.motion_sensor_158d0000e7c7ad
|
||||||
- binary_sensor.motion_sensor_158d0002044548
|
- binary_sensor.motion_sensor_158d0002044548
|
||||||
@@ -88,7 +88,7 @@ views:
|
|||||||
- binary_sensor.motion_sensor_158d0001e80f0d
|
- binary_sensor.motion_sensor_158d0001e80f0d
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Протечка"
|
title: "Протечка"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.water_leak_sensor_158d0001d594fa
|
- binary_sensor.water_leak_sensor_158d0001d594fa
|
||||||
- binary_sensor.water_leak_sensor_158d0001c34960
|
- binary_sensor.water_leak_sensor_158d0001c34960
|
||||||
@@ -98,12 +98,12 @@ views:
|
|||||||
- binary_sensor.water_leak_sensor_158d00023a48f0
|
- binary_sensor.water_leak_sensor_158d00023a48f0
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Датчики дыма"
|
title: "Датчики дыма"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.smoke_sensor_158d00023115ad
|
- binary_sensor.smoke_sensor_158d00023115ad
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Двери"
|
title: "Двери"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.door_window_sensor_158d0001130141
|
- binary_sensor.door_window_sensor_158d0001130141
|
||||||
- binary_sensor.door_window_sensor_158d000111a469
|
- binary_sensor.door_window_sensor_158d000111a469
|
||||||
@@ -113,9 +113,8 @@ views:
|
|||||||
- binary_sensor.door_window_sensor_158d0001c0e46d
|
- binary_sensor.door_window_sensor_158d0001c0e46d
|
||||||
- binary_sensor.door_window_sensor_158d0001e74660
|
- binary_sensor.door_window_sensor_158d0001e74660
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Счетчики вод\
|
title: "Счетчики воды"
|
||||||
ы"
|
show_header_toggle: false
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
- sensor.epd_balance
|
- sensor.epd_balance
|
||||||
- sensor.counter_cold
|
- sensor.counter_cold
|
||||||
@@ -124,7 +123,7 @@ views:
|
|||||||
- sensor.counter_mosru_hot
|
- sensor.counter_mosru_hot
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Метки"
|
title: "Метки"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sensor.tag_mamik_band
|
- sensor.tag_mamik_band
|
||||||
- sensor.tag_monster_nut
|
- sensor.tag_monster_nut
|
||||||
@@ -132,17 +131,15 @@ views:
|
|||||||
- sensor.tag_nut_white
|
- sensor.tag_nut_white
|
||||||
- sensor.tag_nut_guest
|
- sensor.tag_nut_guest
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Пристутстви\
|
title: "Пристутствие"
|
||||||
е"
|
show_header_toggle: false
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
- sensor.presence_hall
|
- sensor.presence_hall
|
||||||
- sensor.presence_kitchen
|
- sensor.presence_kitchen
|
||||||
- sensor.presence_balcony
|
- sensor.presence_balcony
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Электропита\
|
title: "Электропитание"
|
||||||
ние"
|
show_header_toggle: false
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
- sensor.power_mosenergosbyt_balance
|
- sensor.power_mosenergosbyt_balance
|
||||||
- sensor.power_main_total
|
- sensor.power_main_total
|
||||||
@@ -184,63 +181,69 @@ views:
|
|||||||
icon: mdi:chart-areaspline
|
icon: mdi:chart-areaspline
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Электроэнер\
|
title: "Электроэнергия"
|
||||||
гия"
|
show_header_toggle: false
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.power_hourly
|
||||||
- sensor.power_dialy
|
- sensor.power_dialy
|
||||||
- sensor.power_monthly
|
- sensor.power_monthly
|
||||||
- sensor.power_hourly
|
- sensor.power_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Горячая вода"
|
title: "Горячая вода"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sensor.counter_hot_hourly
|
- sensor.counter_hot_hourly
|
||||||
- sensor.counter_hot_dialy
|
- sensor.counter_hot_dialy
|
||||||
- sensor.counter_hot_monthly
|
- sensor.counter_hot_monthly
|
||||||
|
- sensor.counter_hot_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Холодная вод\
|
title: "Холодная вода"
|
||||||
а"
|
show_header_toggle: false
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
- sensor.counter_cold_hourly
|
- sensor.counter_cold_hourly
|
||||||
- sensor.counter_cold_dialy
|
- sensor.counter_cold_dialy
|
||||||
- sensor.counter_cold_monthly
|
- sensor.counter_cold_monthly
|
||||||
|
- sensor.counter_cold_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Посудомойка"
|
title: "Посудомойка"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.dishwasher_hourly
|
||||||
- sensor.dishwasher_dialy
|
- sensor.dishwasher_dialy
|
||||||
- sensor.dishwasher_monthly
|
- sensor.dishwasher_monthly
|
||||||
- sensor.dishwasher_hourly
|
- sensor.dishwasher_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Стиралка"
|
title: "Стиралка"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.washer_hourly
|
||||||
- sensor.washer_dialy
|
- sensor.washer_dialy
|
||||||
- sensor.washer_monthly
|
- sensor.washer_monthly
|
||||||
- sensor.washer_hourly
|
- sensor.washer_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Телевизор"
|
title: "Телевизор"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.tv_hourly
|
||||||
- sensor.tv_dialy
|
- sensor.tv_dialy
|
||||||
- sensor.tv_monthly
|
- sensor.tv_monthly
|
||||||
- sensor.tv_hourly
|
- sensor.tv_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Термопот"
|
title: "Термопот"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sensor.thermopot_dialy
|
- sensor.thermopot_hourly2
|
||||||
- sensor.thermopot_monthly
|
- sensor.thermopot_dialy2
|
||||||
- sensor.thermopot_hourly
|
- sensor.thermopot_monthly2
|
||||||
|
- sensor.thermopot_money_monthly
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Кондиционер"
|
title: "Кондиционер"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
|
- sensor.conditioner_hourly
|
||||||
- sensor.conditioner_dialy
|
- sensor.conditioner_dialy
|
||||||
- sensor.conditioner_monthly
|
- sensor.conditioner_monthly
|
||||||
- sensor.conditioner_hourly
|
- sensor.conditioner_money_monthly
|
||||||
- title: "Настройки"
|
- title: "Настройки"
|
||||||
icon: mdi:settings
|
icon: mdi:settings
|
||||||
cards:
|
cards:
|
||||||
@@ -288,7 +291,7 @@ views:
|
|||||||
cards:
|
cards:
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "ОС"
|
title: "ОС"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sensor.processor_use
|
- sensor.processor_use
|
||||||
- sensor.memory_free
|
- sensor.memory_free
|
||||||
@@ -297,7 +300,7 @@ views:
|
|||||||
- sensor.ssl_certificate_expiry
|
- sensor.ssl_certificate_expiry
|
||||||
- type: entities
|
- type: entities
|
||||||
title: "Сеть"
|
title: "Сеть"
|
||||||
show_header_toggle: true
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- sensor.speedtest_ping
|
- sensor.speedtest_ping
|
||||||
- sensor.speedtest_download
|
- sensor.speedtest_download
|
||||||
|
|||||||
Reference in New Issue
Block a user