kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
129 stars 11 forks source link

Can't add C225 to Homebridge #147

Closed slavisaurus closed 2 weeks ago

slavisaurus commented 1 month ago

Describe Your Problem: I'm unable to add my Tapo C225 to the plugin. I previously haven't connected it.

When the device and service is on, I consistently get the "Invalid device" error.

I've checked that:

I'm mostly just trying to get the Privacy Switch enabled so I can add an automation.

Logs:

[7/23/2024, 4:59:59 PM] [tapo-camera] Error at 'getStatusAndUpdateCharacteristics'. Error: Invalid device confirm
    at TAPOCamera.refreshStok (/volume1/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:205:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at TAPOCamera.getAuthenticatedAPIURL (/volume1/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:335:19)
    at /volume1/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:415:23
    at TAPOCamera.getStatus (/volume1/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:555:18)
    at CameraAccessory.getStatusAndUpdateCharacteristics (/volume1/homebridge/node_modules/homebridge-tapo-camera/src/cameraAccessory.ts:234:27)
    at Timeout._onTimeout (/volume1/homebridge/node_modules/homebridge-tapo-camera/src/cameraAccessory.ts:212:7)

Plugin Config:

 "cameras": [
                {
                    "name": "Tapo Homekit",
                    "ipAddress": "192.168.7.250",
                    "password": "passXXXXXXXX",
                    "streamUser": "userXXXXXXXX",
                    "streamPassword": "passXXXXXXX",
                    "debug": true,
                    "disableStreaming": true,
                    "disableAlarmAccessory": true,
                    "disableMotionAccessory": true,
                    "privacyAccessoryName": "Tapo Privacy",
                    "alarmAccessoryName": "Tapo Alarm"

Environment:

slavisaurus commented 1 month ago

Update:

Switched over to a Raspberry Pi with NodeJS v20.12.2 and I’m still experiencing the same issue.

Suzuhana commented 1 month ago

I am experiencing the same:

[8/7/2024, 1:05:12 AM] [Tapo Garage Cam] Error when retrieving data Error: Invalid device confirm
    at TAPOCamera.refreshStok (/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:213:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at TAPOCamera.getAuthenticatedAPIURL (/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:349:19)
    at /homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:429:23
    at TAPOCamera.getStatus (/homebridge/node_modules/homebridge-tapo-camera/src/tapoCamera.ts:612:26)
    at CameraAccessory.getStatusAndNotify (/homebridge/node_modules/homebridge-tapo-camera/src/cameraAccessory.ts:205:28)
Suzuhana commented 1 month ago

I just figured out how to add it. Try to scroll to the top of error logs, there should be something like:

[8/7/2024, 1:15:30 AM] Please add [Tapo Garage Cam 86C9] manually in Home app. Setup Code: xxx-xx-xxx

Add the camera manually in homekit. However, accessories of the camera are not working for me

kopiro commented 2 weeks ago

Same issue as https://github.com/kopiro/homebridge-tapo-camera/issues/132