Skip to content

Instantly share code, notes, and snippets.

View kai-zer-ru's full-sized avatar

Ковалёв Максим kai-zer-ru

View GitHub Profile
@kai-zer-ru
kai-zer-ru / coffee_alisa.yaml
Created October 9, 2024 04:48
coffee_alisa.yaml
switch.0x00124b000e24ecaf:
name: Кофеварка
room: Кухня
type: devices.types.cooking.coffee_maker
properties:
- type: power
entity: sensor.0x00124b000e24ecaf_power
- type: amperage
entity: sensor.0x00124b000e24ecaf_current
- type: voltage
@kai-zer-ru
kai-zer-ru / coffee.yaml
Last active October 9, 2024 04:28
coffee.yaml
coffee:
input_boolean:
make_coffe_morning:
name: Приготовить кофе утром?
icon: mdi:coffee-maker-check
coffee_in_progress:
name: Кофе готовится
icon: mdi:coffee-to-go
script:
make_coffee:
@kai-zer-ru
kai-zer-ru / aqara_n100_events.yaml
Created September 23, 2024 04:47
Aqara N100 evenst
description: ""
mode: queued
trigger:
- platform: state
entity_id:
- sensor.0x54ef441000160cdb_lock_event
to: Doorbell is ringing
enabled: true
- platform: state
entity_id:
@kai-zer-ru
kai-zer-ru / home-assistant-domain.name.conf
Created September 6, 2024 02:41
HomeAssistant nginx conf
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
server_name home-assistant-domain.name;
location / {
proxy_pass http://192.168.1.16:8123;
proxy_set_header Host $host;
@kai-zer-ru
kai-zer-ru / esphome_tclac.log
Created June 17, 2024 13:19
esphome tclac log
2024-06-17 21:17:10.533 DEBUG (MainThread) [aioesphomeapi.connection] tclac @ 192.168.1.157: Sending ClimateCommandRequest: key: 2668529898
has_fan_mode: true
fan_mode: CLIMATE_FAN_HIGH
2024-06-17 21:17:10.534 DEBUG (MainThread) [aioesphomeapi._frame_helper.base] tclac @ 192.168.1.157: Sending frame: [01001d76e46052c44ab1da3cdf04b03c73853820638f54eb1598d55d5fc83fc5]
2024-06-17 21:17:10.952 DEBUG (MainThread) [aioesphomeapi.connection] tclac @ 192.168.1.157: Got message of type ClimateStateResponse: key: 2668529898
mode: CLIMATE_MODE_COOL
current_temperature: 26.666666
target_temperature: 23
fan_mode: CLIMATE_FAN_AUTO
@kai-zer-ru
kai-zer-ru / stirka.yaml
Created May 22, 2024 09:37
Пакет скриптов и автоматизация для стиральной машины
stirka:
####################################
automation:
####################################
- id: stirka_start
alias: Стирка
@kai-zer-ru
kai-zer-ru / esp32wroom32tclac.yaml
Created April 3, 2024 08:00
esp32wroom32tclac.yaml
substitutions:
# Уникальное имя этой конфигурации, стоит использовать только латинские буквы и цифры, никаких пробелов или
# спецсимволов, например, "tclac". Если будет несколько модулей кондиционера, то device_name надо изменить,
# например, добавляя цифры: tclac1, tclac2, tclac3...
device_name: tclac
# Человеческое имя для кондиционера, для интерфейса:
humanly_name: TCL Air Conditioner
# Настройки подключения к WiFI, данные могут храниться в файле "secret" в ESPHome, если нет- редактируем:
# Имя точки доступа WiFI:
@kai-zer-ru
kai-zer-ru / open_door_lock.yaml
Last active March 29, 2024 08:27
open_door_lock.yaml
alias: Открытие двери
description: ""
trigger:
- platform: state
entity_id:
- sensor.0x54ef441000160cdb_lock_event
to: Doorbell is ringing
enabled: true
- platform: state
entity_id:
@kai-zer-ru
kai-zer-ru / water_heater.yaml
Last active March 4, 2024 08:48
water_heater.yaml
blueprint:
name: Упраление чайником
description: Управляем чайником
domain: automation
input:
water_heater:
name: Чайник
selector:
entity:
filter:
@kai-zer-ru
kai-zer-ru / switch_timer_motion_blueprint.yaml
Last active March 4, 2024 06:02
switch_timer_motion_blueprint.yaml
blueprint:
name: Switch по датчику движения
description: Управляем Switch по датчику движения с задержкой
domain: automation
input:
motion_entity:
name: Датчик движения
selector:
entity:
domain: