benzman81 / homebridge-nukiio

Nuki.io support for Homebridge: https://github.com/nfarina/homebridge
GNU General Public License v3.0
42 stars 5 forks source link

Lock not appearing when also connected via HomeKit? #92

Closed mensa84 closed 8 months ago

mensa84 commented 2 years ago

Hello,

is it normal, that the Nuki lock configured in Homebridge does not appear in HomeKit, if the same Nuki lock is already directly connected to HomeKit? Or should I really see 2 locks in that case, although they would be the same physical device?

mensa84 commented 2 years ago

I removed the HomeKit Nuki Lock from HomeKit now, but the HomeBridge Nuki is still not appearing in the Apple Home app. Can you please help me how to fix that?

My config:

        {
            "platform": "NukiBridge",
            "bridge_url": "http://192.168.1.104:8080",
            "api_token": "123456",
            "locks": [
                {
                    "id": "111222333",
                    "name": "Front Door",
                    "usesDoorLatch": true,
                    "usesDoorContactSensor": true,
                    "preventLockingIfAlreadyLocked": true,
                    "priority": 1,
                    "deviceType": 0
                }
            ]
        }

(API Token and ID modified).

That is the log:

[6/11/2022, 11:35:32 AM] [NukiBridge] Send request to Nuki bridge 'http://192.168.1.104:8080' on '/lockState' with '{"nukiId":"111222333","deviceType":0,"token":"123456"}'.
[6/11/2022, 11:35:32 AM] [NukiBridge] Request to Nuki bridge 'http://192.168.1.104:8080' finished with status code '200' and body '{"mode": 2, "state": 3, "stateName": "unlocked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 4, "doorsensorStateName": "door state unknown", "success": true}'. null
[6/11/2022, 11:35:32 AM] [NukiBridge] Lock state is isLocked = 'false' (Nuki state '3' ) with battery critical = 'false', battery charging = 'false', battery charge state = '84', contactClosed = 'true' and mode = '2'
[6/11/2022, 11:35:32 AM] [NukiBridge] Lock state is isLocked = 'false' (Nuki state '3' ) with battery critical = 'false', battery charging = 'false', battery charge state = '84', contactClosed = 'true' and mode = '2'
[6/11/2022, 11:35:32 AM] [NukiBridge] Lock state is isLocked = 'false' (Nuki state '3' ) with battery critical = 'false', battery charging = 'false', battery charge state = '84', contactClosed = 'true' and mode = '2'
benzman81 commented 2 years ago

Sorry for the late answer. No clue why this happens. Never occured here.

Maybe the lock was added to a wrong room Or even wrong house?

benzman81 commented 8 months ago

closed due to no response.