dkerr64 / homebridge-yolink

Apache License 2.0
12 stars 2 forks source link

Add doorbell support to the lock. #55

Closed dkerr64 closed 2 years ago

dkerr64 commented 2 years ago

Add a doorbell HomeKit accessory to the lock. Need to handle Alert MQTTs by looking at the alertType field...

{
    "event": "Lock.Alert",
    "time": 1663069662083,
    "msgid": "1663069662077",
    "data": {
        "state": "unlocked",
        "battery": 4,
        "alertType": "bell",
        "loraInfo": {
            "signal": -65,
            "gatewayId": "d88b4c1603008c02",
            "gateways": 1
        }
    },
    "deviceId": "d88b4c0100036498"
}
dkerr64 commented 2 years ago

Implemented in 1.2.9