Nuki invalid json

Begonnen von cdn, 21 Mai 2023, 13:53:37

Vorheriges Thema - Nächstes Thema

cdn

Hallo zusammen,
Ich bekomme seit ca. einem Monat mein Nuki via Bridge nicht mehr angesprochen.
Ich habe die Bridge und auch das Schloss selbst bereits neu hinzugefügt. Hilft leider nicht. Die API der Bridge läuft ohne Probleme.

In den Logs sehe ich folgendes:
2023.05.21 13:41:51 3: NUKIBridge (NBridge1) - defined with host 192.168.4.19 on port 8080, Token Xxx
2023.05.21 13:41:51 2: NUKIBridge (NBridge1) - Registering NUKIBridge for webhook URI /NUKIBridge-192.168.4.19 ...
2023.05.21 13:43:43 3: NUKIDevice (B72_3) - I/O device is NBridge1
2023.05.21 13:43:43 3: NUKIDevice (B72_3) - defined with NukiId: 509683045
2023.05.21 13:43:43 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at lib/FHEM/Devices/Nuki/Device.pm line 251.
2023.05.21 13:43:43 3: NUKIDevice (B72_3) - change model
2023.05.21 13:43:43 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at lib/FHEM/Devices/Nuki/Device.pm line 409.
2023.05.21 13:43:43 2: NUKIDevice (B72_3) - GetUpdate Call IOWrite
2023.05.21 13:43:43 2: NUKIDevice (B72_3) - GetUpdate Call IOWrite
2023.05.21 13:43:43 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 400 Bad Request
2023.05.21 13:43:43 1: PERL WARNING: Use of uninitialized value in numeric eq (==) at lib/FHEM/Devices/Nuki/Device.pm line 377.
2023.05.21 13:43:43 1: PERL WARNING: Use of uninitialized value in numeric eq (==) at lib/FHEM/Devices/Nuki/Device.pm line 380.
2023.05.21 13:43:55 1: RMDIR: ./restoreDir/save/2022-03-15
2023.05.21 13:43:57 1: PERL WARNING: Use of uninitialized value in hash element at lib/FHEM/Devices/Nuki/Device.pm line 570.
2023.05.21 13:43:57 1: PERL WARNING: Use of uninitialized value within @_ in list assignment at fhem.pl line 5031.
2023.05.21 13:43:57 1: PERL WARNING: Use of uninitialized value in hash element at lib/FHEM/Devices/Nuki/Device.pm line 576.
2023.05.21 13:44:15 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at lib/FHEM/Devices/Nuki/Device.pm line 394.
2023.05.21 13:44:15 3: NUKIBridge (NBridge1) - invalid json detected: HTTP 400 Bad Request

Jemand eine Idee?

CoolTux

Du kannst die Bridge mal bitte auf verbose 5 stellen dann sieht man was so an kommt.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

cdn

Siehe anbei:

2023.05.21 23:07:17 4: NUKIBridge (NBridge1) - GetCheckBridgeAlive
2023.05.21 23:07:17 4: NUKIBridge (NBridge1) - created uri: http://192.168.4.19:8080/list?token=TOKEN
2023.05.21 23:07:17 4: NUKIBridge (NBridge1) - Send HTTP POST with URL http://192.168.4.19:8080/list?token=TOKEN
2023.05.21 23:07:17 4: NUKIBridge (NBridge1) - run Write
2023.05.21 23:07:17 4: NUKIBridge (NBridge1) - Call InternalTimer for GetCheckBridgeAlive
2023.05.21 23:07:18 4: NUKIBridge (NBridge1) - Response JSON: [{"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}}]
2023.05.21 23:07:18 4: NUKIBridge (NBridge1) - Response ERROR:
2023.05.21 23:07:18 4: NUKIBridge (NBridge1) - Response CODE: 200
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - Bridge ist online
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - 2 == 2 and 2 > 0
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - return msg: {"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}} and tail: ]
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - Decoding JSON message. Length: 330 Content: {"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}}
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - Vor Sub: Laenge JSON: 330 Content: {"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}} Tail: ]
2023.05.21 23:07:18 5: NBridge1: dispatch {"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}}
2023.05.21 23:07:18 5: NUKIDevice (NBridge1) - Parse with result: {"deviceType": 0, "nukiId": 509683045, "name": "B72_3", "firmwareVersion": "2.14.5", "lastKnownState": {"mode": 2, "state": 1, "stateName": "locked", "batteryCritical": false, "batteryCharging": false, "batteryChargeState": 84, "doorsensorState": 2, "doorsensorStateName": "door closed", "timestamp": "2023-05-21T20:25:53+00:00"}}
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - Garbage character before message: ]
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - return msg:  and tail:
2023.05.21 23:07:18 5: NUKIBridge (NBridge1) - Nach Sub: Laenge JSON: 0 Content:  Tail:

cdn

@CoolTux kannst du hieran irgendetwas sehen?