@homeiot/aqara
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@homeiot/aqara

License Version Minzip

README | 中文文档

Aqara LAN control SDK for Node.js

Installation

pnpm add @homeiot/aqara

Usage

Discover local device

import { Discovery } from '@homeiot/aqara'

new Discovery()
  .on('error', err => console.error(err))
  .on('start', () => console.debug('Local discovery started'))
  .on('device', device => console.debug(device))
  .start()

Official documentation

aqara/aiot-gateway-local-api

Supported devices

Device Name Protocol Model Value
Gateway gateway / gateway.v3
ContactSensor magnet / sensor_magnet
MotionSensor motion
Button switch / sensor_switch
TemperatureAndHumiditySensor sensor_ht
SingleSwitch ctrl_neutral1
DuplexSwitch ctrl_neutral2
SingleSwitchLN ctrl_ln1 / ctrl_ln1.aq1
DuplexSwitchLN ctrl_ln2 / ctrl_ln2.aq1
SingleButton86 86sw1 / sensor_86sw1.aq1 / sensor_86sw1
DuplexButton86 86sw2 / sensor_86sw2.aq1 / sensor_86sw2
PlugBase plug
PlugBase86 86plug / ctrl_86plug / ctrl_86plug.aq1
MagicSquare cube / sensor_cube / sensor_cube.aqgl01
SmokeDetector smoke / sensor_smoke
NatgasDetector natgas / sensor_natgas
ElectricCurtain curtain
ContactSensor2 sensor_magnet.aq2
MotionSensor2 sensor_motion.aq2
Button2 sensor_switch.aq2 / remote.b1acn01
TemperatureAndHumiditySensor2 weather.v1 / weather
WaterDetector sensor_wleak.aq1
Lock lock.aq1
AcPartner acpartner.v3
Button3 sensor_switch.aq3
DuplexButton862 remote.b286acn01
VibrationSensor vibration
ElectricCurtainBattery curtain.hagl04

Readme

Keywords

none

Package Sidebar

Install

npm i @homeiot/aqara

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

10.4 kB

Total Files

6

Last publish

Collaborators

  • wengxiangmin