Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Aqara Cube support #271

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/devices/gateway/cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { Controller, Actions } = require('abstract-things/controllers');
* Supports the actions:
* * `alert` - when the cube has been idle for a while and it wakes up
* * `flip90` - when the cube is flipped 90 degrees in any direction
* * `flip180` - when the cube is flipped 180 degress in any direction
* * `flip180` - when the cube is flipped 180 degrees in any direction
* * `move` - when the cube is moved on its current surface (slide)
* * `shake_air` - when the cube is shaken in the air
* * `free_fall` - when the cube is dropped in a free fall
Expand Down
4 changes: 3 additions & 1 deletion lib/devices/gateway/subdevices.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ module.exports = {
// AQ2 motion sensor
52: require('./motion2'),
// AQ2 manget sensor
53: require('./magnet2')
53: require('./magnet2'),
// Aqara Cube controller
68: require('./cube')
};