fuatakgun / eufy_security

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

[Feature Request]: Add support for "Preset Positions" feature of "PTZ" cameras #1119

Open ekaszubski opened 8 months ago

ekaszubski commented 8 months ago

Is your feature request related to a problem? Please describe. In addition to pan left/right and tilt up/down, The SoloCam S340 (T8170) and Floodlight Cam E340 (T8425) also support "Preset Positions", which are pre-set camera pointing angles. The app presently allows you to set and command up to five of these positions: a default position, plus four additional positions which are numbered but not (yet) named.

Describe the solution you'd like

Describe alternatives you've considered n/a

Additional context The eufy security client project added some CommandType definitions related to this: https://github.com/bropat/eufy-security-client/blob/3.0.0/src/p2p/types.ts#L455-L457 but I don't see any other references to these in their codebase.

I would be happy to assist in reverse-engineering any related parts of the p2p protocol if they are not already known. Any guidance as to where to start (e.g. use wireshark and snoop the packets going to the camera while playing with the app) would be appreciated.

awtmarriott commented 8 months ago

Definitely. On a read of the eufy-security-client code these are implemented in the types, interfaces, and implementation of the T8425 floodlight camera already.

samso00c commented 4 months ago

That feature would be great, because I could create an automatism to change camera perspective if motion is detected at another point. Camera needs to turn by 180° from garden to driveway.

Josager commented 1 week ago

It would be fantastic if this feature could be implemented, as it would allow cameras to automatically turn to Location based on time or Motion Sensor Status.