kopiro / homebridge-tapo-camera

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

Cameras do not show up #60

Closed woccam closed 1 year ago

woccam commented 1 year ago

Describe The Bug: After configuration of Tapo cameras, the cameras do not show up in the home app of apple. The following error message appears in the Homebridge Protokoll: [27.8.2022, 16:46:39] [tapo-camera] Initializing tapo-camera platform... [27.8.2022, 16:46:39] [tapo-camera] Error during setup of camera undefined The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

To Reproduce: Install plugin via gui Add 1 or 2 Cameras

Expected behavior: Cameras should show up in Apple Home app

Logs:

[27.8.2022, 16:46:39] [tapo-camera] Initializing tapo-camera platform...
[27.8.2022, 16:46:39] [tapo-camera] Error during setup of camera undefined The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 25C3",
        "username": "<private>",
        "port": <private>,
        "pin": "<private>"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "refreshToken": <private>,
            "platform": "Ring"
        },
        {
            "name": "FritzPlatform",
            "warn": true,
            "error": true,
            "extendedError": true,
            "devices": [
                {
                    "active": true,
                    "name": "<private>",
                    "host": "192.168.6.1",
                    "username": "<private>",
                    "password": "<private>",
                    "ssl": true,
                    "tr064": true,
                    "igd": true,
                    "wifiUnits": 2,
                    "master": true,
                    "connection": "dsl",
                    "options": {
                        "wifi_2ghz": "characteristic",
                        "wifi_5ghz": "characteristic",
                        "wifi_guest": "switch",
                        "wps": "switch",
                        "dect": "switch",
                        "aw": "characteristic"
                    }
                }
            ],
            "presence": [
                {
                    "active": false,
                    "ping": false
                }
            ],
            "smarthome": [
                {
                    "active": false,
                    "name": "<private>",
                    "ain": "<private>",
                    "group": false,
                    "temperature": true,
                    "battery": true,
                    "accType": "thermostat"
                },
                {
                    "name": "<private>",
                    "ain": "<private>",
                    "humidity": true,
                    "battery": true,
                    "accType": "temperature"
                },
                {
                    "name": "<private>",
                    "ain": "<private>",
                    "temperature": true,
                    "battery": true,
                    "accType": "thermostat"
                },
                {
                    "name": "<private>",
                    "ain": "<private>",
                    "humidity": true,
                    "battery": true,
                    "accType": "temperature"
                },
                {
                    "name": "<private>",
                    "ain": "<private>",
                    "temperature": true,
                    "battery": true,
                    "accType": "thermostat"
                },
                {
                    "name": "<private>",
                    "ain": "<private>",
                    "humidity": true,
                    "battery": true,
                    "accType": "temperature"
                },
                {
                    "active": true,
                    "name": "<private>",
                    "ain": "<private>",
                    "energy": true,
                    "temperature": true,
                    "accType": "switch"
                }
            ],
            "callmonitor": {
                "active": false,
                "port": 1012
            },
            "extras": {
                "alarm": {
                    "active": false
                },
                "wakeup": {
                    "active": false
                },
                "ringlock": {
                    "active": false
                },
                "phoneBook": {
                    "active": false
                }
            },
            "options": {
                "polling": {
                    "timer": 10
                }
            },
            "telegram": {
                "active": false
            },
            "platform": "FritzPlatform"
        },
        {
            "name": "Camera FFmpeg",
            "cameras": [
                {
                    "name": "Netzwerkschrank",
                    "manufacturer": "Tapo",
                    "model": "C200",
                    "firmwareRevision": "1.1.8",
                    "motion": false,
                    "unbridge": false,
                    "videoConfig": {
                        "source": "-i rtsp://<private>/stream1",
                        "maxWidth": 0,
                        "maxHeight": 0,
                        "maxFPS": 0,
                        "audio": true
                    }
                },
                {
                    "name": "Netzwerkschrank 3K",
                    "manufacturer": "Tapo",
                    "model": "C210",
                    "firmwareRevision": "1.1.8",
                    "videoConfig": {
                        "source": "-i rtsp://<private>",
                        "maxWidth": 2304,
                        "maxHeight": 1296,
                        "forceMax": true,
                        "audio": true
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        },
        {
            "cameras": [
                {
                    "name": "Netzwerschrank3m",
                    "ipAddress": "192.168.6.91",
                    "password": "<private>",
                    "streamUser": "<private>",
                    "streamPassword": "<private>",
                    "pullInterval": 60000
                },
                {
                    "name": "Garten",
                    "ipAddress": "192.168.6.76",
                    "password": "<private>",
                    "streamUser": "<private>",
                    "streamPassword": "<private>",
                    "pullInterval": 60000
                }
            ],
            "platform": "tapo-camera"
        }
    ],
    "disabledPlugins": [
        "homebridge-camera-ffmpeg"
    ]
}

erased privat data marked with Screenshots:

Environment:

woccam commented 1 year ago

Updating NPM on the next minor version and updating Node.js it worked.

woccam commented 1 year ago

Just messaging to manually install cameras in the console message could easily be overlooked.