first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
alarm_control_panel:
|
||||
- platform: manual
|
||||
name: ha_alarm
|
||||
delay_time: 5
|
||||
trigger_time: 5
|
||||
arming_time: 5
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# icloud:
|
||||
# - username: !secret icloud_mail
|
||||
# password: !secret icloud_password
|
||||
@@ -0,0 +1,3 @@
|
||||
# owntracks:
|
||||
# max_gps_accuracy: 200
|
||||
# mqtt_topic: "owntracks/#"
|
||||
@@ -0,0 +1,6 @@
|
||||
homeassistant:
|
||||
customize:
|
||||
person.danil:
|
||||
entity_picture: "/local/danil.jpg"
|
||||
person.svetlana:
|
||||
entity_picture: "/local/svetlana.jpg"
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
input_select:
|
||||
presence_extended:
|
||||
name: presence_extended
|
||||
options:
|
||||
- 'Away'
|
||||
- 'Home'
|
||||
- 'Just Arrived'
|
||||
- 'Just Left'
|
||||
- 'Holidays'
|
||||
@@ -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,9 @@
|
||||
automation:
|
||||
- alias: Respond to button click Test
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sensor.z2mtcp_button_action
|
||||
to: 'single'
|
||||
action:
|
||||
entity_id: switch.z2m_light
|
||||
service: switch.toggle
|
||||
@@ -0,0 +1,13 @@
|
||||
sensor:
|
||||
#SSL Certificate expire info
|
||||
- platform: cert_expiry
|
||||
host: !secret base_host
|
||||
|
||||
# System resources
|
||||
- platform: systemmonitor
|
||||
resources:
|
||||
- type: processor_use
|
||||
- type: memory_free
|
||||
- type: swap_use_percent
|
||||
- type: disk_use_percent
|
||||
arg: /
|
||||
@@ -0,0 +1,38 @@
|
||||
recorder:
|
||||
purge_keep_days: 365
|
||||
include:
|
||||
domains:
|
||||
- alarm_control_panel
|
||||
- binary_sensor
|
||||
- climate
|
||||
- light
|
||||
- lock
|
||||
- sensor
|
||||
- switch
|
||||
- vacuum
|
||||
- person
|
||||
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,40 @@
|
||||
input_boolean:
|
||||
presence_control:
|
||||
name: Контроль присутствия (действия по уходу и приходу)
|
||||
icon: mdi:account-off
|
||||
initial: on
|
||||
|
||||
water_leak_control:
|
||||
name: Контроль протечек
|
||||
icon: mdi:water-off
|
||||
initial: on
|
||||
|
||||
water_control:
|
||||
name: Контроль подачи воды
|
||||
icon: mdi:water-pump
|
||||
initial: on
|
||||
|
||||
security_sensors_report:
|
||||
name: Охрана периметра при отсутствии
|
||||
icon: mdi:access-point
|
||||
initial: on
|
||||
|
||||
battery_report:
|
||||
name: Отчет о состоянии батарей датчиков
|
||||
icon: mdi:battery-charging-wireless-10
|
||||
initial: on
|
||||
|
||||
water_counters_report:
|
||||
name: Отчет о поверке счетчиков
|
||||
icon: mdi:alert-octagon
|
||||
initial: on
|
||||
|
||||
balance_report:
|
||||
name: Отчет о балансе
|
||||
icon: mdi:alert-octagon
|
||||
initial: on
|
||||
|
||||
watchdog_report:
|
||||
name: Отчет watchdog
|
||||
icon: mdi:lock-alert
|
||||
initial: on
|
||||
@@ -0,0 +1,135 @@
|
||||
yandex_smart_home:
|
||||
filter:
|
||||
include_domains:
|
||||
- climate
|
||||
- switch
|
||||
- light
|
||||
- vacuum
|
||||
- cover
|
||||
- fan
|
||||
# include_entities:
|
||||
# - input_boolean.alice_night_mode
|
||||
# - input_boolean.alice_turn_off_light
|
||||
# - input_boolean.alice_away_mode
|
||||
# - input_boolean.find_phone_danil
|
||||
|
||||
exclude_entities:
|
||||
- switch.plug_158d00020f3a29
|
||||
- switch.plug_158d00026ea017
|
||||
- switch.plug_158d00010dd98d
|
||||
- switch.xiaomi_miio_switch
|
||||
- switch.domofon_mode
|
||||
- switch.domofon_open
|
||||
- light.gateway_light_f0b429aa1463
|
||||
- switch.domofon_automatically_open
|
||||
- switch.domofon_automatically_open_once
|
||||
- switch.domofon_force_open
|
||||
- switch.wled_sync_receive
|
||||
- switch.wled_sync_send
|
||||
- switch.airfresher_fresh
|
||||
- switch.airfresher_reset
|
||||
- switch.restart_watercontrol
|
||||
|
||||
|
||||
entity_config:
|
||||
# input_boolean.find_phone_danil:
|
||||
# name: "Найти телефон Данила"
|
||||
# room: "Сценарии"
|
||||
# input_boolean.alice_away_mode:
|
||||
# name: "Я ушёл"
|
||||
# room: "Сценарии"
|
||||
# input_boolean.alice_night_mode:
|
||||
# name: "Спокойной ночи"
|
||||
# room: "Сценарии"
|
||||
# input_boolean.alice_turn_off_light:
|
||||
# name: "Выключи свет"
|
||||
# room: "Сценарии"
|
||||
climate.living_room:
|
||||
name: "Термостат"
|
||||
room: "Гостиная"
|
||||
light.yeelight_color1_34ce008fe328:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_color1_286c071065c7:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_mono1_f0b429a8f6df:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_mono1_f0b4290e5444:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_mono1_34ce0087ff33:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_mono1_f0b429a8d936:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.yeelight_mono1_286c07f12bed:
|
||||
name: "Люстра"
|
||||
room: "Гостиная"
|
||||
light.salt_lamp:
|
||||
name: "Соляная лампа"
|
||||
room: "Гостиная"
|
||||
fan.xiaomi_miio_device:
|
||||
name: "Воздухоочиститель"
|
||||
room: "Гостиная"
|
||||
switch.plug_158d0001104a0c:
|
||||
name: "Телевизор"
|
||||
room: "Гостиная"
|
||||
cover.curtain_158d0002b0c46a:
|
||||
name: "Шторы"
|
||||
room: "Гостиная"
|
||||
light.bath:
|
||||
name: "Люстра"
|
||||
room: "Туалет"
|
||||
light.philips_led:
|
||||
name: "Люстра"
|
||||
room: "Туалет"
|
||||
light.kitchen:
|
||||
name: "Люстра"
|
||||
room: "Кухня"
|
||||
# switch.plug_158d0001a68c64:
|
||||
# name: "Посудомойка"
|
||||
# room: "Кухня"
|
||||
# switch.plug_158d0001a4cfb4:
|
||||
# name: "Стиралка"
|
||||
# room: "Кухня"
|
||||
# light.hall:
|
||||
# name: "Люстра"
|
||||
# room: "Коридор"
|
||||
# switch.plug_158d0001a68b18:
|
||||
# name: "Термопот"
|
||||
# room: "Кухня"
|
||||
# switch.plug_158d0002924779:
|
||||
# name: "Фитолампа"
|
||||
# room: "Балкон"
|
||||
vacuum.xiaomi_vacuum_cleaner:
|
||||
name: "Пылесос"
|
||||
room: "Дом"
|
||||
switch.water_valve:
|
||||
name: "Подача воды"
|
||||
room: "Дом"
|
||||
# light.wled:
|
||||
# name: "Ёлка"
|
||||
# room: "Гостиная"
|
||||
|
||||
|
||||
# input_boolean:
|
||||
# find_phone_danil:
|
||||
# name: Найти телефон Данила
|
||||
|
||||
# automation:
|
||||
# alias: Найти телефон Данила
|
||||
# trigger:
|
||||
# platform: state
|
||||
# entity_id: input_boolean.find_phone_danil
|
||||
# to: 'on'
|
||||
# action:
|
||||
# - service: input_boolean.turn_off
|
||||
# data:
|
||||
# entity_id: input_boolean.find_phone_danil
|
||||
# - service: icloud.play_sound
|
||||
# data:
|
||||
# account: admin
|
||||
# device_name: MonsterPhone8
|
||||
@@ -0,0 +1,3 @@
|
||||
yandex_station:
|
||||
username: !secret alice_login
|
||||
password: !secret alice_pwd
|
||||
@@ -0,0 +1,72 @@
|
||||
utility_meter:
|
||||
raw_water_yearly: # Годовое потребление сырой воды
|
||||
source: sensor.raw_water_drink_filter
|
||||
cycle: yearly
|
||||
tariffs:
|
||||
- single
|
||||
drink_water_yearly: # Годовое потребление питьевой воды
|
||||
source: sensor.drink_water_drink_filter
|
||||
cycle: yearly
|
||||
tariffs:
|
||||
- single
|
||||
raw_water_monthly: # Месячное потребление сырой воды
|
||||
source: sensor.raw_water_drink_filter
|
||||
cycle: monthly
|
||||
tariffs:
|
||||
- single
|
||||
drink_water_monthly: # Месячное потребление питьевой воды
|
||||
source: sensor.drink_water_drink_filter
|
||||
cycle: monthly
|
||||
tariffs:
|
||||
- single
|
||||
raw_water_daily: # Дневное потребление сырой воды
|
||||
source: sensor.raw_water_drink_filter
|
||||
cycle: daily
|
||||
tariffs:
|
||||
- single
|
||||
drink_water_daily: # Дневное потребление питьевой воды
|
||||
source: sensor.drink_water_drink_filter
|
||||
cycle: daily
|
||||
tariffs:
|
||||
- single
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
raw_water_yesterday: # Расход сырой воды (вчера)
|
||||
friendly_name: Расход сырой воды (вчера)
|
||||
icon_template: mdi:gauge
|
||||
unit_of_measurement: 'л'
|
||||
value_template: "{{ state_attr('sensor.raw_water_daily_single', 'last_period') | float }}"
|
||||
drink_water_yesterday: # Расход питьевой воды (вчера)
|
||||
friendly_name: Расход питьевой воды (вчера)
|
||||
icon_template: mdi:gauge
|
||||
unit_of_measurement: 'л'
|
||||
value_template: "{{ state_attr('sensor.drink_water_daily_single', 'last_period') | float }}"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.raw_water_yearly_single:
|
||||
friendly_name: Расход сырой воды (год)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:chart-histogram
|
||||
sensor.drink_water_yearly_single:
|
||||
friendly_name: Расход питьевой воды (год)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:chart-histogram
|
||||
sensor.raw_water_monthly_single:
|
||||
friendly_name: Расход сырой воды (этот месяц)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:counter
|
||||
sensor.drink_water_monthly_single:
|
||||
friendly_name: Расход питьевой воды (этот месяц)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:counter
|
||||
sensor.raw_water_daily_single:
|
||||
friendly_name: Расход сырой воды (сегодня)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:gauge
|
||||
sensor.drink_water_daily_single:
|
||||
friendly_name: Расход питьевой воды (сегодня)
|
||||
unit_of_measurement: л
|
||||
icon: mdi:gauge
|
||||
@@ -0,0 +1,26 @@
|
||||
fan:
|
||||
- platform: xiaomi_airfresh
|
||||
host: !secret breaser_ip
|
||||
token: !secret breaser_token
|
||||
name: AirFresh
|
||||
model: dmaker.airfresh.a1
|
||||
|
||||
input_boolean:
|
||||
airfresh_ptc:
|
||||
name: Бризер(подогрев)
|
||||
|
||||
automation:
|
||||
- alias: AirFreshPtcOn
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.airfresh_ptc
|
||||
to: 'on'
|
||||
action:
|
||||
service: fan.airfresh_set_ptc_on
|
||||
- alias: AirFreshPtcOff
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: input_boolean.airfresh_ptc
|
||||
to: 'off'
|
||||
action:
|
||||
service: fan.airfresh_set_ptc_off
|
||||
@@ -0,0 +1,19 @@
|
||||
fan:
|
||||
- platform: xiaomi_miio
|
||||
model: zhimi.airpurifier.mc1
|
||||
host: !secret purifier_ip
|
||||
token: !secret purifier_key
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
fan.xiaomi_miio_device:
|
||||
friendly_name: Очиститель воздуха
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
xiaomi_airpurifier_air_quality_pm25:
|
||||
friendly_name: "Air quality"
|
||||
value_template: "{{ state_attr('fan.xiaomi_miio_device', 'aqi') }}"
|
||||
unit_of_measurement: "μg/m³"
|
||||
icon_template: "mdi:weather-fog"
|
||||
@@ -0,0 +1,34 @@
|
||||
homekit:
|
||||
auto_start: False
|
||||
filter:
|
||||
include_domains:
|
||||
- alarm_control_panel
|
||||
- light
|
||||
- vacuum
|
||||
- cover
|
||||
- fan
|
||||
- climate
|
||||
- camera
|
||||
include_entities:
|
||||
- switch.light_bath
|
||||
- switch.light_kitchen
|
||||
- switch.plug_light_hall2
|
||||
exclude_entities:
|
||||
- light.gateway_light
|
||||
entity_config:
|
||||
switch.water_valve:
|
||||
name: Подача воды
|
||||
alarm_control_panel.ha_alarm:
|
||||
name: Сигнализация
|
||||
vacuum.xiaomi_vacuum_cleaner:
|
||||
name: Пылесос
|
||||
|
||||
|
||||
automation:
|
||||
- alias: 'Start HomeKit'
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- delay: 00:01:00 # Wait 30 seconds
|
||||
- service: homekit.start
|
||||
@@ -0,0 +1,6 @@
|
||||
group:
|
||||
kitchen_motion_sensors:
|
||||
name: Kitchen
|
||||
entities:
|
||||
- binary_sensor.motion_sensor_kitchen
|
||||
- binary_sensor.motion_sensor_kitchen2
|
||||
@@ -0,0 +1,4 @@
|
||||
tuya:
|
||||
username: !secret tuya_username
|
||||
password: !secret tuya_password
|
||||
country_code: RU
|
||||
@@ -0,0 +1,16 @@
|
||||
homeassistant:
|
||||
customize:
|
||||
light.yeelight_color1_286c071065c7:
|
||||
friendly_name: Цветная 1
|
||||
light.yeelight_color1_34ce008fe328:
|
||||
friendly_name: Цветная 2
|
||||
light.yeelight_mono1_286c07f12bed:
|
||||
friendly_name: Моно 1
|
||||
light.yeelight_mono1_34ce0087ff33:
|
||||
friendly_name: Моно 2
|
||||
light.yeelight_mono1_f0b4290e5444:
|
||||
friendly_name: Моно 3
|
||||
light.yeelight_mono1_f0b429a8d936:
|
||||
friendly_name: Моно 4
|
||||
light.yeelight_mono1_f0b429a8f6df:
|
||||
friendly_name: Моно 5
|
||||
@@ -0,0 +1,27 @@
|
||||
telegram_bot:
|
||||
- platform: polling
|
||||
api_key: !secret telegram_key
|
||||
allowed_chat_ids:
|
||||
- !secret telegram_group_chat
|
||||
- !secret telegram_monster_chat
|
||||
- !secret telegram_sveta_chat
|
||||
- !secret telegram_card_chat
|
||||
#proxy_url: !secret proxy_url
|
||||
|
||||
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
|
||||
- platform: telegram
|
||||
name: telegram_card_chat
|
||||
chat_id: !secret telegram_card_chat
|
||||
parse_mode: html
|
||||
@@ -0,0 +1,107 @@
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: "zmai_90_consumed_energy"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: "{{ (value_json.ENERGY.Total | float ) }}"
|
||||
unit_of_measurement: 'kWh'
|
||||
icon: mdi:circle-slice-3
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_consumed_yesturday"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Yesterday | float ) }}
|
||||
unit_of_measurement: 'kWh'
|
||||
icon: mdi:circle-slice-3
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_consumed_today"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Today | float ) }}
|
||||
unit_of_measurement: 'kWh'
|
||||
icon: mdi:circle-slice-3
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_voltage"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Voltage | float ) }}
|
||||
unit_of_measurement: 'V'
|
||||
icon: mdi:flash-circle
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_current"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Current | float ) }}
|
||||
unit_of_measurement: 'A'
|
||||
icon: mdi:flash-auto
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_active_power"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Power | float ) }}
|
||||
unit_of_measurement: 'W'
|
||||
icon: mdi:flash-outline
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_reactive_power"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.ReactivePower | float ) }}
|
||||
unit_of_measurement: 'W'
|
||||
icon: mdi:flash-outline
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_apparent_power"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.ApparentPower | float ) }}
|
||||
unit_of_measurement: 'W'
|
||||
icon: mdi:flash-outline
|
||||
|
||||
- platform: mqtt
|
||||
name: "zmai_90_power_factor"
|
||||
state_topic: "tele/zmai_90/SENSOR"
|
||||
availability_topic: 'tele/zmai_90/LWT'
|
||||
qos: 1
|
||||
payload_available: 'Online'
|
||||
payload_not_available: 'Offline'
|
||||
value_template: >-
|
||||
{{ (value_json.ENERGY.Factor | float ) }}
|
||||
unit_of_measurement: '%'
|
||||
icon: mdi:percent-outline
|
||||
@@ -0,0 +1,111 @@
|
||||
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: 0
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
data_type: uint32
|
||||
|
||||
- name: power_voltage
|
||||
slave: 1
|
||||
address: 12
|
||||
precision: 1
|
||||
scale: 0.1
|
||||
unit_of_measurement: 'V'
|
||||
|
||||
- name: power_current
|
||||
slave: 1
|
||||
address: 13
|
||||
precision: 2
|
||||
scale: 0.01
|
||||
unit_of_measurement: 'A'
|
||||
|
||||
- name: power_active_power
|
||||
slave: 1
|
||||
address: 14
|
||||
precision: 3
|
||||
scale: 0.001
|
||||
unit_of_measurement: 'KW'
|
||||
|
||||
- name: power_reactive_power
|
||||
slave: 1
|
||||
address: 15
|
||||
precision: 3
|
||||
scale: 0.001
|
||||
unit_of_measurement: 'Kvar'
|
||||
|
||||
- name: power_power_factor
|
||||
slave: 1
|
||||
address: 16
|
||||
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 - разница показаний.
|
||||
|
||||
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,10 @@
|
||||
vacuum:
|
||||
- platform: xiaomi_miio
|
||||
host: 192.168.1.229
|
||||
token: 716d4d303339744e79434e566d457a39
|
||||
|
||||
#mirobot_ip: 192.168.1.230
|
||||
#mirobot_key: 78714f6f376b3235464a386d5a4a626f
|
||||
|
||||
# host: !secret mirobot_ip
|
||||
# token: !secret mirobot_key
|
||||
@@ -0,0 +1,42 @@
|
||||
#################################################
|
||||
# WATER #
|
||||
#################################################
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: 'home/watercontrol/counter3_1'
|
||||
name: 'counter_cold'
|
||||
value_template: '{{ (value | float ) }}'
|
||||
unit_of_measurement: 'm3'
|
||||
- state_topic: 'home/watercontrol/counter3_2'
|
||||
name: 'counter_hot'
|
||||
value_template: '{{ (value | float ) }}'
|
||||
unit_of_measurement: 'm3'
|
||||
- state_topic: 'home/watercontrol/$uptime'
|
||||
name: 'uptime_watercontrol'
|
||||
value_template: '{{ value | int }}'
|
||||
|
||||
switch:
|
||||
- name: water_valve
|
||||
state_topic: "home/watercontrol/valves"
|
||||
command_topic: "home/watercontrol/valves/set"
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
optimistic: false
|
||||
retain: true
|
||||
|
||||
script:
|
||||
water_counter_set:
|
||||
sequence:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: 'home/watercontrol/bath/cold/set'
|
||||
payload: 285660
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: 'home/watercontrol/bath/hot/set'
|
||||
payload: 133700
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
switch.water_valve:
|
||||
friendly_name: Подача воды
|
||||
@@ -0,0 +1,10 @@
|
||||
xiaomi_aqara:
|
||||
discovery_retry: 5
|
||||
gateways:
|
||||
- mac: !secret aqara1_mac
|
||||
key: !secret aqara1_key
|
||||
|
||||
alarm_control_panel:
|
||||
- platform: xiaomi_miio
|
||||
host: 192.168.1.81
|
||||
token: !secret aqara1_key
|
||||
@@ -0,0 +1,16 @@
|
||||
yeelight:
|
||||
devices:
|
||||
192.168.1.129:
|
||||
name: yeelight_color1_286c071065c7
|
||||
192.168.1.145:
|
||||
name: yeelight_color1_34ce008fe328
|
||||
192.168.1.53:
|
||||
name: yeelight_mono1_34ce0087ff33
|
||||
192.168.1.146:
|
||||
name: yeelight_mono1_f0b4290e5444
|
||||
192.168.1.163:
|
||||
name: yeelight_mono1_f0b429a8f6df
|
||||
192.168.1.238:
|
||||
name: yeelight_mono1_286c07f12bed
|
||||
192.168.1.243:
|
||||
name: yeelight_mono1_f0b429a8d936
|
||||
@@ -0,0 +1,8 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "bed_button"
|
||||
state_topic: "ZigbeeBD0C/bed_button"
|
||||
icon: "mdi:toggle-switch"
|
||||
value_template: "{{ value_json.action }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/bed_button"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: "ZigbeeBD0C/co2_table"
|
||||
name: mainroom_co2
|
||||
unit_of_measurement: "ppm"
|
||||
value_template: "{{ value_json.co2 }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/co2_table"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.mainroom_co2:
|
||||
friendly_name: CO2 Гостиная
|
||||
@@ -0,0 +1,12 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: "ZigbeeBD0C/bed_co2"
|
||||
name: co2_mainroom_bed
|
||||
unit_of_measurement: "ppm"
|
||||
value_template: "{{ value_json.co2 }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/bed_co2"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.co2_mainroom_bed:
|
||||
friendly_name: CO2 Гостиная Кровать
|
||||
@@ -0,0 +1,6 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "cube"
|
||||
state_topic: "ZigbeeBD0C/cube"
|
||||
value_template: "{{ value_json.side }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/cube"
|
||||
@@ -0,0 +1,14 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: door_window_sensor_bath
|
||||
state_topic: "ZigbeeBD0C/door_window_sensor_bath"
|
||||
value_template: "{{ value_json.contact }}"
|
||||
device_class: door
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
json_attributes_topic: "ZigbeeBD0C/door_window_sensor_bath"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.door_window_sensor_bath:
|
||||
friendly_name: Дверь (Ванна)
|
||||
@@ -0,0 +1,8 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "doorbell_button"
|
||||
state_topic: "ZigbeeBD0C/doorbell_button"
|
||||
icon: "mdi:toggle-switch"
|
||||
value_template: "{{ value_json.action }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/doorbell_button"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "ikea_dimmer"
|
||||
state_topic: "ZigbeeBD0C/ikea_dimmer"
|
||||
value_template: "{{ value_json.level }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/ikea_dimmer"
|
||||
@@ -0,0 +1,28 @@
|
||||
mqtt:
|
||||
switch:
|
||||
- name: light_bath
|
||||
state_topic: "zigbee2mqtt/kitchen_toilet_switch"
|
||||
payload_off: "OFF"
|
||||
payload_on: "ON"
|
||||
value_template: "{{ value_json.state_left }}"
|
||||
command_topic: "zigbee2mqtt/kitchen_toilet_switch/set/state_left"
|
||||
|
||||
- name: light_kitchen
|
||||
state_topic: "zigbee2mqtt/kitchen_toilet_switch"
|
||||
payload_off: "OFF"
|
||||
payload_on: "ON"
|
||||
value_template: "{{ value_json.state_right }}"
|
||||
command_topic: "zigbee2mqtt/kitchen_toilet_switch/set/state_right"
|
||||
|
||||
|
||||
input_boolean:
|
||||
bath_light_control:
|
||||
name: Контроль света в ванной
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
switch.light_bath:
|
||||
friendly_name: Свет (Ванна)
|
||||
switch.light_kitchen:
|
||||
friendly_name: Свет (Кухня)
|
||||
@@ -0,0 +1,18 @@
|
||||
mqtt:
|
||||
switch:
|
||||
- name: plug_light_hall
|
||||
state_topic: "zigbee2mqtt/plug_light_hall"
|
||||
payload_off: "OFF"
|
||||
payload_on: "ON"
|
||||
value_template: "{{ value_json.state }}"
|
||||
command_topic: "zigbee2mqtt/plug_light_hall/set/state"
|
||||
|
||||
input_boolean:
|
||||
hall_light_control:
|
||||
name: Контроль света в прихожей
|
||||
initial: on
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
switch.plug_light_hall:
|
||||
friendly_name: Свет прихожая
|
||||
@@ -0,0 +1,8 @@
|
||||
mqtt:
|
||||
light:
|
||||
- name: "lamp1"
|
||||
state_topic: "ZigbeeBD0C/lamp1"
|
||||
brightness: true
|
||||
schema: "json"
|
||||
command_topic: "ZigbeeBD0C/lamp1/set"
|
||||
brightness_scale: 254
|
||||
@@ -0,0 +1,15 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: motion_sensor_bath
|
||||
state_topic: "ZigbeeBD0C/motion_sensor_bath"
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: occupancy
|
||||
off_delay: 10
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/motion_sensor_bath"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.motion_sensor_bath:
|
||||
friendly_name: Движение (Ванна)
|
||||
@@ -0,0 +1,15 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: motion_sensor_hall
|
||||
state_topic: "ZigbeeBD0C/motion_sensor_hall"
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: occupancy
|
||||
off_delay: 10
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/motion_sensor_hall"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.motion_sensor_hall:
|
||||
friendly_name: Движение (холл)
|
||||
@@ -0,0 +1,15 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: motion_sensor_kitchen
|
||||
state_topic: "ZigbeeBD0C/motion_sensor_kitchen"
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: occupancy
|
||||
off_delay: 10
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/motion_sensor_kitchen"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.motion_sensor_kitchen:
|
||||
friendly_name: Движение (Кухня)
|
||||
@@ -0,0 +1,15 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: motion_sensor_kitchen2
|
||||
state_topic: "ZigbeeBD0C/motion_sensor_kitchen2"
|
||||
value_template: "{{ value_json.occupancy }}"
|
||||
device_class: occupancy
|
||||
off_delay: 10
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/motion_sensor_kitchen2"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.motion_sensor_kitchen2:
|
||||
friendly_name: Движение (Кухня2)
|
||||
@@ -0,0 +1,37 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "uptime_sls"
|
||||
state_topic: "ZigbeeBD0C/bridge/config"
|
||||
value_template: "{{ value_json.Uptime }}"
|
||||
|
||||
- name: "sls_state"
|
||||
state_topic: "ZigbeeBD0C/bridge/state"
|
||||
value_template: "{{ value }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/bridge/config"
|
||||
|
||||
- name: "sls_FreeMem"
|
||||
state_topic: "ZigbeeBD0C/bridge/config"
|
||||
value_template: "{{ (value_json.FreeMem | int) }}"
|
||||
unit_of_measurement: 'b'
|
||||
|
||||
- name: "sls_Uptime"
|
||||
state_topic: "ZigbeeBD0C/bridge/config"
|
||||
value_template: "{{ (value_json.Uptime | int) }}"
|
||||
unit_of_measurement: 'sec'
|
||||
|
||||
- name: "sls_permit_join"
|
||||
state_topic: "ZigbeeBD0C/bridge/config"
|
||||
value_template: "{{ value_json.permit_join }}"
|
||||
|
||||
light:
|
||||
- name: gateway
|
||||
availability_topic: "ZigbeeBD0C/bridge/state"
|
||||
command_topic: "ZigbeeBD0C/led"
|
||||
rgb_command_topic: "ZigbeeBD0C/led"
|
||||
rgb_command_template: >-
|
||||
{
|
||||
"mode": "manual",
|
||||
"hex": "#{{ '%02x%02x%02x' | format(red, green, blue) }}"
|
||||
}
|
||||
on_command_type: "brightness"
|
||||
payload_off: '{"mode": "auto"}'
|
||||
@@ -0,0 +1,21 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: "ZigbeeBD0C/temperature_humidity_bath"
|
||||
name: temperature_bath
|
||||
unit_of_measurement: "°C"
|
||||
device_class: "temperature"
|
||||
value_template: "{{ value_json.temperature }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_bath"
|
||||
- name: humidity_bath
|
||||
state_topic: "ZigbeeBD0C/temperature_humidity_bath"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "humidity"
|
||||
value_template: "{{ value_json.humidity }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_bath"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.temperature_bath:
|
||||
friendly_name: Температура (Ванна)
|
||||
sensor.humidity_bath:
|
||||
friendly_name: Влажность (Ванна)
|
||||
@@ -0,0 +1,21 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
|
||||
name: temperature_mainroom
|
||||
unit_of_measurement: "°C"
|
||||
device_class: "temperature"
|
||||
value_template: "{{ value_json.temperature }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
|
||||
- name: humidity_mainroom
|
||||
state_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "humidity"
|
||||
value_template: "{{ value_json.humidity }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.temperature_outside:
|
||||
friendly_name: Температура (гостиная)
|
||||
sensor.humidity_outside:
|
||||
friendly_name: Влажность (гостиная)
|
||||
@@ -0,0 +1,21 @@
|
||||
mqtt:
|
||||
sensor:
|
||||
- state_topic: "ZigbeeBD0C/temperature_humidity_outside"
|
||||
name: temperature_outside
|
||||
unit_of_measurement: "°C"
|
||||
device_class: "temperature"
|
||||
value_template: "{{ value_json.temperature }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_outside"
|
||||
- name: humidity_outside
|
||||
state_topic: "ZigbeeBD0C/temperature_humidity_outside"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "humidity"
|
||||
value_template: "{{ value_json.humidity }}"
|
||||
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_outside"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.temperature_outside:
|
||||
friendly_name: Температура (улица)
|
||||
sensor.humidity_outside:
|
||||
friendly_name: Влажность (улица)
|
||||
@@ -0,0 +1,14 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: water_leak_sensor_bath_bath
|
||||
state_topic: "ZigbeeBD0C/water_leak_sensor_bath_bath"
|
||||
value_template: "{{ value_json.water_leak }}"
|
||||
device_class: moisture
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_bath_bath"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.water_leak_sensor_bath_bath:
|
||||
friendly_name: Под ванной (протечка)
|
||||
@@ -0,0 +1,14 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: water_leak_sensor_bath_valve
|
||||
state_topic: "ZigbeeBD0C/water_leak_sensor_bath_valve"
|
||||
value_template: "{{ value_json.water_leak }}"
|
||||
device_class: moisture
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_bath_valve"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.water_leak_sensor_bath_valve:
|
||||
friendly_name: Ванна Раковина (протечка)
|
||||
@@ -0,0 +1,14 @@
|
||||
mqtt:
|
||||
binary_sensor:
|
||||
- name: water_leak_sensor_kitchen_washer
|
||||
state_topic: "ZigbeeBD0C/water_leak_sensor_kitchen_washer"
|
||||
value_template: "{{ value_json.water_leak }}"
|
||||
device_class: moisture
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_kitchen_washer"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.water_leak_sensor_kitchen_washer:
|
||||
friendly_name: Кухня стиралка (протечка)
|
||||
@@ -0,0 +1,7 @@
|
||||
mqtt:
|
||||
switch:
|
||||
- name: "permit_join"
|
||||
state_topic: "zigbee2mqtt/bridge/config/permit_join"
|
||||
command_topic: "zigbee2mqtt/bridge/config/permit_join"
|
||||
payload_on: "true"
|
||||
payload_off: "false"
|
||||
Reference in New Issue
Block a user