fuatakgun/eufy_security

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

ekaszubski opened this issue · 2 comments

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.

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.

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.