homebridge-eufy-security / plugin

Homebridge plugin to control certain Eufy Security devices
Apache License 2.0
166 stars 24 forks source link

[Bug]: Homekit cannot connect to EUFY camera if iPad goes through VPN (NordVPN) #494

Open cytan299 opened 9 months ago

cytan299 commented 9 months ago

What happened?

This may be a feature or something that's not yet implemented in this plugin. When I have my VPN (NordVPN) running on my iPad, HomeKit cannot connect to the EUFY camera. When I disable my VPN, the connection works.

As a note, my Ring door bell which runs on the same HomeBridge that the EUFY plugin runs, works in Homekit whether I use VPN or not.

Homebridge version 1.7.0 Node.js 18.18.2 EufySecurity-2.2.0-beta.20

Device Type

Indoor Camera (Supported)

Plugin Version

beta (Best Effort)

HomeBridge Version

other (UnSupported)

NodeJS Version

v18 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

VPN off:
*********
[12/29/2023, 5:33:23 PM] [EufySecurity-2.2.0-beta.20] ERROR: Living Room No snapshot in memory
[Living Room] Snapshot request handler provided empty image buffer!
[12/29/2023, 5:34:46 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room station livestream (P2P session) for Living Room has started.
[12/29/2023, 5:34:46 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] Starting video stream: 1920x1080, 30 fps, 802 kbps
[12/29/2023, 5:34:46 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[12/29/2023, 5:34:46 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[12/29/2023, 5:35:06 PM] [EufySecurity-2.2.0-beta.20] ERROR: [Living Room] [Talkback Process] ffmpeg log message:
[error] tcp://127.0.0.1:12557: Connection timed out

[12/29/2023, 5:35:06 PM] [EufySecurity-2.2.0-beta.20] ERROR: Living Room Talkback process ended with error: FFmpeg exited with code: 0 and signal: null (Error)
[12/29/2023, 5:35:12 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room Stopped video stream.
[12/29/2023, 5:35:12 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room station livestream for Living Room has stopped.
[12/29/2023, 5:35:14 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)

******
VPN ON

[12/29/2023, 5:36:21 PM] [EufySecurity-2.2.0-beta.20] ERROR: Living Room No snapshot in memory
[Living Room] Snapshot request handler provided empty image buffer!
[12/29/2023, 5:36:29 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room station livestream (P2P session) for Living Room has started.
[12/29/2023, 5:36:29 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] Starting video stream: 1920x1080, 30 fps, 802 kbps
[12/29/2023, 5:36:29 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] Starting audio stream: 16 kHz, 24 kbps, codec: libfdk_aac
[12/29/2023, 5:36:29 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Talkback Process] Starting audio stream: 16 kHz, 20 kbps, codec: libfdk_aac
[12/29/2023, 5:36:49 PM] [EufySecurity-2.2.0-beta.20] ERROR: [Living Room] [Talkback Process] ffmpeg log message:
[error] tcp://127.0.0.1:14666: Connection timed out

[12/29/2023, 5:36:49 PM] [EufySecurity-2.2.0-beta.20] ERROR: Living Room Talkback process ended with error: FFmpeg exited with code: 0 and signal: null (Error)
[12/29/2023, 5:36:59 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room Stopped video stream.
[12/29/2023, 5:36:59 PM] [EufySecurity-2.2.0-beta.20] INFO:  Living Room station livestream for Living Room has stopped.
[12/29/2023, 5:37:01 PM] [EufySecurity-2.2.0-beta.20] INFO:  [Living Room] [Video Process] FFmpeg exited with code: null and signal: SIGKILL (Forced)

*****
and HomeKit says "No response. This camera is not responding"

config

{
    "bridge": {
        "name": "Homebridge ***",
        "username": "********",
        "port": *****,
        "pin": "******",
        "advertiser": "****"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": ****,
            "platform": "config"
        },
        {
            "refreshToken": "*******",
            "platform": "Ring"
        },
        {
            "username": "******",
            "password": "******",
            "country": "US",
            "deviceName": "",
            "stations": [
                {
                    "hkHome": 1,
                    "hkAway": 0,
                    "serialNumber": "*******",
                    "hkNight": 3,
                    "hkOff": 63
                }
            ],
            "platform": "EufySecurity",
            "ignoreStations": [],
            "ignoreDevices": [],
            "cleanCache": true,
            "cameras": [
                {
                    "serialNumber": "******",
                    "useCachedLocalLivestream": true,
                    "videoConfig": {
                        "audio": true,
                        "audioSampleRate": 0
                    },
                    "talkback": true,
                    "enableCamera": "true",
                    "hsv": true,
                    "hsvRecordingDuration": 90,
                    "hsvConfig": {},
                    "unbridge": false
                }
            ]
        }
    ],
    "disabledPlugins": []
}
github-actions[bot] commented 9 months ago

Did you check this Common Issues pages ?

cytan299 commented 9 months ago

Very strange, eufy camera now talks to HomeKit whether vpn is on or off ... is there some time-out in homebridge that needs to be flushed?