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).
Instructions for connecting the sensor on the HA website: 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.
Determining the MAC address of the sensor.
Turn on the sensor and place it near the controller or at a short distance with a clear line of sight. Run the bluetoothctl utility and turn on the Bluetooth device scanning mode:
bluetoothctl [bluetooth]#scan on
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 MJ_HT_V1:
... [NEW] Device 4C:65:A8:D4:5E:BF MJ_HT_V1 ...
This is the desired sensor and its MAC address - 4C: 65: A8: D4: 5E: BF
Stop the scanning process:
[bluetooth]# scan off
Display a list of found devices:
This list must also contain the desired device:
... Device 4C:65:A8:D4:5E:BF MJ_HT_V1 ...
Exit the utility:
Adding a sensor to Home Assistant
Home Assistant has native support for Xiaomi Mijia BLE MJ_HT_V1 sensors via mitemp_bt integration. The following lines must be added to the .homeassistant/configuration.yaml configuration file:
sensor: - platform: mitemp_bt mac: "4C:65:A8:D4:5E:BF" name: living_room_wall_temp force_update: true median: 3 monitored_conditions: - temperature - humidity - battery
After making changes to the configuration file, you must restart the Home Assistant Core.