当前位置:网站首页>Meizu Bluetooth remote control temperature and humidity access homeassistant
Meizu Bluetooth remote control temperature and humidity access homeassistant
2022-07-05 08:24:00 【Sharing master】
Meizu remote control purchased three , With the efforts of the forum God , Now connected to homeassistant.
1. Download plug-ins , Put it in custom_components/meizu_hygrothermo
2. install bulepy
sudo apt-get install python3-pip libglib2.0-dev
apt-get install -y python3-setuptools
sudo apt-get install git build-essential libglib2.0-dev
git clone https://github.com/IanHarvey/bluepy.git
cd bluepy
python3 setup.py build
sudo python3 setup.py install
3. Add to boot process
Write the script in /etc/rc.local file
Enter the command :
sudo vi /etc/rc.local
stay exit 0 Enter on the previous line :
python3 /bluepy/gateway.py( You put gateway.py Path to file )
preservation
Restart to see the effect
4. Use your charm home app Rename the connected Bluetooth 1、2、3……
5. The configuration file
sensor:
- platform: meizu_hygrothermo
name: keting #1
host: '192.168.99.5' # Be the server of Bluetooth gateway ip, The project is to write gateway mac, I test with ip Can only be
mac: '68:3E:34:CC:D3:44' # Meizu Bluetooth mac Address
scan_interval: 30
- platform: meizu_hygrothermo
name: zhuwo #2
host: '192.168.99.5'
mac: '68:3E:34:CC:DE:D2'
scan_interval: 30
homeassistant:
customize:
sensor.keting_humidity:
friendly_name: Humidity in living room
sensor.keting_temperature:
friendly_name: The temperature in the living room
sensor.zhuwo_humidity:
friendly_name: Humidity in master bedroom
sensor.zhuwo_temperature:
friendly_name: Master bedroom temperature
group:
huanjing:
name: Indoor environment
view: no
entities:
- sensor.keting_humidity
- sensor.keting_temperature
- sensor.zhuwo_humidity
- sensor.zhuwo_temperature
sudo reboot
6. Configure Bluetooth
bluetoothctl
stay [bluetooth]# Input... In mode
power on # Turn on Bluetooth
scan on # scanning , Enter this command and you will see your Meizu Bluetooth mac 了
agent on # open agent, I don't know this either
trust [BT mac address] # Trust Bluetooth mac
pair [BT mac address] # I don't know what it is ,pair A space followed by your Meizu Bluetooth mac, If you want to connect several, just separate pair xx:xx:xx........
connect [BT mac address] # Connect Meizu Bluetooth , Also connect several , Just connect them separately .
quit # sign out bluetoothctl
reboot # restart N1
The effect is as follows
边栏推荐
- List of linked lists
- Circleq of linked list
- [tutorial 15 of trio basic from introduction to proficiency] trio free serial communication
- leetcode - 445. 两数相加 II
- [trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
- Summary -st2.0 Hall angle estimation
- Buildroot system for making raspberry pie cm3
- Five design details of linear regulator
- Google sitemap files for rails Projects - Google sitemap files for rails projects
- 实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
猜你喜欢
实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
实例006:斐波那契数列
C language # and #
After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update
STM32 single chip microcomputer -- debug in keil5 cannot enter the main function
Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)
[three tier architecture]
如何写Cover Letter?
DCDC circuit - function of bootstrap capacitor
随机推荐
STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)
On boost circuit
Installation and use of libjpeg and ligpng
实例010:给人看的时间
Slist of linked list
Step motor generates S-curve upper computer
2020-05-21
Live555 push RTSP audio and video stream summary (I) cross compilation
STM32 --- NVIC interrupt
Simple design description of MIC circuit of ECM mobile phone
Void* C is a carrier for realizing polymorphism
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
Stm32--- systick timer
Example 003: a complete square is an integer. It is a complete square after adding 100, and it is a complete square after adding 168. What is the number?
Working principle and type selection of common mode inductor
[paper reading] the latest transfer ability in deep learning: a survey in 2022
Wifi-802.11 negotiation rate table
Semiconductor devices (I) PN junction
亿学学堂给的证券账户安不安全?哪里可以开户
Sword finger offer 06 Print linked list from end to end