PythonEnocean 是一个用Python语言实用的读取和控制EnOcean设备的库。其中EnOcean是一种基于能量收集的超低功耗短距离无线通信技术。
安装
如果尚未安装,先运行安装pip
sudo apt-get install python-pip安装pip后,运行安装模块
sudo pip install enocean(或
sudo pip install git+https://github.com/kipe/enocean.git如果你想要bleedingedge)
接着只需要运行enocean_example.py,按下学习按钮,在磁性开关、温度开关或者摇臂开关上切换。
评论