Eufy Security Integration

Lol just saw the update notification, restarting after applying. Thanks for the speed of light updates

image
Yeah ! :slight_smile:

Brilliant! Works like a charm. Now that the basics work I look forward to explore these new features.

On the doorbell I had to reduce quality but the delay is now less than 3 seconds with webrtc. Thanks!

1 Like

Hi fuatakgun,

I am getting this still.

2021-12-15 05:06:37.931 ERROR Status return code not 200
{
status: 423,
statusText: ‘Locked’
}
2021-12-15 05:06:38.754 ERROR Status return code 401, invalidate token
{
status: 401,
statusText: ‘Unauthorized’
}
2021-12-15 05:06:38.757 ERROR Status return code not 200
{
status: 401,
statusText: ‘Unauthorized’
}
2021-12-15 05:06:38.839 ERROR Status return code not 200
{
status: 423,
statusText: ‘Locked’

Please create a github issue to track this and double check if your account has 2 factor authentication enabled, integration does not support it

And now, we have supports for multi selection options.

5 Likes

Nice work.
Also good move on the versioning, I was going to ask :+1:
Minor bug: the icon of the binary_sensor.doorbell_status_led_enabled appears to be set to mdi: led-on (with a space in between)
I’ve just submitted a PR

1 Like

Ur going as fast as lightning! Thx !

1 Like

Thanks for the PR, merged

1 Like

It is not feasible to catch up with 2k streaming inside home assistant, we need to downgrade the quality

Still present here… :frowning:

Does anyone have an automation built for when motion or a human is detected to send a notification with an image to your iPhone?

Not me, sorry :slight_smile: i am just interested in developing the custom integration but not using the whole functionality of the hardware :slight_smile: :slight_smile:

No worries! Is it normal for the thumbnail image to not update after turning RTSP on and then off on the camera. I have everything set up/working, but the thumbnail image is from daytime even if it is night. I thought turning RTSP would change/update the thumbnail but that doesn’t work. Any idea if this is normal behavior? (Side note, if I open the eufy app and view the camera, it will update the thumbnail, but viewing through HA does not do this)

Hello fellow eufy-users.
I am curious about a thing:
is it possible to read the changed attribute-state or timestamp of a eufy camera and use it in an automation of HA?
I have a eufy-cam by the front-door and don’t want to recieve notifications all day when I go in and out the door so I only set the ‘away’ mode with notifications on at night. But have set that when in ‘home’ mode the camera records to my homebase.
In home-assistant I also see that if motion has happened in the daytime (home-modus) the thumbnail changes, and attributes like pictureUrl changes.
Is it possible to read out the changed pictureUrl-attribute, and make an automation for it? So for example I can turn on my porch-light when camera sees motion (even in home-modus)

Did you ever figure this out? I have the T8222 1080P battery doorbell that shows up in Home Assistant with snapshots when it detects motion but I can’t view live streams.

I think this may be normal behaviour, indeed I can see the old thumbnail as I open the app, and it then gets replaced. I suspect the app get the latest thumbnail on opening and may then upload this)

not 100% sure what you’re asking, but yes you get the last_updated or last_changed attribute for any entity, including the eufy cam.

too bad, can’t get it to work with template-script:


    camera_changed1:
      device_class: timestamp
      value_template: >-
        "{{states.camera.voordeur.last_changed}}"
    camera_changed2:
      device_class: timestamp
      value_template: >-
        "{{states.camera.voordeur.last_updated}}"

any tips?
and question 2: is it then possible to trigger an automation when last_updated or last_changed changed value?

a few tips:
If you use >-, you should not enclose your template in single or double quotes

I just checked and there are several timestamps available in the camera.xxx from the eufy integration, why don’t you use this instead? Admitedly I have a doorbell, not just a cam so not sure what exactly shows for you, you may have to adjust.
Try to replace

      value_template: >-
        "{{states.camera.voordeur.last_changed}}"

with

      value_template: >-
        {{ (state_attr("camera.doorbell", "inherited")["properties"]["pictureUrl"]["timestamp"]) | int / 1000}}

You can then run an automation based on a value_template indeed:

  trigger:
    platform: template
    value_template: >-
      {{ (state_attr("camera.doorbell", "inherited")["properties"]["pictureUrl"]["timestamp"]) | int / 1000}}

(double check indentations)
This will trigger only when the timestamp changes

has anyone run it this in there logs for the eufy add on

2021-12-18 03:02:10.569 INFO Disconnected from station T8420N10203300B5
2021-12-18 03:02:15.851 INFO Connected to station T8420N10203300B5 on host 10.0.0.166 and port 17110
2021-12-18 03:03:31.805 INFO Disconnected from station T8420N10203300B5
2021-12-18 03:03:37.088 INFO Connected to station T8420N10203300B5 on host 10.0.0.166 and port 12303
2021-12-18 03:04:52.163 INFO Disconnected from station T8420N10203300B5
2021-12-18 03:04:57.373 INFO Connected to station T8420N10203300B5 on host 10.0.0.166 and port 14848