Closed netzpixel closed 4 years ago
See #64
@benzman81 I still don't get any notifications. I can see the doorbell in homebridge, but it's not visible/available in HomeKit. Is there anything I have to configure?
I saw all the comments. I don't use eve so the only option for me is HomeKit. So if I understand this right, there is no way for me to get notifications, right?
A notification should occur on your phone. Just the automation is only possible through eve App. Btw. you can download it for free an just set the automation there. No need to use the app afterwards.
I don't get any notifications. Is there any setting?
Should work out of the box. Do you see something in the log like this:
[2020-12-31 19:29:23] [NukiBridge] [INFO Nuki WebHook Server] Updated lock state from webhook to isLocked = 'false' (Nuki state '3' ) for lock '3' (instance id '1') with batteryCritical = 'false', battery charging = 'false', battery charge state = '100', contactClosed = 'true' and mode = '3', ringactionState = 'true'.
[2020-12-31 19:29:23] [NukiBridge] HomeKit state change by webhook complete. New isRingToOpenLocked = 'false' and batteryCritical = 'false', battery charging = 'false', battery charge state = '100' and mode = '3', ringactionState = 'true'.
ringactionState must be true
I just tested. Nothing in the Logs.
Could you post the log when starting homebridge? (dont forget to anonymize any security info)
I removed all the other non nuki things from the log.
[1/2/2021, 10:17:12 PM] [HB Supervisor] Restarting Homebridge... [1/2/2021, 10:17:12 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules [1/2/2021, 10:17:12 PM] [HB Supervisor] Started Homebridge v1.2.5 with PID: 1820 [1/2/2021, 10:17:12 PM] Loaded config.json with 0 accessories and 4 platforms. [1/2/2021, 10:17:12 PM] --- [1/2/2021, 10:17:13 PM] Loaded plugin: homebridge-nukiio@0.15.1 [1/2/2021, 10:17:13 PM] Registering platform 'homebridge-nukiio.NukiBridge' [1/2/2021, 10:17:13 PM] Registering accessory 'homebridge-nukiio.NukiLock' [1/2/2021, 10:17:13 PM] Registering accessory 'homebridge-nukiio.NukiOpener' [1/2/2021, 10:17:13 PM] Registering accessory 'homebridge-nukiio.NukiBridgeMaintainanceSwitch' [1/2/2021, 10:17:13 PM] --- [1/2/2021, 10:17:13 PM] Loading 4 platforms... [1/2/2021, 10:17:13 PM] [Config] Initializing config platform... [1/2/2021, 10:17:13 PM] [Config] Running in Service Mode [1/2/2021, 10:17:13 PM] [NukiBridge] Initializing NukiBridge platform... [1/2/2021, 10:17:13 PM] [NukiBridge] Initializing Nuki bridge 'http://192.168.178.121:8080'... [1/2/2021, 10:17:13 PM] [NukiBridge] Initialized Nuki bridge. [1/2/2021, 10:17:13 PM] Initializing platform accessory 'Wohnungstür'... [1/2/2021, 10:17:13 PM] Initializing platform accessory 'Haustür'... Setup Payload: Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
[1/2/2021, 10:17:14 PM] Homebridge v1.2.5 is running on port 51408.
Hey, I restarted a couple of times because of something else and had some more logs details this time. This is all after "1/2/2021, 10:17:14 PM] Homebridge v1.2.5 is running on port 51408."
[1/2/2021, 11:57:37 PM] [NukiBridge] Getting current state for 'SwitchUnlatchAllowed'... [1/2/2021, 11:57:38 PM] [NukiBridge] Send request to Nuki bridge 'http://192.168.178.121:8080' on '/lockState' with '{"token":"","nukiId":"","deviceType":0}'. [1/2/2021, 11:57:38 PM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.121:8080' finished with status code '200' and body '{"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 48, "doorsensorState": 2, "doorsensorStateName": "door closed", "success": true}'. null [1/2/2021, 11:57:38 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:38 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:38 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:38 PM] [NukiBridge] Send request to Nuki bridge 'http://192.168.178.121:8080' on '/lockState' with '{"token":"","nukiId":"","deviceType":2}'. [1/2/2021, 11:57:39 PM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.121:8080' finished with status code '200' and body '{"mode": 2, "state": 1, "stateName": "online", "batteryCritical": false, "ringactionTimestamp": "2021-01-02T12:09:48+00:00", "ringactionState": false, "success": true}'. null [1/2/2021, 11:57:39 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '100', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:39 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '100', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:40 PM] [NukiBridge] Getting current state for 'SwitchUnlatchAllowed'... [1/2/2021, 11:57:41 PM] [NukiBridge] Send request to Nuki bridge 'http://192.168.178.121:8080' on '/lockState' with '{"token":"","nukiId":"","deviceType":0}'. [1/2/2021, 11:57:42 PM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.121:8080' finished with status code '200' and body '{"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 48, "doorsensorState": 2, "doorsensorStateName": "door closed", "success": true}'. null [1/2/2021, 11:57:42 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:42 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:42 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '48', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:42 PM] [NukiBridge] Send request to Nuki bridge 'http://192.168.178.121:8080' on '/lockState' with '{"token":"","nukiId":"","deviceType":2}'. [1/2/2021, 11:57:42 PM] [NukiBridge] Request to Nuki bridge 'http://192.168.178.121:8080' finished with status code '200' and body '{"mode": 2, "state": 1, "stateName": "online", "batteryCritical": false, "ringactionTimestamp": "2021-01-02T12:09:48+00:00", "ringactionState": false, "success": true}'. null [1/2/2021, 11:57:42 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '100', contactClosed = 'true' and mode = '2' [1/2/2021, 11:57:42 PM] [NukiBridge] Lock state is isLocked = 'true' (Nuki state '1' ) with battery critical = 'false', battery charging = 'false', battery charge state = '100', contactClosed = 'true' and mode = '2'
It does not look like you have webhooks activated. See here https://github.com/benzman81/homebridge-nukiio#use-nuki-webhook
Could you double check your config?
I double checked and tested a few days but still the same result. Any more ideas?
@netzpixel could you post your config here?
Better late than never I guess. :)
{
"bridge_url": "http://192.168.178.121:8080",
"webhook_server_ip_or_name": "http://192.168.178.123",
"webhook_port": 51827,
"api_token": "xyz",
"lock_state_mode": 0,
"request_timeout_lockstate": 15000,
"request_timeout_lockaction": 45000,
"request_timeout_other": 15000,
"lockaction_maxtries": 3,
"lockaction_retrydelay": 3000,
"add_maintainance_buttons": false,
"locks": [
{
"id": "zyx",
"name": "Wohnungstür",
"usesDoorLatch": true,
"usesDoorContactSensor": true
}
],
"openers": [
{
"id": "xzy",
"name": "Haustür",
"disableContinuousMode": true
}
],
"platform": "NukiBridge"
}
With this config, you should see some call to /callback/list and /callback/add at the start of homebridge. Could you check this?
I guess this depends on the Nuki API but maybe it's possible already. My wish would be to have a sensor for when someone rings on the door. That would make it possible to start some kind of automation (play music, send a message to a phone ...). Is that somehow possible?