https://github.com/dolezsa/Xiaomi_Hygrothermo
Home-assistant sensor platform for Xiaomi Mijia BT Hygrothermo temperature and humidity sensor
https://github.com/dolezsa/Xiaomi_Hygrothermo
Last synced: 8 months ago
JSON representation
Home-assistant sensor platform for Xiaomi Mijia BT Hygrothermo temperature and humidity sensor
- Host: GitHub
- URL: https://github.com/dolezsa/Xiaomi_Hygrothermo
- Owner: dolezsa
- License: mit
- Created: 2018-03-12T00:19:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-26T04:25:53.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T22:41:53.710Z (about 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 89
- Watchers: 11
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- Self-Hosting-Guide - Xiaomi Hygrothermo - Sensor platform for Xiaomi Mijia BT Hygrothermo temperature and humidity sensor. (Install from Source / Smart Home Automation)
- awesome-home-assistant - Xiaomi Hygrothermo - Sensor platform for Xiaomi Mijia BT Hygrothermo temperature and humidity sensor. (Custom Integrations / Alternative Dashboards)
README
# Xiaomi_Hygrothermo
Home-assistant sensor platform for Xiaomi Mijia BT Hygrothermo temperature and humidity sensor.
## Usage
To use, add the following to your `configuration.yaml` file:
```
sensor:
- platform: xiaomi_hygrothermo
name: mijia ht #1
mac: 'xx:xx:xx:xx:xx:xx'
scan_interval: 60
```
- mac is required.
- default "scan" interval is every 30 seconds.
## Determine the MAC address
using hcitool:
```
$ sudo hcitool lescan
LE Scan ...
LE Scan ...
4C:65:A8:xx:xx:xx (unknown)
4C:65:A8:xx:xx:xx MJ_HT_V1
[...]
```
using bluetoothctl:
```
$ sudo bluetoothctl
[NEW] Controller xx:xx:xx:xx:xx:xx homeqube [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller xx:xx:xx:xx:xx:xx Discovering: yes
[NEW] Device 4C:65:A8:xx:xx:xx MJ_HT_V1
[bluetooth]#
[bluetooth]# quit
```
look for MJ_HT_V1 devices...