This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_select: | |
radio: | |
name: Радио | |
options: ['-'] | |
icon: mdi:radio | |
python_script: # https://github.com/AlexxIT/PythonScriptsPro | |
automation: | |
trigger: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
automation: | |
- trigger: | |
platform: event | |
event_type: yandex_station_response | |
action: | |
service: telegram_bot.send_message | |
data_template: | |
target: "{{ trigger.event.data.request_id }}" | |
message: "{{ trigger.event.data.text }}" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yandex_station: # мой компонент YandexStation | |
username: myuser | |
password: mypass | |
intents: | |
Расскажи шутку: # добавьте ваши фразы | |
yandex_smart_home: # НЕ мой компонент Yandex Smart Home | |
filter: # не забудьте добавить другие, важные для вас, устройства | |
include_entities: | |
- media_player.yandex_intents # этот плеер отвечает за работу `intents` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.mosvodokanal.ru/forpeople/waterquality.php | |
# http://www.mosvodokanal.ru/widget-water.php | |
sensor: | |
- platform: rest | |
resource: http://www.mosvodokanal.ru:10080/webservices/address/qual?code=4 | |
name: mosvodokanal | |
value_template: '{{ value_json.result.dtto }}' | |
scan_interval: '12:00:00' | |
json_attributes_path: $.result | |
json_attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
binary_sensor: | |
- platform: template | |
sensors: | |
fridge_top_temperature_is_ok: | |
value_template: >- | |
{{ (states('sensor.0x00158d00045f5f93_temperature') | float > 5) | |
and (states('sensor.0x00158d00045f5f93_temperature') | float < 12) }} | |
fridge_bottom_temperature_is_ok: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Колонка произнесёт текст с заданной громкостью и вернёт громкость на прежний уровень. | |
# Создаем скрипт для отображения сервисных шаблонов | |
# Интеграция: https://github.com/AlexxIT/YandexStation | |
# Документация: Passing variables to scripts https://www.home-assistant.io/integrations/script/#passing-variables-to-scripts | |
tts_yandex_station_say: | |
alias: TTS Яндекс колонка | |
fields: | |
device: | |
name: Выберите свою колонку | |
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Создаем python файлик shopping_list.py | |
1) Создаем папку python_scripts в config | |
2) Создаем текстовый файлик с именем shopping_list.txt и переименовываем расширение с txt на py. Должно получиться shopping_list.py | |
3) Вставляем этот код, который будет считывать данные с файлика .shopping_list.json | |
#!/usr/local/bin/python | |
# coding: utf8 | |
import json | |
with open('/config/.shopping_list.json') as data_file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Создаем папку python_scripts в config | |
2) Создаем текстовый файлик с именем shopping_list.txt и переименовываем расширение с txt на py. Должно получиться shopping_list.py | |
3) Вставляем этот код, который будет считывать данные с файлика .shopping_list.json | |
#!/usr/local/bin/python | |
# coding: utf8 | |
import json | |
with open('/config/.shopping_list.json') as data_file: | |
shoppingListData = json.load(data_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Поделюсь идеей "Умный дом с диваном, ссылка https://www.youtube.com/watch?v=firuRxAtHBA&t=8s" про виртуальное отслеживание | |
пользователя. Данный вариант мне нужен для того, чтобы при утрате устройства я мог вручную дать понять системе, что я дома, а также | |
избежать редактирование нескольких автоматизации, где участвует устройство для отслеживания. Если у нас сломался телефон, потерялся | |
брелок или телефон, или метка, да что угодно может произойти. От этого никто не застрахован. То достаточно нажать на кнопку, что я дома | |
вручную и внести изменение только в одной автоматизации. Этот виртуальный выключатель можно задействовать во многих автоматизациях для | |
отслеживания. | |
2. Создано в Packages в Home Assistant предоставляют возможность объединить различные конфигурации компонентов вместе, | |
ссылка https://www.home-assistant.io/docs/configuration/packages/. | |
family_home: |
OlderNewer