This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:ha_mitemp_bt_howto [2022/01/22 12:13] Dmitriy created |
en:ha_mitemp_bt_howto [2022/02/02 21:00] (current) Leonid Titov |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Working with Xiaomi Mijia BLE Temperature Sensor in Home Assistant ====== |
- | ====== Работа с датчиком температуры | + | JetHome H1 and Jethome D1 controllers have a built-in WiFi/ |
- | Контроллеры JetHome H1 и Jethome D1 имеют встроенный модуль WiFi/Bluetooth и позволяют работать с Bluetooth устройствами. Ниже приводится пример подключения Bluetooth датчика температуры и влажности Xiaomi Mijia BLE MJ_HT_V1 (круглый с дисплеем) к контроллеру с установленным Home Assistant core (установка в виртуальное окружение python). | + | Instructions for connecting the sensor on the HA website: https://www.home-assistant.io/ |
- | Инструкция по подключению датчика на сайте | + | To connect a sensor, you need to find its MAC address and edit the HA configuration file. |
- | Для подключения датчика необходимо определить его | + | **Determining the MAC address of the sensor.** |
- | **Определение MAC-адреса датчика.** | + | Turn on the sensor and place it near the controller or at a short distance with a clear line of sight. Run the // |
- | + | ||
- | Включите датчик и расположите его рядом с контроллером или на небольшом расстоянии с прямой видимостью. Запустите утилиту | + | |
< | < | ||
bluetoothctl | bluetoothctl | ||
- | [bluetooth]# | + | [bluetooth]# |
</ | </ | ||
- | Информация об обнаруженных устройствах будет выводиться в окно терминала. Датчик отправляет данные примерно каждые | + | Information about discovered devices will be displayed in the console. The sensor sends data approximately every 30 seconds and information from the sensor should appear after a while. We are looking for the device with the identifier |
< | < | ||
Line 26: | Line 24: | ||
</ | </ | ||
- | Это и есть искомый датчик и его | + | This is the desired sensor and its MAC address |
- | Остановите процесс сканирования: | + | Stop the scanning process: |
< | < | ||
[bluetooth]# | [bluetooth]# | ||
</ | </ | ||
- | Вывести список найденных устройств: | + | Display a list of found devices: |
< | < | ||
[bluetooth]# | [bluetooth]# | ||
</ | </ | ||
- | В данном списке также должно присутствовать искомой устройство: | + | This list must also contain the desired device: |
< | < | ||
... | ... | ||
Line 45: | Line 43: | ||
</ | </ | ||
- | Выйдите из утилиты: | + | Exit the utility: |
< | < | ||
[bluetooth]# | [bluetooth]# | ||
</ | </ | ||
- | **Добавление датчика в Home Assistant** | + | **Adding a sensor to Home Assistant** |
- | Home Assistant | + | Home Assistant |
- | < | + | < |
sensor: | sensor: | ||
- platform: mitemp_bt | - platform: mitemp_bt | ||
Line 67: | Line 65: | ||
</ | </ | ||
- | где: | + | where: |
- | * mac - MAC-адрес датчика; | + | * mac - MAC address of the sensor; |
- | * name - отображаемое в Home Assistant | + | * name - the name of the sensor displayed in the Home Assistant; |
- | * force_update - принудительно обновлять данные от датчика в HA даже если они не меняются; | + | * force_update - force update data from the sensor in HA even if they do not change; |
- | * median - позволяет исключить ошибки от датчика | + | * median - allows you to exclude errors from the sensor |
- | * monitored_conditions - указываются параметры, | + | * monitored_conditions - specifies the parameters to be monitored. In this example, these are: temperature, |
- | После внесения изменений в файл конфигурации необходимо перезапустить сервер | + | After making changes to the configuration file, you must restart the Home Assistant |
- | + |