8000 GitHub - ggottwald/Aqara: Xiaomi Aqara · GitHub
[go: up one dir, main page]

Skip to content
ggottwaldPublic

About

Xiaomi Aqara

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

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

0