updating configuration
This commit is contained in:
@@ -34,7 +34,9 @@ yandex_smart_home:
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_cloakroom
|
||||
- light.light_hall_long
|
||||
- light.light_hall_small
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
@@ -60,4 +62,170 @@ yandex_smart_home:
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
# - sensor.weather_*
|
||||
entity_config:
|
||||
light.light_balcony_spotlight:
|
||||
name: 'Светильники'
|
||||
room: 'Балкон'
|
||||
sensor.temperature_balcony_temperature:
|
||||
room: 'Балкон'
|
||||
fan.ventilation_bath:
|
||||
name: 'Вытяжка'
|
||||
room: 'Ванная'
|
||||
light.light_bath:
|
||||
room: 'Ванная'
|
||||
light.light_bath_shelf:
|
||||
name: 'Подсветка'
|
||||
room: 'Ванная'
|
||||
sensor.temperature_bath_temperature:
|
||||
room: 'Ванная'
|
||||
switch.light_bath_mirror:
|
||||
name: 'Зеркало'
|
||||
room: 'Ванная'
|
||||
climate.ac_mainroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Гостиная'
|
||||
climate.radiator_mainroom:
|
||||
room: 'Гостиная'
|
||||
cover.curtain_mainroom:
|
||||
room: 'Гостиная'
|
||||
cover.curtain_mainroom_bobbinet:
|
||||
name: 'Тюль'
|
||||
room: 'Гостиная'
|
||||
light.light_mainroom_pc_spotlight:
|
||||
name: 'Над столом'
|
||||
room: 'Гостиная'
|
||||
light.plug_yolka:
|
||||
room: 'Гостиная'
|
||||
media_player.mainroom_tv:
|
||||
room: 'Гостиная'
|
||||
sensor.temperature_mainroom_temperature:
|
||||
room: 'Гостиная'
|
||||
switch.light_mainroom_mainlamp:
|
||||
name: 'Люстра'
|
||||
room: 'Гостиная'
|
||||
switch.light_mainroom_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Гостиная'
|
||||
climate.ac_childroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Детская'
|
||||
climate.radiator_childroom:
|
||||
room: 'Детская'
|
||||
light.light_childroom_bed:
|
||||
name: 'Кровать'
|
||||
room: 'Детская'
|
||||
light.light_childroom_main:
|
||||
name: 'Люстра'
|
||||
room: 'Детская'
|
||||
light.light_childroom_spotlights:
|
||||
name: 'Над Столом'
|
||||
room: 'Детская'
|
||||
sensor.temperature_childroom_temperature:
|
||||
room: 'Детская'
|
||||
script.away_mode:
|
||||
name: 'Сценарий я ушел'
|
||||
room: 'Дом'
|
||||
switch.water_valve:
|
||||
room: 'Дом'
|
||||
fan.ventilation_shower:
|
||||
name: 'Вытяжка'
|
||||
room: 'Душевая'
|
||||
light.light_shower_main_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Душевая'
|
||||
light.light_shower_shelf_light:
|
||||
name: 'Подсветка'
|
||||
room: 'Душевая'
|
||||
light.light_shower_shower_spotlights:
|
||||
name: 'Светильники Душ'
|
||||
room: 'Душевая'
|
||||
sensor.temperature_shower_temperature:
|
||||
name: 'Температура'
|
||||
room: 'Душевая'
|
||||
switch.shower_mirror:
|
||||
name: 'Зеркало'
|
||||
room: 'Душевая'
|
||||
light.light_cloakroom:
|
||||
room: 'Кладовка'
|
||||
light.light_hall_long:
|
||||
name: 'Светильники'
|
||||
room: 'Коридор'
|
||||
light.light_hall_small:
|
||||
name: 'Светильники Маленькие'
|
||||
room: 'Коридор'
|
||||
vacuum.dreame_p2027_6b1e_robot_cleaner:
|
||||
room: 'Коридор'
|
||||
climate.ac_kitchen:
|
||||
name: 'Кондиционер'
|
||||
room: 'Кухня'
|
||||
climate.radiator_kitchen:
|
||||
room: 'Кухня'
|
||||
cover.curtain_kitchen:
|
||||
room: 'Кухня'
|
||||
cover.curtain_kitchen_bobbinet:
|
||||
name: 'Тюль'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_bar_lamp:
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_set:
|
||||
name: 'Подсветка'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Кухня'
|
||||
light.light_kitchen_table_lamp:
|
||||
name: 'Люстра'
|
||||
room: 'Кухня'
|
||||
media_player.kitchen_tv:
|
||||
room: 'Кухня'
|
||||
sensor.temperature_kitchen_temperature:
|
||||
room: 'Кухня'
|
||||
sensor.temperature_winecooler_temperature:
|
||||
room: 'Кухня'
|
||||
climate.ac_bedroom:
|
||||
name: 'Кондиционер'
|
||||
room: 'Спальня'
|
||||
climate.radiator_bedroom:
|
||||
room: 'Спальня'
|
||||
climate.radiator_bedroom_balcony:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom_balcony:
|
||||
room: 'Спальня'
|
||||
cover.curtain_bedroom_bobbinet_balcony:
|
||||
name: 'Тюль'
|
||||
room: 'Спальня'
|
||||
fan.ventiliatsionnaia_sistema:
|
||||
room: 'Спальня'
|
||||
light.danil_bedside_lamp_rgbww_light:
|
||||
name: 'Ночник Данил'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_mainlight:
|
||||
name: 'Люстра'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_nightlight_left:
|
||||
name: 'Бра левый'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_nightlight_right:
|
||||
name: 'Бра правый'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_pc_nightlight:
|
||||
name: 'Над столом бра'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_pc_spotlight:
|
||||
name: 'Над столом'
|
||||
room: 'Спальня'
|
||||
light.light_bedroom_spotlights:
|
||||
name: 'Светильники'
|
||||
room: 'Спальня'
|
||||
light.svetlana_bedside_lamp_rgbww_light:
|
||||
name: 'Ночник Света'
|
||||
room: 'Спальня'
|
||||
media_player.bedroom_tv:
|
||||
room: 'Спальня'
|
||||
sensor.temperature_bedroom_temperature:
|
||||
room: 'Спальня'
|
||||
sensor.temperature_outside_bedroom_temperature:
|
||||
room: 'Спальня'
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
yandex_smart_home:
|
||||
filter:
|
||||
include_domains:
|
||||
- cover
|
||||
- fan
|
||||
- vacuum
|
||||
include_entities:
|
||||
# радиаторы
|
||||
- climate.radiator_bedroom
|
||||
- climate.radiator_bedroom_balcony
|
||||
- climate.radiator_childroom
|
||||
- climate.radiator_kitchen
|
||||
- climate.radiator_mainroom
|
||||
# кондиционеры
|
||||
- climate.ac_mainroom
|
||||
- climate.ac_kitchen
|
||||
- climate.ac_childroom
|
||||
- climate.ac_bedroom
|
||||
# вентиляторы
|
||||
- fan.ventilation_bath
|
||||
- fan.ventilation_shower
|
||||
- fan.ventiliatsionnaia_sistema
|
||||
# свет
|
||||
- light.danil_bedside_lamp_rgbww_light
|
||||
- light.light_balcony_spotlight
|
||||
- light.light_bath
|
||||
- light.light_bath_shelf
|
||||
- light.light_bedroom_mainlight
|
||||
- light.light_bedroom_nightlight_left
|
||||
- light.light_bedroom_nightlight_right
|
||||
- light.light_bedroom_pc_nightlight
|
||||
- light.light_bedroom_pc_spotlight
|
||||
- light.light_bedroom_spotlights
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_hall_long
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
- light.light_kitchen_table_lamp
|
||||
- light.light_mainroom_pc_spotlight
|
||||
- light.light_shower_main_spotlights
|
||||
- light.light_shower_shelf_light
|
||||
- light.light_shower_shower_spotlights
|
||||
- light.svetlana_bedside_lamp_rgbww_light
|
||||
- media_player.bedroom_tv
|
||||
- media_player.kitchen_tv
|
||||
- media_player.mainroom_tv
|
||||
- script.away_mode
|
||||
- switch.light_bath_mirror
|
||||
- switch.light_mainroom_mainlamp
|
||||
- switch.light_mainroom_spotlights
|
||||
- switch.shower_mirror
|
||||
- switch.water_valve
|
||||
- vacuum.dreame_p2027_6b1e_robot_cleaner
|
||||
- light.plug_yolka
|
||||
include_entity_globs:
|
||||
- sensor.temperature_*_temperature
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
@@ -0,0 +1,65 @@
|
||||
yandex_smart_home:
|
||||
filter:
|
||||
include_domains:
|
||||
- cover
|
||||
- fan
|
||||
- vacuum
|
||||
include_entities:
|
||||
# радиаторы
|
||||
- climate.radiator_bedroom
|
||||
- climate.radiator_bedroom_balcony
|
||||
- climate.radiator_childroom
|
||||
- climate.radiator_kitchen
|
||||
- climate.radiator_mainroom
|
||||
# кондиционеры
|
||||
- climate.ac_mainroom
|
||||
- climate.ac_kitchen
|
||||
- climate.ac_childroom
|
||||
- climate.ac_bedroom
|
||||
# вентиляторы
|
||||
- fan.ventilation_bath
|
||||
- fan.ventilation_shower
|
||||
- fan.ventiliatsionnaia_sistema
|
||||
# свет
|
||||
- light.danil_bedside_lamp_rgbww_light
|
||||
- light.light_balcony_spotlight
|
||||
- light.light_bath
|
||||
- light.light_bath_shelf
|
||||
- light.light_bedroom_mainlight
|
||||
- light.light_bedroom_nightlight_left
|
||||
- light.light_bedroom_nightlight_right
|
||||
- light.light_bedroom_pc_nightlight
|
||||
- light.light_bedroom_pc_spotlight
|
||||
- light.light_bedroom_spotlights
|
||||
- light.light_childroom_bed
|
||||
- light.light_childroom_main
|
||||
- light.light_childroom_spotlights
|
||||
- light.light_cloakroom
|
||||
- light.light_hall_long
|
||||
- light.light_hall_small
|
||||
- light.light_kitchen_bar_lamp
|
||||
- light.light_kitchen_set
|
||||
- light.light_kitchen_spotlights
|
||||
- light.light_kitchen_table_lamp
|
||||
- light.light_mainroom_pc_spotlight
|
||||
- light.light_shower_main_spotlights
|
||||
- light.light_shower_shelf_light
|
||||
- light.light_shower_shower_spotlights
|
||||
- light.svetlana_bedside_lamp_rgbww_light
|
||||
- media_player.bedroom_tv
|
||||
- media_player.kitchen_tv
|
||||
- media_player.mainroom_tv
|
||||
- script.away_mode
|
||||
- switch.light_bath_mirror
|
||||
- switch.light_mainroom_mainlamp
|
||||
- switch.light_mainroom_spotlights
|
||||
- switch.shower_mirror
|
||||
- switch.water_valve
|
||||
- vacuum.dreame_p2027_6b1e_robot_cleaner
|
||||
- light.plug_yolka
|
||||
include_entity_globs:
|
||||
- sensor.temperature_*_temperature
|
||||
#exclude_entities:
|
||||
# - light.highlight
|
||||
#exclude_entity_globs:
|
||||
# - sensor.weather_*
|
||||
@@ -3,5 +3,5 @@ mqtt:
|
||||
- name: door_lock_mqtt_action
|
||||
unique_id: door_lock_mqtt_action
|
||||
state_topic: "z2m-tcp/lock_door"
|
||||
value_template: "{{ value_json.action }}"
|
||||
value_template: "{{ value_json.get('action', '') }}"
|
||||
json_attributes_topic: "z2m-tcp/lock_door"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
recorder:
|
||||
db_url: !secret recorder_db_url
|
||||
purge_keep_days: 365
|
||||
purge_keep_days: 180
|
||||
include:
|
||||
domains:
|
||||
- alarm_control_panel
|
||||
|
||||
@@ -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: Тепло в месяц
|
||||
|
||||
@@ -1,22 +1,35 @@
|
||||
template:
|
||||
- sensor:
|
||||
- unit_of_measurement: kWh
|
||||
state: "{{ states('sensor.power_total') | float - 7072.7 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_total') %}
|
||||
{{ ((v | float - 7072.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_main_total
|
||||
# 7072.7 - разница показаний.
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t1') | float * 8.23 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t1') %}
|
||||
{{ ((v | float * 8.23) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t1
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t2') | float * 2.62 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t2') %}
|
||||
{{ ((v | float * 2.62) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t2
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ states('sensor.power_monthly_t3') | float * 5.66 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.power_monthly_t3') %}
|
||||
{{ ((v | float * 5.66) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
name: power_monthly_cost_t3
|
||||
|
||||
- unit_of_measurement: ₽
|
||||
state: "{{ (states('sensor.power_monthly_cost_t1') | float) + (states('sensor.power_monthly_cost_t2') | float) + (states('sensor.power_monthly_cost_t3') | float) | round(2) }}"
|
||||
state: >-
|
||||
{% set t1 = states('sensor.power_monthly_cost_t1') %}
|
||||
{% set t2 = states('sensor.power_monthly_cost_t2') %}
|
||||
{% set t3 = states('sensor.power_monthly_cost_t3') %}
|
||||
{% set bad = ['unavailable', 'unknown', ''] %}
|
||||
{{ ((t1 | float + t2 | float + t3 | float) | round(2)) if not (t1 in bad or t2 in bad or t3 in bad) else 'unavailable' }}
|
||||
name: power_monthly_cost_total
|
||||
|
||||
@@ -11,12 +11,16 @@ template:
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_hot') | float + 88.97 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_hot') %}
|
||||
{{ ((v | float + 88.97) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
- name: counter_cold_outer
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_cold') | float + 144.7 | round(2) }}"
|
||||
state: >-
|
||||
{% set v = states('sensor.counter_cold') %}
|
||||
{{ ((v | float + 144.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
||||
|
||||
binary_sensor:
|
||||
- name: dryer_running
|
||||
|
||||
Reference in New Issue
Block a user