hobbyquaker / homekit2mqtt

HomeKit to MQTT bridge 🏡📱
MIT License
349 stars 70 forks source link

Lock mechanism problem #107

Open raufis27 opened 6 years ago

raufis27 commented 6 years ago

Web ui doesn't have option to configure lockUnsecured payload. Editing config file manually and adding lockUnsecured also doesn't work as it should work. If lock is in unlock state and I publish 0 to /myhome/status/lock HK notifies me that lock was locked but lock icon spins with unlocking status.

2018-07-20 11:44:39.139 <debug> < mqtt /myhome/status/lock 0 0
2018-07-20 11:44:39.140 <debug> > hap update FrontDoorLock LockCurrentState.SECURED
2018-07-20 11:44:44.031 <debug> < mqtt /myhome/status/lock 1 1
2018-07-20 11:44:44.031 <debug> > hap update FrontDoorLock LockCurrentState.UNSECURED
"FrontDoorLock": {
    "id": "FrontDoorLock",
    "name": "FrontDoorLock",
    "manufacturer": "home",
    "model": "BE469",
    "services": [
      {
        "name": "FrontDoorLock",
        "service": "LockMechanism",
        "topic": {
          "setLock": "/myhome/command/lock",
          "statusLock": "/myhome/status/lock"
        },
        "payload": {
          "lockSecured": 0,
          "lockUnsecured": 1

        },
        "config": {},
        "props": {}
      }
kalu1 commented 6 years ago

Hey there, I have the same problem. For the payload "lockUnsecured" there is no input box. If I add it manually the behavior is the same. The Unlocking process is OK and the locking process works, but the homekit icon in iPhone is still spinning. However a locking command is sent to broker. It seems like the service is waiting for approve, that it was safety locked.

I 'm a beginner, but could be possible there are more payload needed? According to Homekit accessory protocol specification, there is in part 8.16 Lock Current State, do you think is it necessary? Thanks

raufis27 commented 6 years ago

I see payload settings were added, but HK update problem still exists with latest version.

raufis27 commented 6 years ago

Sorry if I am annoying, but any ideas when lock service will be fixed ? Thank you.