kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
119 stars 10 forks source link

C110 Not Working - "data" undefined #112

Closed Valvify closed 2 months ago

Valvify commented 6 months ago

Describe Your Problem: I get an undefined "data" argument whenever I try configuring my camera, I have confirmed the RTSP stream works through VLC (rtsp://\<username>:\<password>@192.168.0.37:554/stream1).

Logs:

[31/12/2023, 23:25:37] [tapo-camera] Initializing tapo-camera platform...
[31/12/2023, 23:25:37] [tapo-camera] Error during setup of camera Living Room Camera The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

Plugin Config:

{
    "bridge": {
        "name": "Homebridge",
        "username": "<redacted>",
        "port": 51424,
        "pin": "<redacted>",
        "advertiser": "ciao"
    },
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": true,
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "platform": "TplinkSmarthome"
        },
        {
            "cameras": [
                {
                    "name": "Living Room Camera",
                    "ipAddress": "192.168.0.37",
                    "streamUser": "<redacted>",
                    "streamPassword": "<redacted>",
                    "debug": true
                }
            ],
            "platform": "tapo-camera"
        }
    ],
    "disabledPlugins": []
}

Environment:

marcos-arsoares commented 5 months ago

I get the same problem. Still no fix

EddieDSuza commented 2 months ago

You will need to add a Camera name to address this issue. It's the first field to populate.

Valvify commented 2 months ago

You will need to add a Camera name to address this issue. It's the first field to populate.

I've set it to "Living Room Camera", mirroring the Tapo app, but I get the same issue.

brakulla commented 2 months ago

I had this issue due to empty cloud password field. Filling it fixed the issue for me.

Valvify commented 2 months ago

I had this issue due to empty cloud password field. Filling it fixed the issue for me.

That seems to have worked for me. I'm unable to turn on/off the alarm or motion sensing, but this'll do. Thanks for your help!