updating configuration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
alarm_control_panel:
|
||||
- platform: manual
|
||||
name: ha_alarm
|
||||
code_arm_required: false
|
||||
delay_time: 5
|
||||
trigger_time: 5
|
||||
arming_time: 5
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
alarm_control_panel.ha_alarm:
|
||||
friendly_name: Охрана
|
||||
@@ -0,0 +1,6 @@
|
||||
homeassistant:
|
||||
customize:
|
||||
person.danil:
|
||||
entity_picture: "/local/danil.jpg"
|
||||
person.svetlana:
|
||||
entity_picture: "/local/svetlana.jpg"
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
input_select:
|
||||
presence_extended:
|
||||
name: presence_extended
|
||||
options:
|
||||
- 'Away'
|
||||
- 'Home'
|
||||
- 'Just Arrived'
|
||||
- 'Just Left'
|
||||
- 'Holidays'
|
||||
|
||||
input_boolean:
|
||||
guest_mode:
|
||||
name: Наличие гостей
|
||||
icon: mdi:alert-octagon
|
||||
@@ -0,0 +1,17 @@
|
||||
sensor:
|
||||
- platform: mqtt_room
|
||||
device_id: !secret tag_danil_keys
|
||||
name: tag_danil_keys
|
||||
state_topic: home/presence
|
||||
timeout: 15
|
||||
away_timeout: 60
|
||||
|
||||
input_boolean:
|
||||
tag_danil_keys:
|
||||
name: Данил (Ключи)
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_danil_keys:
|
||||
friendly_name: Данил (Ключи)
|
||||
@@ -0,0 +1,17 @@
|
||||
sensor:
|
||||
- platform: mqtt_room
|
||||
device_id: !secret tag_danil_pocket
|
||||
name: tag_danil_pocket
|
||||
state_topic: home/presence
|
||||
timeout: 15
|
||||
away_timeout: 60
|
||||
|
||||
input_boolean:
|
||||
tag_danil_pocket:
|
||||
name: Данил (Кошелек)
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_danil_pocket:
|
||||
friendly_name: Данил (Кошелек)
|
||||
@@ -0,0 +1,17 @@
|
||||
sensor:
|
||||
- platform: mqtt_room
|
||||
device_id: !secret tag_mama_keys
|
||||
name: tag_mama_keys
|
||||
state_topic: home/presence
|
||||
timeout: 15
|
||||
away_timeout: 60
|
||||
|
||||
input_boolean:
|
||||
tag_mama_keys:
|
||||
name: Мама (Ключи)
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_mama_keys:
|
||||
friendly_name: Мама (Ключи)
|
||||
@@ -0,0 +1,17 @@
|
||||
sensor:
|
||||
- platform: mqtt_room
|
||||
device_id: !secret tag_svetlana_keys
|
||||
name: tag_svetlana_keys
|
||||
state_topic: home/presence
|
||||
timeout: 15
|
||||
away_timeout: 60
|
||||
|
||||
input_boolean:
|
||||
tag_svetlana_keys:
|
||||
name: Света (Ключи)
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_svetlana_keys:
|
||||
friendly_name: Света (Ключи)
|
||||
@@ -0,0 +1,17 @@
|
||||
sensor:
|
||||
- platform: mqtt_room
|
||||
device_id: !secret tag_test
|
||||
name: tag_test
|
||||
state_topic: home/presence
|
||||
timeout: 15
|
||||
away_timeout: 60
|
||||
|
||||
input_boolean:
|
||||
tag_test:
|
||||
name: Тестовая
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_test:
|
||||
friendly_name: Тестовая
|
||||
@@ -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.watercontrol_valves
|
||||
- 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,13 @@
|
||||
yandex_station_intents:
|
||||
intents:
|
||||
Как дела: Все хорошо
|
||||
Коля наказан: Отключаю интернет в детской
|
||||
Включи вентилятор:
|
||||
execute_command: Поставь режим вентиляции на кондиционере в комнате {{ event.room }}
|
||||
Выключи вентилятор:
|
||||
execute_command: Выключи кондиционер в комнате {{ event.room }}
|
||||
|
||||
Не выключай свет в прихожей: # (4)
|
||||
extra_phrases:
|
||||
- Не выключай свет в коридоре
|
||||
say_phrase: "{{ ['Договорились', 'Хорошо', 'Я тебя услышала', 'Оки-доки']|random }}"
|
||||
@@ -0,0 +1,7 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: door_lock_mqtt_action
|
||||
unique_id: door_lock_mqtt_action
|
||||
state_topic: "z2m-tcp/lock_door"
|
||||
value_template: "{{ value_json.action }}"
|
||||
json_attributes_topic: "z2m-tcp/lock_door"
|
||||
@@ -0,0 +1,62 @@
|
||||
input_boolean:
|
||||
presence_control:
|
||||
name: Контроль присутствия (действия по уходу и приходу)
|
||||
icon: mdi:account-off
|
||||
|
||||
water_leak_control:
|
||||
name: Контроль протечек
|
||||
icon: mdi:water-off
|
||||
|
||||
water_control:
|
||||
name: Контроль подачи воды
|
||||
icon: mdi:water-pump
|
||||
|
||||
security_sensors_report:
|
||||
name: Охрана периметра при отсутствии
|
||||
icon: mdi:access-point
|
||||
|
||||
battery_report:
|
||||
name: Отчет о состоянии батарей датчиков
|
||||
icon: mdi:battery-charging-wireless-10
|
||||
|
||||
water_counters_report:
|
||||
name: Отчет о поверке счетчиков
|
||||
icon: mdi:alert-octagon
|
||||
|
||||
balance_report:
|
||||
name: Отчет о балансе
|
||||
icon: mdi:alert-octagon
|
||||
|
||||
watchdog_report:
|
||||
name: Отчет watchdog
|
||||
icon: mdi:lock-alert
|
||||
|
||||
aqara_lock_report:
|
||||
name: Отчет замка
|
||||
icon: mdi:lock-alert
|
||||
|
||||
############################# Автоматизации AppDaemon #############################
|
||||
kitchenset_light_control:
|
||||
name: Контроль подсветки гарнитура
|
||||
|
||||
bath_light_control:
|
||||
name: Контроль света в ванной
|
||||
|
||||
shower_light_control:
|
||||
name: Контроль света в душе
|
||||
|
||||
locker_light_control:
|
||||
name: Контроль света шкаф
|
||||
|
||||
vent_control:
|
||||
name: Управление бризером
|
||||
|
||||
vent_control_heat:
|
||||
name: Управление подогревом бризера
|
||||
|
||||
bath_mirror_heat:
|
||||
name: Управление подогревом зеркала ванна
|
||||
|
||||
############################# Настройки дома #############################
|
||||
radiator_enabled:
|
||||
name: Наличие отопления
|
||||
@@ -0,0 +1,40 @@
|
||||
recorder:
|
||||
db_url: !secret recorder_db_url
|
||||
purge_keep_days: 365
|
||||
include:
|
||||
domains:
|
||||
- alarm_control_panel
|
||||
- binary_sensor
|
||||
- climate
|
||||
- light
|
||||
- lock
|
||||
- sensor
|
||||
- switch
|
||||
- vacuum
|
||||
- person
|
||||
- counter
|
||||
exclude:
|
||||
domains:
|
||||
- automation
|
||||
- media_player
|
||||
entity_globs:
|
||||
- sensor.tag_*
|
||||
entities:
|
||||
- sun.sun
|
||||
- binary_sensor.belorechenskaya_away
|
||||
- binary_sensor.cube_158d00011065e3_2
|
||||
- binary_sensor.living_room_thermostat_fan
|
||||
- binary_sensor.living_room_thermostat_has_leaf
|
||||
- binary_sensor.living_room_thermostat_is_locked
|
||||
- binary_sensor.living_room_thermostat_is_using_emergency_heat
|
||||
- binary_sensor.living_room_thermostat_online
|
||||
- sensor.living_room_thermostat_hvac_state
|
||||
- sensor.living_room_thermostat_operation_mode
|
||||
- sensor.living_room_thermostat_target
|
||||
- sensor.living_room_thermostat_temperature
|
||||
- sensor.memory_free
|
||||
- sensor.processor_use
|
||||
- sensor.ssl_certificate_expiry
|
||||
- sensor.swap_use_percent
|
||||
- sensor.belorechenskaya_eta
|
||||
- sensor.disk_use_percent
|
||||
@@ -0,0 +1,18 @@
|
||||
# Example configuration.yaml entry
|
||||
climate:
|
||||
- platform: dual_smart_thermostat
|
||||
name: bedroom_climate
|
||||
target_sensor: sensor.temperature_bedroom_temperature
|
||||
heater: input_boolean.bedroom_climate_heater_switch
|
||||
cooler: input_boolean.bedroom_climate_cooler_switch
|
||||
openings:
|
||||
- binary_sensor.window1
|
||||
- binary_sensor.window2
|
||||
openings_scope: [heat, cool]
|
||||
precision: 1
|
||||
|
||||
input_boolean:
|
||||
bedroom_climate_heater_switch:
|
||||
name: Виртуальный контроллер нагрева Спальня
|
||||
bedroom_climate_cooler_switch:
|
||||
name: Виртуальный контроллер охлаждения Спальня
|
||||
@@ -0,0 +1,103 @@
|
||||
#Используем сенсоры нового образца от 2023
|
||||
#Документация https://www.home-assistant.io/integrations/template/
|
||||
|
||||
|
||||
|
||||
#Это пример нового образца шаблонов
|
||||
#template:
|
||||
# - sensor:
|
||||
# ...
|
||||
# - binary_sensor:
|
||||
|
||||
|
||||
template:
|
||||
#Кухня: Кофемашина. Статус питания
|
||||
#Объект: sensor.coffee_machine_power_status
|
||||
- sensor:
|
||||
- name: coffee_machine_power_status
|
||||
unique_id: coffee_machine_power_status
|
||||
icon: mdi:power
|
||||
state: >
|
||||
{% if not states('sensor.coffee_philips_5400_status') in ['Выключено','unknown']%} Включено
|
||||
{% elif states('sensor.coffee_philips_5400_status') in ['Выключено','unknown'] or is_state('binary_sensor.coffee_philips_5400_power_status', 'off') %}Выключено
|
||||
{% endif %}
|
||||
attributes:
|
||||
Making coffee: >
|
||||
{% if not states('sensor.coffee_philips_5400_status') in ['Выключено','unknown'] %}
|
||||
{{ states('sensor.coffee_philips_5400_status') }}
|
||||
{% elif states('sensor.coffee_philips_5400_status') in ['Выключено','unknown'] or is_state('binary_sensor.coffee_philips_5400_power_status', 'off') %} Выключено
|
||||
{% endif %}
|
||||
|
||||
|
||||
group:
|
||||
#Кухня: Кофемашина. Инфо и меню
|
||||
#Объект: group.kitchen_coffee_machine_info_and_menu
|
||||
kitchen_coffee_machine_info_and_menu:
|
||||
name: "Кухня: Кофемашина. Сенсоры"
|
||||
all: false
|
||||
entities:
|
||||
- sensor.coffee_philips_5400_esphome_version #Версия ESPHome
|
||||
- sensor.coffee_philips_5400_coffee_grounds_container #Контейнер кофейной гущи
|
||||
- sensor.coffee_philips_5400_coffee_pallet #Поддон
|
||||
- sensor.coffee_philips_5400_grain_tray #Кофейные зерна в лотке
|
||||
- sensor.coffee_philips_5400_system_status #Системный статус
|
||||
- sensor.coffee_philips_5400_making_coffee #Приготовление кофе
|
||||
- sensor.coffee_machine_power_status #Статус питания
|
||||
- sensor.coffee_philips_5400_internal_temperature #Температура ESP32
|
||||
- sensor.coffee_philips_5400_error_code #Системные ошибки
|
||||
- sensor.coffee_philips_5400_free_mem_size #Размер свободной памяти
|
||||
- binary_sensor.coffee_philips_5400_power_status #Статус питания
|
||||
- number.coffee_philips_5400_valve_closed #Отвод воды закрыл носик кофемашины
|
||||
- number.coffee_philips_5400_valve_open #Отвод воды открыл носик кофемашины
|
||||
- number.coffee_philips_5400_valve_position #Позиция сервопривода
|
||||
- switch.coffee_philips_5400_valve_open_closed #Открыть или закрыть носик кофемашины
|
||||
- switch.coffee_philips_5400_automatic_water_drain #Автоматически открывать или закрывать носик кофемашины
|
||||
- input_boolean.kitchen_coffee_machine_auto_coffee_making #Авто приготовление кофе
|
||||
- counter.coffee_machine_making_coffee #Счетчик для авто приготовление кофе
|
||||
|
||||
|
||||
|
||||
#Кухня: Кофемашина. Кофейные напитки
|
||||
#Объект: group.kitchen_coffee_machine_coffee_drinks
|
||||
kitchen_coffee_machine_coffee_drinks:
|
||||
name: "Кухня: Кофемашина. Кофейные напитки"
|
||||
all: false
|
||||
entities:
|
||||
- select.coffee_philips_5400_drink #Выбор кофейных напиток
|
||||
- select.coffee_philips_5400_cups #Выбор количество порции
|
||||
- select.coffee_philips_5400_grind #Крепость, зерно или молотый кофе
|
||||
- number.coffee_philips_5400_soffee #Объем кофе
|
||||
- number.coffee_philips_5400_milk #Объем молока
|
||||
- button.coffee_philips_5400_prepare #Показать рецепт в сенсоре 90
|
||||
- sensor.coffee_philips_5400_messge2_90 #Пакет рецепта
|
||||
- sensor.coffee_philips_5400_coffee_drink #Сенсор выбранного кофейного напитка
|
||||
- button.coffee_philips_5400_build_coffee #Приготовить кофе
|
||||
|
||||
#Скрипт нужен для карточки, чтобы при нажатии на кнопку "Питание", кофемашина включилась или выключилась
|
||||
script:
|
||||
kitchen_coffee_machine_power:
|
||||
alias: 'Кухня: Кофемашина. Питание'
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ is_state("binary_sensor.coffee_philips_5400_power_status","off") }}'
|
||||
alias: Кофемашина выключена
|
||||
sequence:
|
||||
- service: button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: button.coffee_philips_5400_power_on
|
||||
alias: Включить кофемашину
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ is_state("binary_sensor.coffee_philips_5400_power_status","on") }}'
|
||||
alias: Кофемашина включена
|
||||
sequence:
|
||||
- service: button.press
|
||||
data: {}
|
||||
target:
|
||||
entity_id: button.coffee_philips_5400_power_off
|
||||
alias: Выключить кофемашину
|
||||
mode: single
|
||||
icon: mdi:power
|
||||
@@ -0,0 +1,3 @@
|
||||
yandex_station:
|
||||
username: !secret alice_login
|
||||
password: !secret alice_pwd
|
||||
@@ -0,0 +1,76 @@
|
||||
# sensor:
|
||||
# - platform: template
|
||||
# sensors:
|
||||
# dishwasher_remaining:
|
||||
# friendly_name: "Dishwasher remaining"
|
||||
# value_template: >
|
||||
# {% if states('sensor.dishwasher_operation_state') == 'Inactive' %} -
|
||||
# {% elif states('sensor.dishwasher_operation_state') == 'Finished' %} -
|
||||
# {% elif states('sensor.dishwasher_remaining_program_time') == 'unavailable' %} -
|
||||
# {% elif (as_timestamp(states('sensor.dishwasher_remaining_program_time')) - as_timestamp(now())) < 61 %} < 1 min
|
||||
# {% else %}
|
||||
# {{ (((as_timestamp(states('sensor.dishwasher_remaining_program_time')) - as_timestamp(now())) / 60) | round(0)) | string + " min" }}
|
||||
# {% endif %}
|
||||
# dishwasher_progress:
|
||||
# friendly_name: "Dishwasher progress"
|
||||
# value_template: >
|
||||
# {% if states('sensor.dishwasher_operation_state') == 'Inactive' %} -
|
||||
# {% elif states('sensor.dishwasher_operation_state') == 'Finished' %} -
|
||||
# {% elif states('sensor.dishwasher_program_progress') == 'unavailable' %} -
|
||||
# {% else %}
|
||||
# {{ states('sensor.dishwasher_program_progress') + "%" }}
|
||||
# {% endif %}
|
||||
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: hc_dishwasher_state
|
||||
unique_id: hc_dishwasher_state
|
||||
state_topic: "homeconnect/dishwasher/state"
|
||||
value_template: "{{ value_json.state }}"
|
||||
json_attributes_topic: "homeconnect/dishwasher/state"
|
||||
- name: hc_dishwasher_remaining
|
||||
unique_id: hc_dishwasher_remaining
|
||||
state_topic: "homeconnect/dishwasher/state"
|
||||
value_template: "{{ value_json.remaining }}"
|
||||
json_attributes_topic: "homeconnect/dishwasher/state"
|
||||
binary_sensor:
|
||||
- state_topic: "homeconnect/dishwasher/state"
|
||||
name: hc_dishwasher_door
|
||||
unique_id: hc_dishwasher_door
|
||||
device_class: opening
|
||||
payload_on: "Open"
|
||||
payload_off: "Closed"
|
||||
value_template: "{{ value_json.door }}"
|
||||
json_attributes_topic: "homeconnect/dishwasher/state"
|
||||
- state_topic: "homeconnect/dishwasher/state"
|
||||
name: hc_dishwasher_power
|
||||
unique_id: hc_dishwasher_power
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.power }}"
|
||||
json_attributes_topic: "homeconnect/dishwasher/state"
|
||||
template:
|
||||
binary_sensor:
|
||||
- name: hc_dishwasher_running
|
||||
unique_id: hc_dishwasher_running
|
||||
state: "{{ is_state('sensor.hc_dishwasher_state', 'Run') }}"
|
||||
|
||||
counter:
|
||||
dishwasher_door_open_count:
|
||||
name: dishwasher_door_open_count
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.hc_dishwasher_state:
|
||||
friendly_name: Посудомойка Статус
|
||||
binary_sensor.hc_dishwasher_door:
|
||||
friendly_name: Посудомойка Дверца
|
||||
binary_sensor.hc_dishwasher_remaining:
|
||||
friendly_name: Посудомойка До конца программы
|
||||
sensor.hc_dishwasher_running:
|
||||
friendly_name: Посудомоечная машина
|
||||
binary_sensor.hc_dishwasher_power:
|
||||
friendly_name: Посудомойка Питание
|
||||
|
||||
|
||||
# homeconnect/dishwasher/state {"state": "Ready", "door": "Closed", "remaining": "0:15", "power": false, "lowwaterpressure": false, "aquastop": false, "error": false, "remainingseconds": 900}
|
||||
@@ -0,0 +1,35 @@
|
||||
template:
|
||||
- sensor:
|
||||
- name: heat_total
|
||||
unit_of_measurement: gKal
|
||||
default_entity_id: sensor.heat_total
|
||||
state: '{{ states(''sensor.saures_teploschetchik_fonvizina'') | float + 32.7600 | round(4) }}'
|
||||
- name: heat_hourly_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_hourly') | float * 3035 | round(2) }}"
|
||||
- name: heat_daily_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_daily') | float * 3035 | round(2) }}"
|
||||
- name: heat_monthly_cost
|
||||
unit_of_measurement: '₽'
|
||||
state: "{{ states('sensor.heat_monthly') | float * 3035 | round(2) }}"
|
||||
|
||||
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_hourly:
|
||||
friendly_name: Тепло в день
|
||||
sensor.heat_hourly:
|
||||
friendly_name: Тепло в месяц
|
||||
@@ -0,0 +1,21 @@
|
||||
telegram_bot:
|
||||
- platform: polling
|
||||
api_key: !secret telegram_key
|
||||
allowed_chat_ids:
|
||||
- !secret telegram_group_chat
|
||||
- !secret telegram_monster_chat
|
||||
- !secret telegram_sveta_chat
|
||||
|
||||
notify:
|
||||
- platform: telegram
|
||||
name: telegram
|
||||
chat_id: !secret telegram_group_chat
|
||||
parse_mode: html
|
||||
- platform: telegram
|
||||
name: telegram_monster
|
||||
chat_id: !secret telegram_monster_chat
|
||||
parse_mode: html
|
||||
- platform: telegram
|
||||
name: telegram_sveta
|
||||
chat_id: !secret telegram_sveta_chat
|
||||
parse_mode: html
|
||||
@@ -0,0 +1,191 @@
|
||||
# recorder:
|
||||
# include:
|
||||
# entities:
|
||||
# - sensor.power_total
|
||||
# - sensor.power_active_power
|
||||
# - sensor.power_monthly_cost_t1
|
||||
# - sensor.power_monthly_cost_t2
|
||||
# - sensor.power_monthly_cost_t3
|
||||
|
||||
modbus:
|
||||
name: modbus_power
|
||||
type: serial
|
||||
method: rtu
|
||||
port: /dev/ttyUSB0
|
||||
baudrate: 9600
|
||||
stopbits: 1
|
||||
bytesize: 8
|
||||
parity: N #N
|
||||
sensors:
|
||||
- name: power_total
|
||||
unit_of_measurement: kWh
|
||||
slave: 1
|
||||
address: 10
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
data_type: uint32
|
||||
|
||||
- name: power_voltage_a
|
||||
slave: 1
|
||||
address: 128
|
||||
precision: 1
|
||||
scale: 0.1
|
||||
unit_of_measurement: 'V'
|
||||
|
||||
- name: power_voltage_b
|
||||
slave: 1
|
||||
address: 129
|
||||
precision: 1
|
||||
scale: 0.1
|
||||
unit_of_measurement: 'V'
|
||||
|
||||
- name: power_voltage_c
|
||||
slave: 1
|
||||
address: 130
|
||||
precision: 1
|
||||
scale: 0.1
|
||||
unit_of_measurement: 'V'
|
||||
|
||||
- name: power_current_a
|
||||
slave: 1
|
||||
address: 131
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
unit_of_measurement: 'A'
|
||||
|
||||
- name: power_current_b
|
||||
slave: 1
|
||||
address: 132
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
unit_of_measurement: 'A'
|
||||
|
||||
- name: power_current_c
|
||||
slave: 1
|
||||
address: 133
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
unit_of_measurement: 'A'
|
||||
|
||||
- name: power_active_power
|
||||
slave: 1
|
||||
address: 134
|
||||
data_type: int32
|
||||
precision: 3
|
||||
scale: 0.001
|
||||
unit_of_measurement: kW
|
||||
|
||||
- name: power_reactive_power
|
||||
slave: 1
|
||||
address: 139
|
||||
data_type: int32
|
||||
precision: 3
|
||||
scale: 0.001
|
||||
unit_of_measurement: 'Kvar'
|
||||
|
||||
- name: power_power_factor
|
||||
slave: 1
|
||||
address: 149
|
||||
precision: 3
|
||||
scale: 0.001
|
||||
unit_of_measurement: '%'
|
||||
|
||||
- name: power_frequency
|
||||
slave: 1
|
||||
address: 17
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
unit_of_measurement: 'Hz'
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
power_main_total:
|
||||
unit_of_measurement: 'kWh'
|
||||
value_template: "{{ states('sensor.power_total') | float - 7072.7 | round(2) }}"
|
||||
#7072.7 - разница показаний.
|
||||
|
||||
power_monthly_cost_t1:
|
||||
unit_of_measurement: '₽'
|
||||
value_template: "{{ states('sensor.power_monthly_t1') | float * 8.23 | round(2) }}"
|
||||
power_monthly_cost_t2:
|
||||
unit_of_measurement: '₽'
|
||||
value_template: "{{ states('sensor.power_monthly_t2') | float * 2.62 | round(2) }}"
|
||||
power_monthly_cost_t3:
|
||||
unit_of_measurement: '₽'
|
||||
value_template: "{{ states('sensor.power_monthly_t3') | float * 5.66 | round(2) }}"
|
||||
power_monthly_cost_total:
|
||||
unit_of_measurement: '₽'
|
||||
value_template: "{{ states('sensor.power_monthly_cost_t1') | float + states('sensor.power_monthly_cost_t2') | float + states('sensor.power_monthly_cost_t3') | float | round(2) }}"
|
||||
|
||||
utility_meter:
|
||||
power_hourly:
|
||||
source: sensor.power_total
|
||||
cycle: hourly
|
||||
power_daily:
|
||||
source: sensor.power_total
|
||||
cycle: daily
|
||||
power_monthly:
|
||||
source: sensor.power_total
|
||||
cycle: monthly
|
||||
|
||||
power_theory:
|
||||
source: sensor.power_total
|
||||
cycle: monthly
|
||||
tariffs:
|
||||
- t1
|
||||
- t2
|
||||
- t3
|
||||
power_monthly_t1:
|
||||
source: sensor.power_theory_t1
|
||||
cycle: monthly
|
||||
power_monthly_t2:
|
||||
source: sensor.power_theory_t2
|
||||
cycle: monthly
|
||||
power_monthly_t3:
|
||||
source: sensor.power_theory_t3
|
||||
cycle: monthly
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.power_main_total:
|
||||
friendly_name: Общий счётчик
|
||||
|
||||
sensor.power_total:
|
||||
friendly_name: Потреблено итого
|
||||
|
||||
sensor.power_voltage_a:
|
||||
friendly_name: Напряжение A
|
||||
|
||||
sensor.power_voltage_b:
|
||||
friendly_name: Напряжение B
|
||||
|
||||
sensor.power_voltage_c:
|
||||
friendly_name: Напряжение C
|
||||
|
||||
sensor.power_current_a:
|
||||
friendly_name: Ток A
|
||||
|
||||
sensor.power_current_b:
|
||||
friendly_name: Ток B
|
||||
|
||||
sensor.power_current_c:
|
||||
friendly_name: Ток C
|
||||
|
||||
sensor.power_frequency:
|
||||
friendly_name: Частота
|
||||
|
||||
sensor.power_active_power:
|
||||
friendly_name: Активная нагрузка
|
||||
|
||||
sensor.power_reactive_power:
|
||||
friendly_name: Реактивная нагрузка
|
||||
|
||||
sensor.power_power_factor:
|
||||
friendly_name: Коэффициент мощности
|
||||
|
||||
sensor.power_export:
|
||||
friendly_name: Экспортировано
|
||||
|
||||
sensor.power_import:
|
||||
friendly_name: Импортировано
|
||||
@@ -0,0 +1,59 @@
|
||||
sensor:
|
||||
# Old phone - 75f45ca5a0b55b563f827339c91da5be
|
||||
- platform: mqtt_room
|
||||
device_id: "irk:f8cfda8942512292fd767127fd5028c1"
|
||||
name: 'tag_danil_iphone'
|
||||
state_topic: 'espresense/devices/irk:f8cfda8942512292fd767127fd5028c1'
|
||||
timeout: 30
|
||||
away_timeout: 300
|
||||
|
||||
- platform: mqtt_room
|
||||
device_id: "irk:23c0abe5a5167d5f3a9fed8f5811e2cb"
|
||||
name: 'tag_svetlana_iphone'
|
||||
state_topic: 'espresense/devices/irk:23c0abe5a5167d5f3a9fed8f5811e2cb'
|
||||
timeout: 30
|
||||
away_timeout: 300
|
||||
|
||||
- platform: mqtt_room
|
||||
device_id: "irk:ee497d98b502c47ec3f631336ec37eed"
|
||||
name: 'tag_mama_iphone'
|
||||
state_topic: 'espresense/devices/irk:ee497d98b502c47ec3f631336ec37eed'
|
||||
timeout: 30
|
||||
away_timeout: 300
|
||||
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.tag_danil_iphone:
|
||||
friendly_name: Данил (телефон)
|
||||
sensor.tag_svetlana_iphone:
|
||||
friendly_name: Света (телефон)
|
||||
sensor.tag_mama_iphone:
|
||||
friendly_name: Мама (телефон)
|
||||
|
||||
automation:
|
||||
alias: "Presence: Beacons"
|
||||
description: ""
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
- sensor.tag_danil_iphone
|
||||
- sensor.tag_svetlana_iphone
|
||||
- sensor.tag_mama_iphone
|
||||
enabled: true
|
||||
condition: []
|
||||
action:
|
||||
- service: device_tracker.see
|
||||
data:
|
||||
dev_id: "{{ trigger.entity_id.split('.')[1] }}"
|
||||
location_name: |
|
||||
{% set locations = ['mainroom', 'kitchen'] %}
|
||||
{% if trigger.to_state.state in locations %}
|
||||
home
|
||||
{% elif trigger.to_state.state not in locations %}
|
||||
not_home
|
||||
{% else %}
|
||||
unknown
|
||||
{% endif %}
|
||||
source_type: router
|
||||
mode: restart
|
||||
@@ -0,0 +1,26 @@
|
||||
rest_command:
|
||||
bedroom_tv_wol:
|
||||
url: "http://192.168.1.1/wol_action.asp?dstmac=C0:D7:AA:AA:1B:12"
|
||||
method: get
|
||||
content_type: "application/json"
|
||||
username: !secret router_username
|
||||
password: !secret router_password
|
||||
|
||||
automation:
|
||||
- id: 'bedroomtv_wakeup'
|
||||
alias: "Wake up bedroom tv on turn_on"
|
||||
trigger:
|
||||
- platform: webostv.turn_on
|
||||
entity_id: media_player.bedroom_tv
|
||||
action:
|
||||
- service: cover.set_cover_position
|
||||
target:
|
||||
entity_id: cover.curtain_bedroom
|
||||
data:
|
||||
position: 38
|
||||
- service: rest_command.bedroom_tv_wol
|
||||
- delay: 5
|
||||
- service: media_player.select_source
|
||||
data:
|
||||
entity_id: media_player.bedroom_tv
|
||||
source: YouTube
|
||||
@@ -0,0 +1,22 @@
|
||||
# Either put this here or in your automations.yaml
|
||||
rest_command:
|
||||
kitchen_tv_wol:
|
||||
url: "http://192.168.1.1/wol_action.asp?dstmac=B4:B2:91:C0:A7:FD"
|
||||
method: get
|
||||
content_type: "application/json"
|
||||
username: !secret router_username
|
||||
password: !secret router_password
|
||||
|
||||
automation:
|
||||
- id: 'kitchentv_wakeup'
|
||||
alias: "Wake up kitchen tv on turn_on"
|
||||
trigger:
|
||||
- platform: webostv.turn_on
|
||||
entity_id: media_player.kitchen_tv
|
||||
action:
|
||||
- service: rest_command.kitchen_tv_wol
|
||||
- delay: 10
|
||||
- service: media_player.select_source
|
||||
data:
|
||||
entity_id: media_player.kitchen_tv
|
||||
source: Wink
|
||||
@@ -0,0 +1,23 @@
|
||||
# Either put this here or in your automations.yaml
|
||||
rest_command:
|
||||
mainroom_tv_wol:
|
||||
url: "http://192.168.1.1/wol_action.asp?dstmac=AC:5A:F0:99:65:11"
|
||||
method: get
|
||||
content_type: "application/json"
|
||||
username: !secret router_username
|
||||
password: !secret router_password
|
||||
|
||||
|
||||
automation:
|
||||
- id: 'mainroomtv_wakeup'
|
||||
alias: "Wake up mainroom tv on turn_on"
|
||||
trigger:
|
||||
- platform: webostv.turn_on
|
||||
entity_id: media_player.mainroom_tv
|
||||
action:
|
||||
- service: rest_command.mainroom_tv_wol
|
||||
- delay: 5
|
||||
- service: media_player.select_source
|
||||
data:
|
||||
entity_id: media_player.mainroom_tv
|
||||
source: Wink
|
||||
@@ -0,0 +1,65 @@
|
||||
#################################################
|
||||
# WATER #
|
||||
#################################################
|
||||
mqtt:
|
||||
sensor:
|
||||
- unique_id: counter_cold
|
||||
state_topic: 'home/watercontrol/counter2_1'
|
||||
name: 'counter_cold'
|
||||
value_template: '{{ (value | float ) }}'
|
||||
unit_of_measurement: 'm³'
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
- unique_id: counter_hot
|
||||
state_topic: 'home/watercontrol/counter2_2'
|
||||
name: 'counter_hot'
|
||||
value_template: '{{ (value | float ) }}'
|
||||
unit_of_measurement: 'm³'
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
- unique_id: uptime_watercontrol
|
||||
state_topic: 'home/watercontrol/$uptime'
|
||||
name: 'uptime_watercontrol'
|
||||
value_template: '{{ value | int }}'
|
||||
switch:
|
||||
- unique_id: water_valve
|
||||
name: water_valve
|
||||
state_topic: "home/watercontrol/valves"
|
||||
command_topic: "home/watercontrol/valves/set"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
optimistic: false
|
||||
retain: false
|
||||
|
||||
template:
|
||||
sensor:
|
||||
- name: counter_hot_outer
|
||||
device_class: water
|
||||
state_class: total_increasing
|
||||
unit_of_measurement: 'm³'
|
||||
state: "{{ states('sensor.counter_hot') | float + 88.97 | round(2) }}"
|
||||
- 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) }}"
|
||||
|
||||
binary_sensor:
|
||||
- name: dryer_running
|
||||
state: "{{ not is_state('sensor.sushilnaia_mash_machine_state', 'stop') }}"
|
||||
- name: washer_running
|
||||
state: "{{ not is_state('sensor.stiralnaia_mashina_machine_state', 'stop') }}"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
switch.water_valve:
|
||||
friendly_name: Подача воды
|
||||
binary_sensor.dryer_running:
|
||||
friendly_name: "Сушильная машина"
|
||||
binary_sensor.washer_running:
|
||||
friendly_name: "Стиральная машина"
|
||||
|
||||
sensor.counter_hot_outer:
|
||||
friendly_name: "Счетчик Внешний Горячая"
|
||||
sensor.counter_cold_outer:
|
||||
friendly_name: "Счетчик Внешний Холодная"
|
||||
Reference in New Issue
Block a user