homebridge-eufy-security / plugin

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

[Issue]: S220 Solocam? #311

Closed 77degrees closed 5 months ago

77degrees commented 1 year ago

Removed my original post as they have now released the device I was beta testing, is there an ETA for the support to be added for the S220 Solocam device?

spangborn commented 1 year ago

While not necessarily the ideal solution, you could just create a guest account and share only what you want it to access. That's the preferred method for security reasons anyway.

77degrees commented 1 year ago

@spangborn That is what I am currently doing as the solution and it works. But, if the device is paired with the HomeBase 3 vs just Local Storage it doesn't allow you to specify what device to share. It's either the whole HomeBase 3 + Cameras using it as storage, or not sharing the HomeBase 3 at all. 😑

ibmaster commented 1 year ago
image

As far as I can tell direct connect (no HomeBase 3) support for S220 is still not available in the latest beta. It doesn't recognize the shared camera as a camera...

77degrees commented 1 year ago

S220 has HB3 support for me 20230620_202017000_iOS

ibmaster commented 1 year ago

Yeah, I don’t have a HomeBase 3, so need direct network connection standalone S220 camera support as that’s the configuration I use with my eufy setup :(Ben.Sent from my iPhoneOn Jun 20, 2023, at 1:22 PM, 77degrees @.***> wrote: S220 has HB3 support for me

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

okaa-pi commented 1 year ago

Hi. I have the same result on my end. S220 solocam, no homebase. HomeBridge detects it as an alarm + switch, instead of as a camera.

I can change the alarm « mode » to away, home, etc, and it does change the mode on the Eufy app. I have no idea what the switch does tho.

Overall, would be nice if it was recognized as a camera. (Although my homebridge is on a RPi first gen so I doubt it would be able to stream the video).

ibmaster commented 1 year ago

I'm totally not familiar with this plugin's codebase, but would the update be as simple as adding the new DeviceType that matches DeviceType.SOLO_CAMERA with the new uniqueId reported from the S220 camera?

ibmaster commented 1 year ago

Or more accurately, changing the device.ts file from:

    static isSoloCameraBySn(sn: string): boolean {
        return sn.startsWith("T8130") ||
            sn.startsWith("T8131") ||
            sn.startsWith("T8122") ||
            sn.startsWith("T8123") ||
            sn.startsWith("T8124");
    }

to

    static isSoloCameraBySn(sn: string): boolean {
        return sn.startsWith("T8130") ||
            sn.startsWith("T8131") ||
            sn.startsWith("T8122") ||
            sn.startsWith("T8123") ||
            sn.startsWith("T8124") ||
            sn.startsWith("T8134");
    }
okaa-pi commented 1 year ago

Or more accurately, changing the device.ts file from: ...

Which version of the code are you looking at? I can't find this piece of code anywhere in the codebase.

ibmaster commented 1 year ago

I was using the latest label 2.1.7. Seems like this routine is not leveraged anywhere for associating the Camera device type to eufy devices. Guess we need to figure out what the com.oceanwing.battery.cam.binder.model.QueryDeviceData call returns as a device type number for the S220 camera configured in standalone (no Homebase) mode and add that to the enum structure of DeviceTypes in types.ts

toshibochan commented 1 year ago

love to see the s220 camera to

mistert871 commented 1 year ago

Love to see support for S220

ibmaster commented 1 year ago

I installed new Homebridge plugin release v2.2.2 which supposedly has native S220 support, however the device is still not recognized as a camera :(

mistert871 commented 1 year ago

I installed new Homebridge plugin release v2.2.2 which supposedly has native S220 support, however the device is still not recognized as a camera :(

I have the same issue. Did a clean install and S220 is still not detected as a camera. I see the following errors and warnings in log:

ibmaster commented 1 year ago

Yep, not only did the S220 not show up as a camera, but with plugin v2.2.2 the S220’s battery would constantly drain down until I updated the plugin configuration to ignore the ‘unknown’ eufy device completely. This wasn’t an issue on prior release plugins. So it sounds like latest plugin is trying to constantly connect to the S220 now to get status info even though it’s not fully working/supported as a standalone camera device yet… just beware of it draining your battery.

On Aug 14, 2023, at 5:52 AM, mistert871 @.***> wrote:

I installed new Homebridge plugin release v2.2.2 which supposedly has native S220 support, however the device is still not recognized as a camera :(

I have the same issue. Did a clean install and S220 is still not detected as a camera. I see the following errors and warnings in log:

[EufySecurity-2.2.2] WARN: This accessory is not compatible with HomeBridge Eufy Security plugin: S220CAM Type: 63 [8/14/2023, 2:50:41 PM] [EufySecurity-2.2.2] ERROR: S220CAM handleSecuritySystemCurrentStateGet Wrong return value [8/14/2023, 2:50:41 PM] [EufySecurity-2.2.2] ERROR: S220CAM handleSecuritySystemTargetStateGet Wrong return value — Reply to this email directly, view it on GitHub https://github.com/homebridge-eufy-security/plugin/issues/311#issuecomment-1677260153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWC2EEHNS63Z6VOYTOBIBLXVINSPANCNFSM6AAAAAAW2YBBTM. You are receiving this because you commented.

julien94800 commented 1 year ago

Hello @ibmaster , indeed I get same issue! It took me 2 days to understand it comes from the plugin and I did same as you, block it fully from plugin and now it's fine again

aberthil commented 1 year ago

Confirm this is still not working with the S220

ibmaster commented 1 year ago

Still not working with release 2.2.5 :

[08/24/2023 03:37:01] [EufySecurity-2.2.5] WARN [platform.ts:502] This accessory is not compatible with HomeBridge Eufy Security plugin: Porch Type: 63

On Aug 19, 2023, at 7:10 PM, aberthil @.***> wrote:

Confirm this is still not working with the S220

— Reply to this email directly, view it on GitHub https://github.com/homebridge-eufy-security/plugin/issues/311#issuecomment-1685155856, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWC2EF67XHHEQCK7HSEID3XWFWYVANCNFSM6AAAAAAW2YBBTM. You are receiving this because you were mentioned.

ibmaster commented 1 year ago

@lenoxys if you need a test setup with an S220 camera online or any debug logs for adding support for this camera, I'd be happy to provide.

lenoxys commented 1 year ago

hello did you check the compatibility list : https://bropat.github.io/eufy-security-client/#/supported_devices

As you can see S220 is not listed here yet. I can see on @bropat lib that a PR has been provided. It matter of weeks now until we can use it here : https://github.com/bropat/eufy-security-client/pull/353

akno2205 commented 10 months ago

S220 is now supported. Please check the plugin by Borat. New version 2.9.0

akno2205 commented 10 months ago

Sorry bropat

ccanalia82 commented 10 months ago

How do you find version 2.9?Sent from my iPhoneOn Nov 4, 2023, at 10:55, akno2205 @.***> wrote: S220 is now supported. Please check the plugin by Borat. New version 2.9.0

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

akno2205 commented 10 months ago

Please look here

https://github.com/bropat/eufy-security-client/releases/tag/2.9.1

akno2205 commented 10 months ago

Please look here

https://github.com/bropat/eufy-security-client/releases/tag/2.9.1

toshibochan commented 10 months ago

https://github.com/bropat/eufy-security-client just update homebridge-eufy-security need to be updated to work with s220?

https://github.com/homebridge-eufy-security/plugin/issues/370#290-2023-11-04 (bropat/martijnpoppen) NEW: add support for S220 (T8134; https://github.com/homebridge-eufy-security/plugin/issues/353)

lenoxys commented 10 months ago

it's been back ported in 2.3.6 hksv

ccanalia82 commented 10 months ago

I can’t seem to figure out how to install 2.9.1. I get 2.3.6 in the HomeBridge UI. I tried to install with @2.9.1 but that errors out. What am I doing wrong?On Nov 5, 2023, at 10:05, akno2205 @.***> wrote: Please look here https://github.com/bropat/eufy-security-client/releases/tag/2.9.1

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

mynameisjosh83 commented 9 months ago

Has there been any update on this? As of now I can still not get any S220 solo cam's to show up in HomeKit.

lenusch commented 9 months ago

It works with me now, after updating to latest Tag 2.3.9

But if i access camera in Garden following is showed up in logs + Homebridge fails and shuts down:

[12/04/2023, 10:34:23]  [EufySecurity]  INFO    Updating existing accessory: Vordertür
[swscaler @ 0x7fd34d329040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34d329040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34d329040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34d329040] [warning] deprecated pixel format used, make sure you did set range correctly
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 192.168.1.96
t=0 0
a=tool:libavformat 60.3.100
m=video 59759 RTP/AVP 99
b=AS:299
a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=1
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:x....

[swscaler @ 0x7fd34e790040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34e790040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34e790040] [warning] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x7fd34e790040] [warning] deprecated pixel format used, make sure you did set range correctly
[12/04/2023, 10:34:36]  [EufySecurity]  INFO    Garten Stopped video stream.
[12/4/2023, 10:34:38 AM] Error: read ECONNRESET
    at Pipe.onStreamRead (node:internal/stream_base_commons:217:20)
[12/04/2023, 10:34:38]  [EufySecurity]  INFO    Garten Video process ended
[12/4/2023, 10:34:38 AM] Got SIGTERM, shutting down Homebridge...
esprusso commented 9 months ago

I can't seem to get the S220 to appear as a camera in the Home app. I'm on the native Synology Homebridge app, using 2.3.9 of the Eufy-Security plugin. All I get is an on-off switch, despite having the device set up as a camera in settings.

Log:

[12/16/2023, 09:32:03]  [EufySecurity]  INFO    Updating existing accessory: Garage
[12/16/2023, 09:32:06]  [EufySecurity]  INFO    Garage Setting up automatic snapshot refresh every 30 minutes. This may decrease battery life dramatically. The refresh process for Garage should begin in 1 minutes.
[12/16/2023, 09:32:06]  [EufySecurity]  INFO    Garage is set to balanced snapshot handling.
[12/16/2023, 09:32:42]  [EufySecurity]  INFO    Looking for old cached accessories that seem to be outdated...
[12/16/2023, 09:32:42]  [EufySecurity]  INFO    No outdated cached accessories found.

All that displays is this. I've reinstalled multiple times to no avail.

IMG_0664

toshibochan commented 8 months ago

Same here I can’t get to show as camera to

jfegea3869 commented 8 months ago

when you have configure a pluggin, please add a camera with your homebrige code. i have a camera but problem with a snapshot Terrasse 3ED2 is a name on my S220 solocam :)

[12/24/2023, 11:52:22 AM] Please add [Terrasse 3ED2] manually in Home app. Setup Code: ...... homebridge code :) [12/24/2023, 11:52:51 AM] [homebridge-eufy-security] This plugin slows down Homebridge. The write handler for the characteristic 'Selected RTP Stream Configuration' on the accessory 'Terrasse 3ED2' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info. [12/24/2023, 11:52:55] [EufySecurity] INFO Looking for old cached accessories that seem to be outdated... [12/24/2023, 11:52:55] [EufySecurity] INFO No outdated cached accessories found. [12/24/2023, 11:53:02] [EufySecurity] ERROR Error fetching snapshot: No snapshot in memory [12/24/2023, 11:53:13] [EufySecurity] ERROR Error fetching snapshot: No snapshot in memory [12/24/2023, 11:53:24] [EufySecurity] ERROR Error fetching snapshot: No snapshot in memory

LOG when a plugin is started 12/24/2023, 12:21:05] [EufySecurity] ERROR Hardware-accelerated decoding and encoding using vaapi will be unavailable: unable to successfully validate capabilities. [12/24/2023, 12:21:05] [EufySecurity] ERROR Hardware-accelerated decoding and encoding using qsv will be unavailable: unable to successfully validate capabilities. [12/24/2023, 12:21:16] [EufySecurity] INFO Registering new accessory: Terrasse [12/24/2023, 12:21:18] [EufySecurity] ERROR Terrasse handleSecuritySystemCurrentStateGets: Wrong return value [12/24/2023, 12:21:18] [EufySecurity] ERROR Terrasse handleSecuritySystemTargetStateGet: Wrong return value [12/24/2023, 12:21:18] [EufySecurity] INFO Terrasse is set to handle snapshots with cloud images. Snapshots might be older than they appear. [12/24/2023, 12:21:18] [EufySecurity] WARN Terrasse Couldt not get cloud snapshot: TypeError: Cannot read properties of null (reading 'data') [12/24/2023, 12:21:18] [EufySecurity] INFO WARNING: Motion detection and HomeKit Secure Video provide overlapping functionality. Only HomeKit Secure Video, when event recording is enabled in the Home app, will be used to trigger motion event notifications for this camera. [12/24/2023, 12:21:18] [EufySecurity] INFO Publishing unbridged accessory externally: Terrasse [12/24/2023, 12:21:18] [EufySecurity] WARN Terrasse snapshot handler is initialized without cloud snapshot. Maybe no snapshot will displayed the first times.

image image
jfegea3869 commented 8 months ago

test with debug enable and change resolution to 1024 on apps eufy security

LOG Homebridge:

[12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:308] Terrasse Receive Apple HK stream request{"sessionID":"c23ac481-3fab-45aa-bc47-9ed3168b50c6","type":"start","video":{"codec":0,"profile":2,"level":2,"packetizationMode":0,"width":1280,"height":720,"fps":30,"pt":99,"ssrc":802380158,"max_bit_rate":299,"rtcp_interval":0.5,"mtu":1378},"audio":{"codec":"AAC-eld","channel":1,"bit_rate":0,"sample_rate":16,"packet_time":30,"pt":110,"ssrc":1716813159,"max_bit_rate":24,"rtcp_interval":5,"comfort_pt":13,"comfortNoiseEnabled":false}} [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:168] Terrasse Starting session with id: c23ac481-3fab-45aa-bc47-9ed3168b50c6 [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:177] Terrasse VIDEOCONFIG: {"debug":false} [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [utils.ts:13] Terrasse RTSP rtspStream:false [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [utils.ts:15] Terrasse Looks like not compatible with RTSP [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [LocalLivestreamManager.ts:61] Terrasse New instance requests livestream. [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [LocalLivestreamManager.ts:73] Terrasse Start new station livestream... [12/24/2023 16:58:29] [EufySecurity-2.3.9] DEBUG [LocalLivestreamManager.ts:78] Terrasse stream is already starting. waiting... [12/24/2023 16:58:33] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:58:33] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:58:33] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:58:33] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:58:34] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023, 4:58:38 PM] [homebridge-eufy-security] This plugin slows down Homebridge. The write handler for the characteristic 'Selected RTP Stream Configuration' on the accessory 'Terrasse 3ED2' didn't respond at all!. Please check that you properly call the callback! See https://homebridge.io/w/JtMGR for more info. [12/24/2023 16:58:38] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:308] Terrasse Receive Apple HK stream request{"sessionID":"c23ac481-3fab-45aa-bc47-9ed3168b50c6","type":"stop"} [12/24/2023 16:58:38] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:354] Stopping session with id: c23ac481-3fab-45aa-bc47-9ed3168b50c6 [12/24/2023 16:58:38] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:379] Terrasse No session to stop. [12/24/2023 16:58:44] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:58:44] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:58:44] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:58:44] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:58:44] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:58:47] [EufySecurity-2.3.9] DEBUG [BaseAccessory.ts:161] Terrasse GET 'AccessoryInformation / FirmwareRevision': 3.2.6.7 [12/24/2023 16:58:50] [EufySecurity-2.3.9] DEBUG [BaseAccessory.ts:161] Terrasse GET 'AccessoryInformation / FirmwareRevision': 3.2.6.7 [12/24/2023 16:58:54] [EufySecurity-2.3.9] DEBUG [BaseAccessory.ts:161] Terrasse GET 'AccessoryInformation / FirmwareRevision': 3.2.6.7 [12/24/2023 16:58:55] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:58:55] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:58:55] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:58:55] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:58:55] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:58:57] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:58:57] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:58:57] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:58:57] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:58:57] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:59:05] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:59:06] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:59:06] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:59:06] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:59:06] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:59:07] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:59:07] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:59:07] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:59:07] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:59:08] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:59:16] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:59:16] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:59:16] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:59:16] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:59:17] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438 [12/24/2023 16:59:18] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:106] Terrasse handleSnapshotRequest [12/24/2023 16:59:18] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:109] Terrasse Snapshot requested: 1280 x 720 false [12/24/2023 16:59:18] [EufySecurity-2.3.9] DEBUG [SnapshotManager.ts:195] Fetching the newest cloud snapshot. [12/24/2023 16:59:18] [EufySecurity-2.3.9] ERROR [SnapshotManager.ts:206] Error fetching snapshot: No snapshot in memory [12/24/2023 16:59:19] [EufySecurity-2.3.9] DEBUG [streamingDelegate.ts:113] Terrasse snapshot byte lenght: 83438

fahaad9 commented 6 months ago

Is there any update to this? I am planning to get S220 so want to make sure i can make it compatible with homekit.

mistert871 commented 5 months ago

I'm wondering the same thing

lenoxys commented 5 months ago

try 2.3.26+ hksv special version / see wiki for the how to

lenoxys commented 5 months ago

I'm closing it since it's been a while. If need please open a new ticket.