ggottwald/miio
最新稳定版本:0.7.1
Composer 安装命令:
composer require ggottwald/miio
包简介
Control Xiaomi Mi Home devices
README 文档
README
With this package you can control Xiaomi Mi Home devices that implement the miIO protocol, such as the Mi Robot Vacuum and other Smart Home devices. These devices are commonly part of what Xiaomi calls the Mi Ecosystem which is branded as MiJia.
Example
Get device start cleaning and get status of mi robot vacuum
// mir robot vacuum $robotDeviceName = 'mirobot_vacuum'; $robotToken = '00112233445566778899aabbccddeeff'; $miRobot = Factory::miRobot($robotDeviceName, $robotToken); // start cleaning $miRobot->start(); // get status var_export($miRobot->status());
Set power of mi air purifier
// air purifier $purifierDeviceName = 'air_purifier'; $purifierToken = '00112233445566778899aabbccddeeff'; $purifier = Factory::airPurifier($purifierDeviceName, $purifierToken); $purifier->setPower(true);
More information about the protocol and commands can be found at https://github.com/marcelrv/XiaomiRobotVacuumProtocol
License
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the LICENSE.md file for details.
统计信息
- 总下载量: 249
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GNU
- 更新时间: 2018-04-22