API to toggle QVR Pro motion rules from Home Assistant

I’m looking for a clean, documented way to make QVR Pro start recording only when I’m away from home, and stop again when I’m back.
So far I’ve read a lot, tried a few work‑arounds, but I’d love to hear how other users solved (or would solve) the same scenario using supported APIs / features.

My setup

Component Details
NAS QNAP TS‑253D
QVR Pro 2.7.1.1259
Cameras 6 × ONVIF cams, each with a “motion‐detection” rule
Home Assistant Core 2025.7 in Docker (Container Station)
Presence tracking Companion App on Android (changes device_tracker.my_phone between home / not_home)

What I’d like to do

  1. When my phone disconnects from home Wi‑Fi
    → QVR Pro should enable the motion‑detection rule for the living‑room camera.
  2. When the phone reconnects
    → QVR Pro should disable that rule (privacy while I’m at home).

So, essentially I need an API call or webhook that flips the rule’s “Enabled/Disabled” switch.


What I tried

  • Event URL
    Created two Custom Events (ExitHome, EnterHome) and trigger them from Home Assistant via
    .../qvrpro/event/exec?event_id=ExitHomet&event_status=on
    Works ↔ QVR Pro receives the event, but I still need an action that enables/disables a rule. In 2.7.1 I can’t find “Enable event rule” anymore.
  • rule_operation.cgi & RuleActive
    Found (via DevTools) that the GUI itself calls
    POST /qvrpro/rule_operation.cgi RuleGUID=...&enable=1|0
    This works in a browser, but it requires the session’s QVR‑Token, which expires when the user logs out – not ideal for automation.
  • /api/v1/eventRules/{id}
    The Open Event Platform docs mention PUT ...eventRules/{id} {"enabled":true/false}, but the call returns 404 on my 2.7.1 build (maybe deprecated?).

What I’m asking

  1. Is there an official (token‑based, password‑less) endpoint in 2.7.1 to enable/disable a rule?
    2.Example curl or Postman snippet would be gold.*
  2. If not: what’s the recommended approach in 2025?
    4.Do you still use Event URL + “Enable event rule” action (where is it hidden now)?*
    5.Or do you rely on the /cfg/rule_operation.cgi call and keep a service account permanently logged in?*
  3. Any best practices for pairing QVR Pro with Home Assistant presence detection are welcome (I’d be happy to document the solution for the wiki once it’s stable).

Thanks in advance for any hint, script or pointer to up‑to‑date docs!

Crosspost with reddit
https://www.reddit.com/r/qnap/comments/1m1sbde/toggle_onoff_qvr_pro_motion_rules_from_home/

Please tell your AI slopmachine to shorten these questions next time, we don’t want to read through a whole essay

make QVR Pro start recording only when I’m away from home, and stop again when I’m back.

I have confirmed with the team but sorry that it seems the current QVR Server (both Pro and Elite 2.7) does not support this kind of setup.

We are indeed exploring similar functionality - using the QVR Client Mobile app on the phone to detect the location, so it can notify the QVR Server to start recording when leave home and stop when back.

If there are any updates on this feature, I will be sure to share them, thank you.