当前位置:网站首页>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

边栏推荐
- My-basic application 2: my-basic installation and operation
- [nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)
- Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
- Adaptive filter
- leetcode - 445. 两数相加 II
- PMSM dead time compensation
- Sword finger offer 09 Implementing queues with two stacks
- 2022.7.4-----leetcode.1200
- go依赖注入--google开源库wire
- H264 (I) i/p/b frame gop/idr/ and other parameters
猜你喜欢

Design a clock frequency division circuit that can be switched arbitrarily

DokuWiki deployment notes

实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。

C language # and #

Example 008: 99 multiplication table
Example 001: the number combination has four numbers: 1, 2, 3, 4. How many three digits can be formed that are different from each other and have no duplicate numbers? How many are each?

Why is 1900 not a leap year

After installing the new version of keil5 or upgrading the JLINK firmware, you will always be prompted about the firmware update

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?

Nb-iot technical summary
随机推荐
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
Talk about the circuit use of TVs tube
实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
Soem EtherCAT source code analysis II (list of known configuration information)
My-basic application 1: introduction to my-basic parser
[trio basic from introduction to mastery tutorial 20] trio calculates the arc center and radius through three points of spatial arc
DCDC circuit - function of bootstrap capacitor
Various types of questions judged by prime numbers within 100 (C language)
Example 009: pause output for one second
Sql Server的存储过程详解
Example 005: three numbers sorting input three integers x, y, Z, please output these three numbers from small to large.
Explication de la procédure stockée pour SQL Server
leetcode - 445. 两数相加 II
Step motor generates S-curve upper computer
What are the test items of power battery ul2580
Verilog -- state machine coding method
[trio basic from introduction to mastery tutorial XIV] trio realizes unit axis multi-color code capture
[tutorial 15 of trio basic from introduction to proficiency] trio free serial communication
Negative pressure generation of buck-boost circuit
Synchronization of QT multithreading