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
- When my phone disconnects from home Wi‑Fi
→ QVR Pro should enable the motion‑detection rule for the living‑room camera. - 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’sQVR‑Token
, which expires when the user logs out – not ideal for automation./api/v1/eventRules/{id}
The Open Event Platform docs mentionPUT ...eventRules/{id} {"enabled":true/false}
, but the call returns 404 on my 2.7.1 build (maybe deprecated?).
What I’m asking
- 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.* - 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?* - 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!