en:ha_mitemp_bt_howto  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ======
  
-====== Работа с датчиком температуры Xiaomi Mijia BLE в Home Assistant ======+JetHome H1 and Jethome D1 controllers have a built-in WiFi/Bluetooth module and allow you to work with Bluetooth devices. Below is an example of connecting Xiaomi Mijia BLE MJ_HT_V1 Bluetooth temperature and humidity sensor (round-shaped with display) to a controller with Home Assistant Core installed (installation in python virtual environment).
  
-Контроллеры 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/integrations/mitemp_bt/
  
-Инструкция по подключению датчика на сайте HA: https://www.home-assistant.io/integrations/mitemp_bt/+To connect a sensor, you need to find its MAC address and edit the HA configuration file.
  
-Для подключения датчика необходимо определить его MAC-адрес и внести изменения в конфигурационный файл HA.+**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 sightRun the //bluetoothctl// utility and turn on the Bluetooth device scanning mode:
- +
-Включите датчик и расположите его рядом с контроллером или на небольшом расстоянии с прямой видимостью. Запустите утилиту //bluetoothctl// и включите режим сканирования Bluetooth устройств:+
  
 <code> <code>
 bluetoothctl bluetoothctl
-[bluetooth]# scan on+[bluetooth]#scan on
 </code> </code>
  
-Информация об обнаруженных устройствах будет выводиться в окно терминалаДатчик отправляет данные примерно каждые 30 сек и информация от датчика должна появиться через некоторое времяНас интересует устройство с идентификатором MJ_HT_V1:+Information about discovered devices will be displayed in the consoleThe sensor sends data approximately every 30 seconds and information from the sensor should appear after a whileWe are looking for the device with the identifier MJ_HT_V1:
  
 <code> <code>
Line 26: Line 24:
 </code> </code>
  
-Это и есть искомый датчик и его MAC-адрес - 4C:65:A8:D4:5E:BF+This is the desired sensor and its MAC address  - 4C: 65: A8: D4: 5E: BF
  
-Остановите процесс сканирования:+Stop the scanning process:
 <code> <code>
 [bluetooth]# scan off [bluetooth]# scan off
 </code> </code>
  
-Вывести список найденных устройств:+Display a list of found devices:
 <code> <code>
 [bluetooth]# devices [bluetooth]# devices
 </code> </code>
  
-В данном списке также должно присутствовать искомой устройство:+This list must also contain the desired device:
 <code> <code>
 ... ...
Line 45: Line 43:
 </code> </code>
  
-Выйдите из утилиты:+Exit the utility:
 <code> <code>
 [bluetooth]# exit [bluetooth]# exit
 </code> </code>
  
-**Добавление датчика в Home Assistant**+**Adding a sensor to Home Assistant**
  
-Home Assistant имеет встроенную поддержку датчиков Xiaomi Mijia BLE MJ_HT_V1 с помощью интеграции mitemp_bt. В файл конфигурации .homeassistant/configuration.yaml необходимо добавить следующие строки:+Home Assistant has native support for Xiaomi Mijia BLE MJ_HT_V1 sensors via mitemp_bt integrationThe following lines must be added to the .homeassistant/configuration.yaml configuration file:
  
-<code> +<code>
 sensor: sensor:
   - platform: mitemp_bt   - platform: mitemp_bt
Line 67: Line 65:
 </code> </code>
  
-где+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 (sudden changes in temperature and humidity values). In this example, the averaged data for samples is transmitted
-  * monitored_conditions - указываются параметры, которые нужно отслеживатьВ данном примере этотемпература влажность и заряд батарейки.+  * monitored_conditions - specifies the parameters to be monitoredIn this example, these aretemperature, humidity and battery charge.
  
-После внесения изменений в файл конфигурации необходимо перезапустить сервер Home Assistant. +After making changes to the configuration file, you must restart the Home Assistant Core.
- +
en/ha_mitemp_bt_howto.1642842837.txt.gz · Last modified: 2022/01/22 12:13 by Dmitriy