Camera enable/disable motion detect service

I implemented a camera integration by using camera entity.
Its stream is working, and I create a switch and button entity to control the stream and camera by my API like turn on/off, ptz and motion detect.

But I have a question that how to implement the same functions by its method like below.

We can see the function for enable/disable motion detection, turn on/off in the document, but there is no example to explain how to implement it. Although we enable the motion to detect manually, I still have no idea whether it works or not and where I can catch the signal when the camera detects something to let me implement the automation.

    def turn_off(self) -> None:
        """Turn off camera."""

    async def async_turn_off(self) -> None:
        """Turn off camera."""

    def disable_motion_detection(self) -> None:
        """Disable motion detection in camera."""

    async def async_disable_motion_detection(self) -> None:
        """Disable motion detection in camera."""