Eufy Security Integration

Ok. I look into it soon. Now its updating to 2022.2.6… And I just realised that my tablets are Amazon Fire 10… they should support natively Eufy app and stream?

EDIT: Only Alexa notification that motion is detected or doorbell…

If I would to use Anker eufyCam 2C set with home base using this integration what kinda feed I can expect to see in HA dashboard? Is it 24/7/365 live stream or do it just start to record if something is moving and camera sees it? Are the camera feed saved to base station or in ha and can I access it later also?

2c cameras are automatically saving into home base and this integration allows you to access live stream. For historical records, you should use mobile app.

Alternatively you can install frigate, motioneye, or any Nas solution to store rtsp streams. This is supported natively by eufy and allows you to store video streams outside the home base.

2 Likes

Hi there, it’s possible for locks (got the touch with bridge), get the user who unlocked the door?

Nice dual eufy doorbell :slight_smile:

Would be great to have it integrated when it’s available :slight_smile:

I have eufy wired doorbell and been using mqqt integration for a year
It works nice, but stream component is laggy i have to run a script and after 5-10seconds the stream goes on
Are there any new updates of instant streaming?
Can i have continuous rtsp?

the eufy doorbell does not support rtsp to my knowledge. Integration of @anon63427907 can help you to convert p2p to rtsp though - just follow the instructions. Overall delay is 1-2 seconds which beats the eufy app.

1 Like

honestly, for the streams i would just turn on rstp and pipe them into frigate, and then use that.

Vaguely related, but not strictly a feature of this integration. I write all my events from the 2k indoor cameras to a nas instead of SD cards. This is good and bad, and the bad is that i lose any tagging (pet, person, motion, etc). However, with this integration theres triggered events which should match the timestamps on the clips, and could re-tag them.

Anyone done anything like that?

my alternative is just to use frigate for all the object detection, but honestly the on camera detection on teh 2k indoors is pretty amazing and I prefer it to the frigate detection

Anyone else having issues with triggering alarm?
alarm_trigger_with_duration gives me error:
expected Number for dictionary value @ data[‘duration’]. Got None

That is even though I give it a value of 20
service: eufy_security.alarm_trigger_with_duration data: duration: "20" target: entity_id: alarm_control_panel.xxxx

It’s a int Vs. string style of issue…
If in doubt, it should be:

service: eufy_security.alarm_trigger_with_duration
data:
  duration: 20

NOT

service: eufy_security.alarm_trigger_with_duration
data:
  duration: "20"

Hoping someone here might be able to help me. I have a 2k wired doorbell (T8200) that I can’t seem to get to work. I have followed all the instructions to the letter, and the camera connects to the add on, but nothing else happens. The sensors don’t communicate any changes, and when I click on the still image, I get an empty pop up.

2022-03-02 15:26:38.194  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-03-02 15:26:43.805  INFO  Push notification connection successfully established 
2022-03-02 15:26:43.964  INFO  Connected to station T8200XXXXX on host 10.0.0.95 and port 16025 
2022-03-02 16:57:01.099  INFO  Stopping the station stream for the device T8200XXXXX, because we haven't received any data for 5000 seconds

I have provided some additional details here: https://github.com/fuatakgun/eufy_security/issues/287

@anon63427907

hello,

i tried your integration, i think everything is set up correct, i see the values of my cams , but when i click on the example code :

show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: camera.kuche
tap_action:
  action: call-service
  service: camera.turn_on
  target:
    entity_id: camera.kuche

he says “streaming” but its not live, the picture dont changes. i only get a still image.

its not possible to use it in a vustom:card this way?

- type: custom:button-card
           entity: camera.kuche
        tap_action:
          action: call-service
          service: camera.turn_on
          target:
            entity_id: camera.kuche

....
....
....

when i click on the card he always says :

must contain at least one of entity_id, device_id, area_id.

Hello Pimp1310,

My Script, You’ll even need this feature Browser Mod

Script Camera On:
alias: Eufy camera ON Front Door
sequence:

  • service: camera.turn_on
    target:
    entity_id: camera.front_door_2 ## You Camera ID
    data: {}
  • service: browser_mod.window_reload
    data: {}
    mode: single
    icon: mdi:cctv

Script Camera Off:
alias: Eufy camera OFF Front Door
sequence:

  • service: camera.turn_off
    target:
    entity_id: camera.front_door_2 ## You Camera ID
    data: {}
  • service: homeassistant.reload_config_entry
    target:
    entity_id: camera.front_door_2
    data: {}
    mode: single
    icon: mdi:cctv-off

Cards:

type: vertical-stack
cards:

  • type: conditional
    conditions:
    • entity: binary_sensor.front_door_streaming_sensor_2 ## You Camera Sensor
      state_not: ‘True’
      card:
      type: button
      tap_action:
      action: call-service
      service: script.eufy_camera_on_front_door ## You Script name ON CAMERA
      service_data: {}
      target: {}
      icon: mdi:cctv
      name: Front Door
      icon_height: 50px
      show_state: false
  • type: conditional
    conditions:
    • entity: binary_sensor.front_door_streaming_sensor_2 ## You Camera Sensor
      state: ‘True’
      card:
      type: button
      tap_action:
      action: call-service
      service: script.eufy_camera_off_front_door ## You Script name OFF CAMERA
      service_data: {}
      target: {}
      name: Front Door
      icon: mdi:cctv-off
      icon_height: 50px
  • type: conditional
    conditions:
    • entity: binary_sensor.front_door_streaming_sensor_2 ## You Camera Sensor
      state: ‘False’
      card:
      type: picture-glance
      title: Front Door
      entities:
      • entity: binary_sensor.front_door_streaming_sensor_2 ## You Camera Sensor
      • entity: sensor.front_door_battery_2 ## You Camera Battery
        camera_image: camera.front_door_2 ## You Camera Image
        entity: camera.front_door_2 ## You Camera ID
        tap_action:
        action: call-service
        service: camera.turn_on
        service_data: {}
        target:
        entity_id: camera.front_door_2 ## You Camera ID
  • type: conditional
    conditions:
    • entity: binary_sensor.front_door_streaming_sensor_2 ## You Camera Sensor
      state: ‘True’
      card:
      type: custom:webrtc-camera
      entity: camera.front_door_2 ## You Camera ID
      mse: false

@WebPower

thank you for your code, is it important to stop the stream?
i played a little bit with the code, and i get this :

kameras

here the code for the popup and the webrtc card

- type: custom:button-card
        tap_action:
          action: fire-dom-event
          browser_mod:
            deviceID:
              - this
            command: popup
            hide_header: true
            large: false
            style:
              $: |
                .mdc-dialog .mdc-dialog__container {
                  height: auto;
                  width: auto;
                  
                }

                .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
                  width: auto;
                  height: auto;
                  border: 1px solid gray;
                  border-radius: 15px;
                  background: center / cover no-repeat url("/local/profilbilder/background.jpg");
                }
              .: |
                :host  {

                  --mdc-theme-surface: rgba(0,0,0,0);
                  --secondary-background-color: rgba(0,0,0,0);
                  --ha-card-background: rgba(0,0,0,0);
                  --mdc-dialog-scrim-color: rgba(0,0,0,0.8);
                  --mdc-dialog-min-height: 100%;
                  --mdc-dialog-min-width: 100%;
                  --mdc-dialog-max-width: 100%;


                }
                .content {
                   padding-left: 4px;
                   padding-right: 4px;
                   padding-top: 10px;
                   padding-bottom: 10px;
                 
                   }
            card:
              type: vertical-stack
              cards:
                - type: horizontal-stack
                  cards:
                    - type: custom:webrtc-camera
                      entity: camera.kuche
        styles:
          card:
            - background-color: rgba(255, 255, 255)
            - height: 115px
            - width: 115px
          grid:
            - grid-template-areas: '"i" "n" "s"'
            - grid-template-columns: 1fr
            - grid-template-rows: 1fr min-content min-content
          img_cell:
            - padding-left: 20px
            - justify-content: start
            - align-items: start
          name:
            - justify-self: left
            - color: black
            - padding-left: 10px
            - font-weight: bold
            - font-size: 11px
            - text-transform: uppercase
          state:
            - color: gray
            - justify-self: start
            - padding-left: 10px
            - font-weight: bold
            - font-size: 12px
          icon:
            - justify-self: center
            - border-radius: 100%
            - height: 70px
            - width: 70px
            - left: 24%
            - top: 5%
        size: 35px
        entity: camera.kuche
        name: Küche
        color: green
        color_type: icon
        show_state: true
        show_label: true
        show_entity_picture: true

Hi guys,

I cant seem to connect my homebase or 2K doorbell with home assistant. I am running HASS on a docker container within unraid. HASS has its own IP adress. Which IP do I need to enter at the “Eufy Security: setup” part: “Enter ip address and port of Eufy Security Web Socket instance”? I tried the IP of the homebase, HASS docker and even the unraid IP, but none seem to work. I keep getting the “Host/Port is wrong” error.

Any tips?

2 Likes

Hello,

After 3 minutes at the EUFY system is banned, it does not prefer a continuous stream.
an automation must be created that shuts off the stream. I’ll copy an example here soon.

Example of automation, turns off the camera after 45 seconds.

alias: Eufy - Stop Front Door Cam
description: Stop Front Door Cam
trigger:
  - platform: state
    entity_id: binary_sensor.front_door_streaming_sensor_2
    from: 'False'
    to: 'True'
    for:
      hours: 0
      minutes: 0
      seconds: 0
condition: []
action:
  - delay:
      hours: 0
      minutes: 0
      seconds: 45
      milliseconds: 0
  - service: script.eufy_camera_off_front_door
    data: {}
mode: restart