Skip to content

Commit 4eb8b1b

Browse files
committed
initial commit
0 parents  commit 4eb8b1b

File tree

12 files changed

+2347
-0
lines changed

12 files changed

+2347
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea/
2+
*.iml
3+
.DS_STORE
4+
5+
/vendor/

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 624 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Aqara
2+
Get Xiaomi Smart Home device status of gateway and sub-devices. Actually only magic cube is supported.
3+
4+
This package was inspired by the node package https://github.com/marvinroger/node-lumi-aqara
5+
6+
# Example
7+
8+
```php
9+
$aqara = new Aqara();
10+
11+
$aqara->on('gateway', function ($gateway) {
12+
$gateway->on('subdevice', function ($device) {
13+
$device->on('update', function () use ($device) {
14+
echo var_export($device, true) . chr(10);
15+
});
16+
});
17+
});
18+
19+
$aqara->run();
20+
```
21+
22+
## License
23+
24+
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the [LICENSE.md](/LICENSE.md) file for details.

composer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "ggottwald/aqara",
3+
"description": "Receive Xiaomi Gateway events",
4+
"type": "library",
5+
"require": {
6+
"php": ">=7.0",
7+
"clue/multicast-react": "^1.0"
8+
},
9+
"license": "GNU AFFERO GENERAL PUBLIC LICENSE",
10+
"authors": [
11+
{
12+
"name": "Götz Gottwald",
13+
"email": "goetz.gottwald@gmx.net"
14+
}
15+
],
16+
"autoload": {
17+
"psr-4": {
18+
"Aqara\\": "src/"
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)