From 698dba2051e50b7d74d881a1aceb928124ab6744 Mon Sep 17 00:00:00 2001 From: Oleksandr Borys Date: Mon, 23 Dec 2019 21:01:48 +0200 Subject: [PATCH 1/2] Fixed typo --- lib/devices/gateway/cube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devices/gateway/cube.js b/lib/devices/gateway/cube.js index d24444b..4769780 100644 --- a/lib/devices/gateway/cube.js +++ b/lib/devices/gateway/cube.js @@ -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 From f7a6e4b022b72fa715b1ac8e2cbf54a9cab444bf Mon Sep 17 00:00:00 2001 From: Oleksandr Borys Date: Mon, 23 Dec 2019 21:07:04 +0200 Subject: [PATCH 2/2] Added Aqara Cube support --- lib/devices/gateway/subdevices.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/devices/gateway/subdevices.js b/lib/devices/gateway/subdevices.js index d7b3e50..424fe72 100644 --- a/lib/devices/gateway/subdevices.js +++ b/lib/devices/gateway/subdevices.js @@ -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') };