fuatakgun / eufy_security

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

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

Open ekaszubski opened 3 months ago

ekaszubski commented 3 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 3 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.