Eufy Security Integration

I see that your device looks supported. You should create an issue under this repository GitHub - bropat/eufy-security-client: This shared library allows to control Eufy security devices by connecting to the Eufy cloud servers and local/remote stations over p2p.

I think thats still strange, cause it worked before.
So we dont get any pictures with the eufy can 2C
Although it worked before

I was able to understand this better now.
Picture URL is correct, data is flowing from source to target. Home assistant is calling eufy servers to fetch the picture but not able to fetch it because of http1.1 vs http2 thingy.

I will double check in integration if i can fetch the picture using http2.0. on the other hand, i have 4 unit of 2c cameras and not having this issue, so it is not generic.

I see that existing python libraries inside home assistant (aiohttp and requests) do not support http2 requests yet. I donā€™t know how and why your camera picture is served over http2 protocol, but, i donā€™t have a very straightforward solution for you.

Any thoughts on this question?

I would very much like to access my custom quick responses through HA, but when I choose for ID 4, 5 or 6 in the scripts it does not return anything. 1, 2, and 3 work perfectly fine!

Mmm already thank you for even investigating it.
Is there a way to force it over http1 then?
If not, are you willing to request inside HA to support http2

Or can bropat try to only accept 1.0

I dunno all this is above my skill

I dunno why it worked before either

You say you have 4x cams 2c why dont you have it then?

And is the other person here in this topic, having the same issue as i (he was willing to share his cam)

  • add on is reading states and events and handling it over to listeners
  • integration connetcs to add on to listen

PictureUrl is correctly moving around but to download image from this address, the call has to be made with http2 supporting library which i havenā€™t found yet. I checked the ones i am aware and there is no support, so it is not about home assistant, add on or integration, we need a library to support http2 calls. Eufy had changed their backend to accept only http2 calls, it would eventually fail if you stick with older add on versions.

So, sharing devices would not help until i find one library supports http2. I will continue investigating this but do not hope a lot.

Can you create a request in repository so i can expose this as a user control rather than you call scripts directly

A suggestion: https://www.python-httpx.org/ :wink:

2 Likes

Done, thanks! :slight_smile:

1 Like

Maybe, it is time to request a sensor for last updated at? Just create github issue if you think many users will get benefit with this

Guess it all depends on what ā€œlast changedā€ timestamp @mht2k wants. The solution above allows for any of the timestamps to be usedā€¦

Is it possible to list the last events, mimicking the EufyCam mobile app, in Home Assistant, with this integration?
I have the integration set up, and its working well btw!

Hey, i donā€™t think HA is a good or suitable environment to record and present these. Do you have anything your mind about UI and benefit? As all these events should be captured by motion sensors etc?

Ahoi @anon63427907 I try to follow your eufy_security installation guide on github and I get stucked on point 6.3.3 - Install the Eufy Secucirty repository.

After I click on the added Eufy Security repository, HACS start endless loading. Inside the browser console (F12) there is no hint why. I have no idea how can I solve that issue.

This looks like a problem between home assistant -HACS and GitHub. You can always manually install the integration while copying latest release files into custom_components folder.

Later on, without any change (maybe a restart), it works fine. Sorry for the wrong alert. No I try to create some simple automations with the Eufy 2k Doorbell (Wired). A lamp should switch on, when someone is ringing. Atm I donā€™t get it to work. It seems the ring event get not register by HA. Are there examples about eufy device automations?

alias: doorbell_ringing
description: turn light red if door bell ringing
trigger:
  - type: turned_on
    platform: device
    device_id: 6d8b
    entity_id: binary_sensor.doorbell_ringing_sensor
    domain: binary_sensor
condition: []
action:
  - type: turn_on
    device_id: 1a57
    entity_id: light.livarno_lamp_level_light_color_on_off
    domain: light
    flash: long
    brightness_pct: 80
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  - type: turn_off
    device_id: 1a57
    entity_id: light.livarno_lamp_level_light_color_on_off
    domain: light
mode: single

Please check integration configuration options page if you had enabled binary sensor fix :slight_smile: yes, we have an option for a fix

1 Like

@anon63427907 and bropat,

First merry christmas to all of you (also the rest of this forum offcourse) and best wishes !

Bropat is pointing out a http2 library here, is that an option?

Merry Christmas to you too and all.

I will work on this, thanks for reminding me.