Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aqara

Get Xiaomi Smart Home device status of gateway and sub-devices. Supports magic cube, water leak sensor, door/window sensor, motion sensor and mini switch.

This package was inspired by the node package https://github.com/marvinroger/node-lumi-aqara

Example

$aqara = new Aqara();

$aqara->on('gateway', function ($gateway) {
    $gateway->on('subdevice', function ($device) {
        $device->on('update', function () use ($device) {
            echo var_export($device, true) . chr(10);
        });
    });
});

$aqara->run();

License

This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the LICENSE.md file for details.

About

Xiaomi Aqara

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages