How to use Reolink in automations?

I have a Reolink DLC-830A and using the native integration. I have two questions:

  • How can I toggle detection on/off from an automation?

  • How can I activate a ptz preset from an automation?

many thanks in advance!

Hi

I’ve got a couple of Reolink camera’s with automations setup.
But I don’t quite understand your question, around toggling a detection from an automation.

Do you want to force trigger a detection via an automation versus from the camera detecting and triggering a detection status?

In your automation actions select ‘call service’ , then switch.toggle or whatever you need and select the entity of the detection

Something like this

  - service: switch.toggle
    target:
      entity_id: switch.reolink_sala_1_registra_audio
    data: {}

and for the PTZ something like this:

  - service: select.select_option
    target:
      entity_id: select.reolink_sala_1_preimpostazione_ptz
    data:
      option: Preset_Name

Hi, I mean I want to enable/disable the motion detection so that I can via an automation decide when I wan’t the camera start detect motion or not.

Oh okay, I don’t disable motion detection, but rather supress the alerts so if something happens, I still have the recording, but don’t receive a notification on my phone about the motion detection.

In my case I have a Driveway camera, and I supress notification if the garage door is open or the front door as they are next to each other. Also I have a boolean switch that will supress notification, used when working on the driveway with the door closed.

My notification are via Pushover with an image attached of the detection.

Here is my code:
alias: "Notification - Snapshot - Driveway - Person or Vehicle "
description: ""
trigger:
  - type: turned_on
    platform: device
    device_id: 289ef6ae53b59a25bd298c1c4d6bcf27
    entity_id: 741b1761c6cf825c9ac1b5221d75be86
    domain: binary_sensor
  - type: turned_on
    platform: device
    device_id: 289ef6ae53b59a25bd298c1c4d6bcf27
    entity_id: 6532de0e2e3992b26ebf8e42c24d8559
    domain: binary_sensor
condition:
  - condition: device
    device_id: 0040a2ad493549f79739473625e0ea21
    domain: cover
    entity_id: c5c6693f7af200d9a20527eeb49f4876
    type: is_closed
  - condition: device
    device_id: 2db88818119f72af71a964900167319a
    domain: lock
    entity_id: 43efe51f6238676a89bad8fa9b63332d
    type: is_locked
  - condition: state
    entity_id: input_boolean.motion_detection_disabled
    state: "off"
action:
  - service: camera.snapshot
    metadata: {}
    data:
      filename: /config/www/snapshot/{{ trigger.from_state.name }}.jpg
    target:
      entity_id:
        - camera.driveway_snapshots_clear
  - service: notify.pushover
    metadata: {}
    data:
      message: Motion Detected by Reolink Camera
      title: >-
        {{ trigger.from_state.name }} at {{ now().strftime('%Y-%m-%d') }} {{
        now().strftime('%H:%M') }}  
      target: MY-Phone
      data:
        attachment: /config/www/snapshot/{{ trigger.from_state.name }}.jpg
        sound: siren
    enabled: true
mode: single

Thanks it’s works. I thought it was dedicated Reolink service for that…

1 Like