fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
859 stars 73 forks source link

Troubles with Eufy 2k Wired #841

Open TonyHeadband opened 1 year ago

TonyHeadband commented 1 year ago

Hello there, I'm trying to stream the Eufy 2k Wired but I only got errors, I have another eufy camera the S220 and it works fine. I tried multiple setup without success.

type: custom:webrtc-camera
entity: camera.doorbell

image

square: false
columns: 1
type: grid
cards:
  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state: StreamStatus.IDLE
    card:
      show_state: true
      show_name: true
      type: picture-entity
      entity: camera.doorbell
      camera_image: camera.doorbell
      tap_action:
        action: call-service
        service: camera.turn_on
        data: {}
        target:
          entity_id: camera.doorbell
  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state: StreamStatus.PREPARING
    card:
      type: vertical-stack
      cards:
        - show_name: true
          show_icon: false
          type: button
          tap_action:
            action: call-service
            service: camera.turn_off
            data: {}
            target:
              entity_id: camera.doorbell
          entity: camera.doorbell
          name: Stop
        - type: custom:webrtc-camera
          entity: camera.doorbell
          url: sensor.doorbell_stream_url

image

type: vertical-stack
cards:
  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state: StreamStatus.IDLE
    card:
      show_state: true
      show_name: true
      camera_view: auto
      type: picture-entity
      entity: camera.doorbell
      camera_image: sensor.doorbell_last_camera_picture_url
      tap_action:
        action: call-service
        service: eufy_security.start_p2p_livestream
        target:
          entity_id: camera.doorbell
        data: {}
      image: camera.doorbell
  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state_not: StreamStatus.IDLE
    card:
      type: vertical-stack
      cards:
        - type: custom:webrtc-camera
          url: rtsp://127.0.0.1:8554/T8200*******
        - show_name: true
          show_icon: false
          type: button
          entity: button.doorbell_stop_p2p_stream
          name: Stop
          show_state: false
          tap_action:
            action: toggle
          hold_action:
            action: toggle
  - type: entities
    entities:
      - entity: sensor.doorbell_stream_status
        name: Status
      - entity: sensor.doorbell_wifi_signal_level
        secondary_info: none
        name: WiFi
    state_color: true

image

Why is that? Is there anything that I'm missing? Thanks!

kvanbiesen commented 1 year ago

This one is working perfectly fine for my doorbell (wireless one so P2P only)

  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state: StreamStatus.IDLE
    card:
      show_state: true
      show_name: true
      camera_view: auto
      type: picture-entity
      entity: camera.doorbell
      camera_image: camera.doorbell
      tap_action:
        action: call-service
        service: button.press
        data: {}
        target:
          entity_id: button.doorbell_start_p2p_stream
  - type: conditional
    conditions:
      - entity: sensor.doorbell_stream_status
        state: StreamStatus.STREAMING
    card:
      type: vertical-stack
      cards:
        - show_name: true
          show_icon: false
          type: button
          tap_action:
            action: call-service
            service: button.press
            data: {}
            target:
              entity_id: button.doorbell_stop_p2p_stream
          entity: camera.doorbell
          name: Stop
        - type: custom:webrtc-camera
          entity: camera.doorbell
DarkAllMan commented 1 year ago

I tried above, and for me it is not working: image

I have exactly the same issue. Other camera's work just fine.

Prash1407 commented 12 months ago

I am having the same issue and I also tried the template provided by @kvanbiesen with no luck, I got a wireless eufy 2k aswell.

fuatakgun commented 12 months ago

share your device with me following read-me, I can take a look

Prash1407 commented 12 months ago

@fuatakgun you already have it and we exchanged messages earlier today after this.

fuatakgun commented 11 months ago

@TonyHeadband are you interested to share your device? If not i will resolve this

TonyHeadband commented 11 months ago

I'm not entirely sure how I can share. Would you mind inform me?

kvanbiesen commented 11 months ago

I Think he has the same issue as me sometimes, the streamstatus stays stuck in PREPARING and then never switches to STREAMING so the video never play's. Video buffer gets running tho...

fuatakgun commented 11 months ago

I'm not entirely sure how I can share. Would you mind inform me?

Check eufy app and readme

fuatakgun commented 11 months ago

@kvanbiesen , is stopping live stream and starting again helping you to recover?

kvanbiesen commented 11 months ago

Nope, the camera is non responsice to any commands when on 1.6.3.

The floodlight still takes unencrypted commands where the updated home base takesencypted ones.

Since my homebase isn't updated yet, 1.6.2 works fine for me. Bropat is currently using my camera in order to fix it's so it works both Incase updated homebase

He doesn't have a floodlight so it's hard to test it for him, he's currently using mine.

I suggested maybe a switch/checkmark to make a device use p2p encryption or don't. His problem atm is, he doesn't know what devices use p2p encryption and which don't....there isn't a list anywhere so he was gonna try to figure that out

On Sat, Aug 26, 2023, 10:25 Fuat Akgün @.***> wrote:

@kvanbiesen https://github.com/kvanbiesen , is stopping live stream and starting again helping you to recover?

— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/841#issuecomment-1694226271, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ4APNDHK66ZVYPSCS75MTXXGXIVANCNFSM6AAAAAAZ7ODUSI . You are receiving this because you were mentioned.Message ID: @.***>

Colorado4Wheeler commented 10 months ago

I have the same problem with the stream being perpetually "PREPARING" and never starting. I can start and stop it a dozen times and the problem persists. It seems like I was able to resolve this by restarting the add-on or the integration (I don't recall which) but neither of those fixes it any longer. I don't remember any updates since 9/1 but that was the last time I had P2P working, so perhaps it's a Eufy firmware update.

kibohely commented 8 months ago

I have the same issue with a T8134

fuatakgun commented 8 months ago

I have the same issue with a T8134

This is not going to help at all, if you don't create a new one following the template.

kibohely commented 8 months ago

@fuatakgun : I create one , sorry I was in a meeting since your last comment on eufy_security_ws issue

981

fajen1 commented 8 months ago

I faced nearly the same issues with my Doorbell as well as the S220 Solo cams. For the Solos they sometimes get unresponsive but reloading the Integration usualy does the trick.

I did the following to finaly resolve my issues:

-Re install the integration as well as the addon -Adjust Streaming Quality as well as encoding to low in the app -checked the yaml code again and adjusted it to my cam entities

Im using the following code for my Cameras (2k wired doorbell, S220 Solo and 2c Pro):

square: false columns: 1 type: grid cards:

opswhisperer commented 7 months ago

I see lots of similar issues but no resolutions. I have several 2k cameras and I get the same "Can't get URL" messages. The entities all show up just fine, on one I get a very old static image but I can't stream any of the cameras. Pan & tilt even works but no video

fuatakgun commented 7 months ago

@opswhisperer , please share your device with me following README, let's start from somewhere.

I am sure the streaming works to some extent but it is not 100% reliable as we are all trying to decrypt the eufy work here as they do not provide an API for this.

opswhisperer commented 7 months ago

I'm not crazy about sharing my camera. Is there nothing I can do to troubleshoot? I can get the direct URL from the entity and it loads in VLC

fuatakgun commented 7 months ago

If the troubleshooting section didn't work captured in readme, no.

And as you rightly pointed out, i am not crazy about spending my free time on this issue if no one shares their camera.

kvanbiesen commented 7 months ago

@opswhisperer dude. Pretty sure fuat don't abuse your camera. The only thing to you can do is learn programming and try for yourself if you don't wanna share your device.

If you worried about privacy, just tape it off when sharing or face it against a wall.

Otherwise I don't see a point fuat wasting his time, if he can't debug the problem himself.

fuatakgun commented 7 months ago

@kvanbiesen , it is my free time activity to look through others camera rather than spending my time with family 😁 so it is better no one shares their camera with me.

Colorado4Wheeler commented 7 months ago

@fuatakgun I'm happy to add you to my account so you can work on this issue or get more information about this doorbell camera. Please let me know what you need from me. I will, as hard as it will be, refrain from having my daily naked dance parties on the porch while you diagnose 😂.

fuatakgun commented 7 months ago

Please do at your convenience following the README.

Colorado4Wheeler commented 7 months ago

@fuatakgun Done, I've invited you to administer the home. Do you need me to book time with you as well or is that enough?

fuatakgun commented 7 months ago

This is enough if i can take a look at the camera in my free time. Other way around, we can have the meeting, up to you

Colorado4Wheeler commented 7 months ago

No need on my end, I just want to make sure you have what you need to play with this device, my issue isn't that pressing but since nobody wanted to share their toys with you I wanted to grant access - particularly since this doorbell is quite literally the only Eufy device on that account!