A simplest and unofficial client command for leafee mag
It tested on Raspberry Pi Zero W with Raspbian Stretch.
$ sudo apt-get install python-pip libglib2.0-dev bluez-tools
$ sudo pip install bluepy
$ sudo hciconfig hci0 down
$ sudo btmgmt le on
$ sudo hciconfig hci0 up
$ wget https://gist.githubusercontent.com/mugifly/ccbd49bccaa57b8d98626f67437b618d/raw/mag.py
$ chmod u+x mag.py
$ sudo hcitool lescan
$ ./mag.py ff:ff:ff:ff:ff:ff
-
- This project allows you to build an unofficial hub (and WebAPI server) for leafee mag on your Raspberry Pi.
-
- This project allows you to easily make the home automation with using window / door status.
Now, we can check the status of doors and windows of the home via HTTP (WebAPI) ๐
It doesn't require an official hub device.
Instead you need to build your own hub on Raspberry Pi or compatible devices.
https://github.com/mugifly/lmag-server