Skip to content

Instantly share code, notes, and snippets.

@kai-zer-ru
Last active September 8, 2024 10:28
Show Gist options
  • Save kai-zer-ru/dd569f82857707231cda09c07aad93b3 to your computer and use it in GitHub Desktop.
Save kai-zer-ru/dd569f82857707231cda09c07aad93b3 to your computer and use it in GitHub Desktop.
yandex_smart_home.yaml
# Эти 4 строки нужны только при прямом подключении (не через Yaha Cloud)
notifier:
- oauth_token: !secret yandex_smart_home_oauth_token
skill_id: !secret yandex_smart_home_skill_id
user_id: !secret yandex_smart_home_user_id
# А всё что ниже - для всех типо водключения
entity_config:
sensor.datchik_temperatury_i_vlazhnosti_temperature:
name: Датчик температуры
type: devices.types.sensor.climate
room: Спальня
properties:
- type: temperature
entity: sensor.datchik_temperatury_i_vlazhnosti_temperature
- type: humidity
entity: sensor.datchik_temperatury_i_vlazhnosti_humidity
- type: battery_level
entity: sensor.datchik_temperatury_i_vlazhnosti_battery
sensor.0x00158d0000dacf06_temperature:
name: Датчик климата
type: devices.types.sensor.climate
room: Зал
properties:
- type: temperature
entity: sensor.0x00158d0000dacf06_temperature
- type: humidity
entity: sensor.0x00158d0000dacf06_humidity
- type: battery_level
entity: sensor.0x00158d0000dacf06_battery
- type: pm1_density
entity: sensor.0x00158d0000dacf06_voc
- type: co2_level
entity: sensor.0x00158d0000dacf06_eco2
sensor.datchik_temperatury_i_vlazhnosti_2_temperature:
name: Датчик температуры
type: devices.types.sensor.climate
room: Детская
properties:
- type: temperature
entity: sensor.datchik_temperatury_i_vlazhnosti_2_temperature
- type: humidity
entity: sensor.datchik_temperatury_i_vlazhnosti_2_humidity
- type: battery_level
entity: sensor.datchik_temperatury_i_vlazhnosti_2_battery
binary_sensor.datchik_dvizheniia_prostoi_occupancy:
name: Датчик движения
room: Кухня
type: devices.types.sensor.motion
properties:
- type: motion
entity: binary_sensor.datchik_dvizheniia_prostoi_occupancy
- type: battery_level
entity: sensor.datchik_dvizheniia_prostoi_battery
binary_sensor.datchik_dvizheniia_v_vannoi_occupancy:
name: Датчик движения
room: Ванная
type: devices.types.sensor.motion
properties:
- type: motion
entity: binary_sensor.datchik_dvizheniia_v_vannoi_occupancy
- type: battery_level
entity: sensor.datchik_dvizheniia_v_vannoi_battery
binary_sensor.datchik_dvizheniia_v_koridore_occupancy:
name: Датчик движения
room: Коридор
type: devices.types.sensor.motion
properties:
- type: motion
entity: binary_sensor.datchik_dvizheniia_v_koridore_occupancy
- type: battery_level
entity: sensor.datchik_dvizheniia_v_koridore_battery
binary_sensor.datchik_dvizheniia_v_spalne_occupancy:
name: Датчик движения
room: Спальня
type: devices.types.sensor.motion
properties:
- type: motion
entity: binary_sensor.datchik_dvizheniia_v_spalne_occupancy
- type: battery_level
entity: sensor.datchik_dvizheniia_v_spalne_battery
binary_sensor.datchik_otkrytiia_dveri_na_balkon_contact:
name: Датчик открытия балкона
room: Зал
type: devices.types.sensor.open
properties:
- type: open
entity: binary_sensor.datchik_otkrytiia_dveri_na_balkon_contact
- type: battery_level
entity: sensor.datchik_otkrytiia_dveri_na_balkon_battery
binary_sensor.datchik_otkrytiia_okna_v_detskoi_contact:
name: Датчик открытия окна
room: Детская
type: devices.types.sensor.open
properties:
- type: open
entity: binary_sensor.datchik_otkrytiia_okna_v_detskoi_contact
- type: battery_level
entity: sensor.datchik_otkrytiia_okna_v_detskoi_battery
binary_sensor.datchik_otkrytiia_okna_na_kukhne_contact:
name: Датчик открытия окна
room: Кухня
type: devices.types.sensor.open
properties:
- type: open
entity: binary_sensor.datchik_otkrytiia_okna_na_kukhne_contact
- type: battery_level
entity: sensor.datchik_otkrytiia_okna_na_kukhne_battery
binary_sensor.0x00158d0000b3a1a8_contact:
name: Дверь в детской
room: Детская
type: devices.types.sensor.open
properties:
- type: open
entity: binary_sensor.0x00158d0000b3a1a8_contact
- type: battery_level
entity: sensor.0x00158d0000b3a1a8_battery
binary_sensor.0x00158d0000b4832a_contact:
name: Дверь в спальню
room: Спальня
type: devices.types.sensor.open
properties:
- type: open
entity: binary_sensor.0x00158d0000b4832a_contact
- type: battery_level
entity: sensor.0x00158d0000b4832a_battery
binary_sensor.datchik_protechki_na_kukhne_water_leak:
name: Датчик протечки кухня
room: Кухня
type: devices.types.sensor.water_leak
properties:
- type: water_leak
entity: binary_sensor.datchik_protechki_na_kukhne_water_leak
- type: battery_level
entity: sensor.datchik_protechki_na_kukhne_battery
binary_sensor.datchik_protechki_pod_vannoi_water_leak:
name: Датчик протечки ванна
room: Ванная
type: devices.types.sensor.water_leak
properties:
- type: water_leak
entity: binary_sensor.datchik_protechki_pod_vannoi_water_leak
- type: battery_level
entity: sensor.datchik_protechki_pod_vannoi_battery
binary_sensor.datchik_protechki_pod_stiralkoi_water_leak:
name: Датчик протечки под стиралкой
room: Ванная
type: devices.types.sensor.water_leak
properties:
- type: water_leak
entity: binary_sensor.datchik_protechki_pod_stiralkoi_water_leak
- type: battery_level
entity: sensor.datchik_protechki_pod_unitazom_battery
sensor.0x54ef44100010eeef_illuminance:
name: Датчик освещённости
room: Коридор
type: devices.types.sensor.illumination
sensor.datchik_dvizheniia_v_spalne_illuminance_lux:
name: Датчик освещённости
room: Спальня
type: devices.types.sensor.illumination
sensor.datchik_dvizheniia_v_koridore_illuminance_lux:
name: Датчик освещённости
room: Зал
type: devices.types.sensor.illumination
sensor.datchik_dvizheniia_v_vannoi_illuminance_lux:
name: Датчик освещённости
room: Ванная
type: devices.types.sensor.illumination
binary_sensor.datchik_protechki_pod_unitazom_water_leak:
name: Датчик протечки под унитазом
room: Ванная
type: devices.types.sensor.water_leak
properties:
- type: water_leak
entity: binary_sensor.datchik_protechki_pod_unitazom_water_leak
- type: battery_level
entity: sensor.datchik_protechki_pod_unitazom_battery_2
switch.washing_machine:
name: Розетка в ванной
room: Ванная
type: devices.types.socket
properties:
- type: power
entity: sensor.washing_machine_power
- type: amperage
entity: sensor.washing_machine_current
- type: voltage
entity: sensor.washing_machine_voltage
switch.0x00124b0009fe0da5:
name: Розетка 1
room: Детская
type: devices.types.socket
properties:
- type: power
entity: sensor.0x00124b0009fe0da5_power
- type: amperage
entity: sensor.0x00124b0009fe0da5_current
- type: voltage
entity: sensor.0x00124b0009fe0da5_voltage
switch.0x00124b000e24ecaf:
name: Розетка 2
room: Детская
type: devices.types.socket
properties:
- type: power
entity: sensor.0x00124b000e24ecaf_power
- type: amperage
entity: sensor.0x00124b000e24ecaf_current
- type: voltage
entity: sensor.0x00124b000e24ecaf_voltage
humidifier.mi_smart_antibacterial_humidifier:
name: Увлажнитель
room: Детская
properties:
- type: humidity
entity: sensor.datchik_temperatury_i_vlazhnosti_2_humidity
- type: temperature
entity: sensor.datchik_temperatury_i_vlazhnosti_2_temperature
custom_toggles:
backlight:
state_entity_id: switch.mi_smart_antibacterial_humidifier_led
state_attribute: indicator_light.on
turn_on:
service: switch.turn_on
entity_id: switch.mi_smart_antibacterial_humidifier_led
turn_off:
service: switch.turn_off
entity_id: switch.mi_smart_antibacterial_humidifier_led
mute:
state_entity_id: switch.mi_smart_antibacterial_humidifier_buzzer
state_attribute: alarm
turn_on:
service: switch.turn_off
entity_id: switch.mi_smart_antibacterial_humidifier_buzzer
turn_off:
service: switch.turn_on
entity_id: switch.mi_smart_antibacterial_humidifier_buzzer
modes:
program:
low: ["Low"]
medium: ["Medium"]
high: ["High"]
auto: ["ConstHumidity"]
humidifier.deerma_jsq2w_3edd_humidifier:
name: Увлажнитель
room: Спальня
properties:
- type: humidity
entity: sensor.datchik_temperatury_i_vlazhnosti_humidity
- type: temperature
entity: sensor.datchik_temperatury_i_vlazhnosti_temperature
custom_toggles:
backlight:
state_entity_id: light.deerma_jsq2w_3edd_indicator_light
state_attribute: indicator_light.on
turn_on:
service: light.turn_on
entity_id: light.deerma_jsq2w_3edd_indicator_light
turn_off:
service: light.turn_off
entity_id: light.deerma_jsq2w_3edd_indicator_light
mute:
state_entity_id: switch.xiaomi_smart_humidifier_2_alarm
state_attribute: alarm
turn_on:
service: switch.turn_off
entity_id: switch.xiaomi_smart_humidifier_2_alarm
turn_off:
service: switch.turn_on
entity_id: switch.xiaomi_smart_humidifier_2_alarm
modes:
program:
low: ["Level1"]
medium: ["Level2"]
high: ["Level3"]
auto: ["Level4"]
custom_modes:
program:
state_entity_id: fan.deerma_jsq2w_3edd_fan_level
state_attribute: preset_mode
set_mode:
service: fan.set_preset_mode
entity_id: fan.deerma_jsq2w_3edd_fan_level
data:
preset_mode: "{{ mode }}"
sensor.knopka_kruglaia_2_action:
device_class: button
name: Звонок
room: Коридор
properties:
- type: battery_level
entity: sensor.0x00158d0005be0a4e_battery
binary_sensor.datchik_gaza_gas:
type: devices.types.sensor.gas
name: Датчик газа
room: Кухня
water_heater.skykettle_rk_m216s:
name: Чайник
room: Кухня
type: devices.types.cooking.kettle
properties:
- type: temperature
entity: water_heater.skykettle_rk_m216s
attribute: current_temperature
- type: power
entity: sensor.skykettle_rk_m216s_total_energy_consumed
custom_toggles:
backlight:
state_entity_id: switch.skykettle_rk_m216s_enable_sync_light
turn_on:
service: switch.turn_on
entity_id: switch.skykettle_rk_m216s_enable_sync_light
turn_off:
service: switch.turn_off
entity_id: switch.skykettle_rk_m216s_enable_sync_light
mute:
state_entity_id: switch.skykettle_rk_m216s_enable_sound
turn_on:
service: switch.turn_on
entity_id: switch.skykettle_rk_m216s_enable_sound
turn_off:
service: switch.turn_off
entity_id: switch.skykettle_rk_m216s_enable_sound
custom_ranges:
temperature:
state_attribute: temperature
set_value:
service: water_heater.set_temperature
data:
temperature: '{{ value }}'
operation_mode: '{% if value == 100 %} Boil {% elif value == 90 %} Boil+Heat {% else %} Heat {% endif %}'
target:
entity_id: water_heater.skykettle_rk_m216s
range:
min: 25
max: 100
precision: 5
sensor.datchik_temperatury_v_vannoi_temperature:
name: Датчик температуры
type: devices.types.sensor.climate
room: Ванная
properties:
- type: temperature
entity: sensor.datchik_temperatury_v_vannoi_temperature
- type: humidity
entity: sensor.datchik_temperatury_v_vannoi_humidity
- type: battery_level
entity: sensor.datchik_temperatury_v_vannoi_battery
sensor.datchik_temperatury_3_temperature:
name: Датчик температуры
type: devices.types.sensor.climate
room: Кухня
properties:
- type: temperature
entity: sensor.datchik_temperatury_3_temperature
- type: humidity
entity: sensor.datchik_temperatury_3_humidity
- type: battery_level
entity: sensor.datchik_temperatury_3_battery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment