I am using a Mijia 720p camera which can be rotated and supports night vision. To get it working with HA, I have installed the mijia-720p-hack, which works fine. The camera can be used as FFmpeg camera.
To pan and tilt the camera or toggle night vision, I use a combination of shell_command and script to send a the UDP commands necessary to the camera.
So far so fine, but it would be nice to have the controls within the camera-card itself, when the actual camera feed is streamed. At the moment I have to close the card, and activate the script from a different state-card.
Any ideas where to start?