QVR Pro
QVR Pro allows you to create
an independent and expandable surveillance environment on your QNAP NAS. The
qvr_pro integration allows you to view your QVR Pro channels in Home Assistant.
Currently, only cameras are supported by this integration.
Configuration
To enable QVR Pro integration, add the following to your
configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file.
After changing the configuration.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI. [Learn more] file, restart Home Assistant to apply the changes. The integration is now shown on the integrations page under Settings > Devices & services. Its entities are listed on the integration card itself and on the Entities tab.
# Example configuration.yaml entry
qvr_pro:
host: YOUR_HOST
username: YOUR_USERNAME
password: YOUR_PASSWORD
Enabling the QVR Pro camera platform will add all QVR Pro channels by
default. Please see exclude_channels if you would like to exclude
specific channels from showing up in Home Assistant.
The QVR Pro user must have Surveillance Management permission.
List of actions
The QVR Pro integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.
-
Start record (
qvr_pro.start_record) Starts recording a camera channel on your QVR Pro server. -
Stop record (
qvr_pro.stop_record) Stops recording a camera channel on your QVR Pro server.
For an overview of every action across all integrations, see the actions reference.
QVR Pro automation examples
With the recording actions, Home Assistant decides when your QVR Pro server records.
You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.
Automation: record the driveway when motion is detected
Start recording the driveway camera on your QVR Pro server as soon as the motion sensor detects motion.
-
Trigger: State changed
-
Entity: Driveway motion (
binary_sensor.driveway_motion) - To: Detected
-
Entity: Driveway motion (
-
Action: Start record
- GUID: The GUID of the driveway camera channel
YAML example for recording when motion is detected
alias: "Record the driveway when motion is detected"
triggers:
- trigger: state
entity_id: binary_sensor.driveway_motion
to: "on"
actions:
- action: qvr_pro.start_record
data:
guid: "YOUR_CHANNEL_GUID"
Automation: stop recording when the driveway is quiet again
Stop recording the driveway camera when the motion sensor has not detected motion for 2 minutes.
-
Trigger: State changed
-
Entity: Driveway motion (
binary_sensor.driveway_motion) - To: Clear
- For at least: 2 minutes
-
Entity: Driveway motion (
-
Action: Stop record
- GUID: The GUID of the driveway camera channel
YAML example for stopping the recording when it’s quiet
alias: "Stop recording when the driveway is quiet"
triggers:
- trigger: state
entity_id: binary_sensor.driveway_motion
to: "off"
for:
minutes: 2
actions:
- action: qvr_pro.stop_record
data:
guid: "YOUR_CHANNEL_GUID"