当前位置:网站首页>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
边栏推荐
- More than 90% of hardware engineers will encounter problems when MOS tubes are burned out!
- OC and OD gate circuit
- STM32---ADC
- Example 006: Fibonacci series
- UE像素流,来颗“减肥药”吧!
- STM32 single chip microcomputer - bit band operation
- Soem EtherCAT source code analysis II (list of known configuration information)
- PMSM dead time compensation
- [nas1] (2021cvpr) attentivenas: improving neural architecture search via attentive sampling (unfinished)
- Explication de la procédure stockée pour SQL Server
猜你喜欢
DokuWiki deployment notes
Compilation warning solution sorting in Quartus II
Bluebridge cup internet of things basic graphic tutorial - GPIO output control LD5 on and off
Measurement fitting based on Halcon learning [III] PM_ measure_ board. Hdev routine
The firmware of the connected j-link does not support the following memory access
Management and use of DokuWiki (supplementary)
DCDC circuit - function of bootstrap capacitor
剑指 Offer 05. 替换空格
Soem EtherCAT source code analysis attachment 1 (establishment of communication operation environment)
STM32 --- NVIC interrupt
随机推荐
[trio basic tutorial 18 from introduction to proficiency] trio motion controller UDP fast exchange data communication
Matlab2018b problem solving when installing embedded coder support package for stmicroelectronic
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?
STM32 tutorial triple ADC interleaved sampling
On boost circuit
NTC thermistor application - temperature measurement
Bootloader implementation of PIC MCU
Let's briefly talk about the chips commonly used in mobile phones - OVP chips
[tutorial 19 of trio basic from introduction to proficiency] detailed introduction of trio as a slave station connecting to the third-party bus (anybus PROFIBUS DP...)
C language # and #
[trio basic tutorial 17 from getting started to mastering] set up and connect the trio motion controller and input the activation code
matlab timeserise
More than 90% of hardware engineers will encounter problems when MOS tubes are burned out!
Use indent to format code
Soem EtherCAT source code analysis I (data type definition)
STM32 virtualization environment of QEMU
【三层架构】
Stm32--- systick timer
Several implementation schemes of anti reverse connection protection of positive and negative poles of power supply!
My-basic application 1: introduction to my-basic parser