Power stats

This commit is contained in:
monster
2019-02-09 23:56:22 +03:00
parent 246739d538
commit 790a26b00e
4 changed files with 90 additions and 53 deletions
@@ -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) }}"
@@ -2,21 +2,21 @@
sensors:
dishwasher_consumed:
friendly_name: "Посудомойка потреблено"
unit_of_measurement: 'wH'
value_template: "{{ state_attr('switch.plug_158d0001a68c64', 'power_consumed') }}"
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('switch.plug_158d0001a68c64', 'power_consumed') / 1000 }}"
washer_consumed:
friendly_name: "Стиралка потреблено"
unit_of_measurement: 'wH'
value_template: "{{ state_attr('switch.plug_158d0001a4cfb4', 'power_consumed') }}"
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('switch.plug_158d0001a4cfb4', 'power_consumed') / 1000 }}"
tv_consumed:
friendly_name: "ТВ потреблено"
unit_of_measurement: 'wH'
value_template: "{{ state_attr('switch.plug_158d0001104a0c', 'power_consumed') }}"
thermopot_consumed:
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('switch.plug_158d0001104a0c', 'power_consumed') / 1000 }}"
thermopot_consumed2:
friendly_name: "Термопот потреблено"
unit_of_measurement: 'wH'
value_template: "{{ state_attr('switch.plug_158d0001a68b18', 'power_consumed') }}"
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('switch.plug_158d0001a68b18', 'power_consumed') / 1000 }}"
conditioner_consumed:
friendly_name: "Кондиционер потреблено"
unit_of_measurement: 'wH'
value_template: "{{ state_attr('switch.plug_158d00010dd98d', 'power_consumed') }}"
unit_of_measurement: 'kWh'
value_template: "{{ state_attr('switch.plug_158d00010dd98d', 'power_consumed') / 1000 }}"
@@ -1,9 +1,9 @@
thermopot_hourly:
source: sensor.thermopot_consumed
thermopot_hourly2:
source: sensor.thermopot_consumed2
cycle: hourly
thermopot_dialy:
source: sensor.thermopot_consumed
thermopot_dialy2:
source: sensor.thermopot_consumed2
cycle: daily
thermopot_monthly:
source: sensor.thermopot_consumed
thermopot_monthly2:
source: sensor.thermopot_consumed2
cycle: monthly