homebridge-aqara-hub-lux

1.2.0 • Public • Published

homebridge-aqara-hub-lux

Plugin can access Aqara Gateway in order to add it's lux sensor to Homekit via homebridge. Works with gateway which identify itself as lumi.gateway.aqhm01 (China version) and lumi.gateway.aqhm02 (EU version).

Code uses "lite" version of miio by @aholstenson. I had to modify some parts of that library in order to access gateway, so I've removed unused parts.

Config example:

"accessories": [
  {
    "name": "Aqara Hub",
    "accessory": "AqaraHubLux",
    "ip": "192.168.0.XXX",
    "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "interval": 60,
    "unitFactor": 0.1
  }
]

In order to obtain the token, please follow @Maxmudjon instruction described here (except method 2).

Thanks esgie for unit factor idea!

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    32
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    32
  • 1.1.1
    3
  • 1.1.0
    3
  • 1.0.1
    3
  • 1.0.0
    2

Package Sidebar

Install

npm i homebridge-aqara-hub-lux

Weekly Downloads

11

Version

1.2.0

License

MIT

Unpacked Size

54.5 kB

Total Files

20

Last publish

Collaborators

  • niou-ns