Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1021 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 1021 Bytes

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!