If you need to stop a camera.record action there is no clean method available in Home Assistant.
I also needed a way to extend an already running recording if another camera.record tries to start for the same camera, whilst it is already recording (eg: another trigger) - HA currently ignores the second request - so nothing gets recorded for that trigger!
I needed both of these features for my automations. So I wrote an integration for it.
The integration provides two services:
-
camera_start_recording- a more configurable alternative tocamera.record, which also lets you extend an already started recording (even one started bycamera.record) -
camera_stop_recording- stop a recording in progress, whether started by this integration, or by the built-incamera.recordservice
You can read the full details, with example uses, on the github repo.
Let me know if you find it useful.
If you find this integration useful, please consider giving it a
on GitHub!
All the best ![]()