diff --git a/source/_integrations/reolink.markdown b/source/_integrations/reolink.markdown index 9ac30ddd25f..e4ee76dd76a 100644 --- a/source/_integrations/reolink.markdown +++ b/source/_integrations/reolink.markdown @@ -621,6 +621,81 @@ Prerequisites: - Turn on (outdoor) lights near the camera to improve image clarity at night once the camera detects a person, vehicle, or animal. - Turn off notifications and recording when you get home (based on, e.g., geofencing) and turn it back on when you leave home. +- Auto-pause rich notifications for x time + +{% details "Auto-pause rich notifications tutorial" icon="mdi:cursor-hand" %} + +**Goal**: At the end of this tutorial, you will have a drop-down on your dashboard with different time choices to pause your notifications. When the time is up, the notifications will become active again. It will look like this: + +![Overview of end result](/images/integrations/reolink/auto_pause__overview.png) + +1. First, create the dropdown from **Settings** > **Devices & services** > **Helpers** > **+ Create Helper** > **Dropdown**. + - Decide how many time delay choices you want. + - Add them all to the dropdown like below. + - Your first entry needs to be "Notifications active" (or simular phrasing) for when the notifications are turned on. + - You can define as many time options as you want. And you can define any time interval you like, for example, 22 minutes, 2 hours. + + ![Dropdown](/images/integrations/reolink/auto_pause__dropdown.png) + +2. Next, also from the **Helpers** menu create a **Timer**. + - Leave the time duration all zeros. Select the **Restore state and time** box. + + ![Timer](/images/integrations/reolink/auto_pause__timer.png) + +3. Now you will create a new automation script. + - For the **When** select **+ Add Trigger** > **Entity** > **State** and choose your dropdown box for the entity and in the **From** choose your "Notifications active" or whatever you chose for the top item. + + ![Automation When dropdown](/images/integrations/reolink/auto_pause__automation_when.png) + +4. Add another trigger using **+ Add Trigger** > **Entity** > **State** and choose your timer for the entity and in the **To** choose "Idle". + - Now select the three dots {% icon "mdi:dots-vertical" %} menu of this trigger and press **Edit ID**. In the **Trigger ID** type "TIMER DONE". + + ![Automation When timer](/images/integrations/reolink/auto_pause__automation_when_timer.png) + +5. There is nothing in the **And if** section. For the **Then do** section choose **add building block** and use **Choose**. + - You will have as many options as you have times in your dropdown box plus one to reset the dropdown box. + - First, we make the option to reset the dropdown box. This needs to be the first option. + - Under **Option 1**, select **+ Add Condition** > **Other conditions** > **Triggered by**. + - Now check the box in front of "TIMER DONE". + + ![Automation Triggered by](/images/integrations/reolink/auto_pause__automation_triggered_by.png) + +6. Add an action under this **Option 1**, choose **Select** as your action and then choose **First**. + - Then enter your dropdown box as the entity. + - This will change your dropdown box back to the first item when the timer is done. + - This will allow your notification automation to run again. + + ![Automation Select first](/images/integrations/reolink/auto_pause__automation_select_first.png) + +7. Let’s code the first option to pause the notifications now. + - Under **Option 2**, select **+ Add Condition** > **Entity** > **State**. + - Your dropdown box goes in the **Entity** and for **State** choose your first time delay. + + ![Automation Choose](/images/integrations/reolink/auto_pause__automation_choose.png) + +8. For **+ Add Action**, choose **Helpers** > **Timer** > **Start** and enter your timer entity. + - Check the duration box and enter the time delay you used for your first time delay. Format is HH:MM:SS + + ![Automation Start timer](/images/integrations/reolink/auto_pause__automation_start_timer.png) + +9. The only thing left here is to duplicate Option 2 as many items as you have in your dropdown box. + - The only changes you will need to make for each new option is to choose the correct state (time amount) for the dropdown box and then change the amount of time in the timer. + - You can easliy duplicate by clicking the three dots {% icon "mdi:dots-vertical" %} menu at the far right of the option. + +10. Lastly, you need to apply this new feature. + - Go into your rich notifications automation, or for that matter any automation that you would like to have pause control over, and add a condition. + - Below is an example. In the **And if** press **+ Add condition** > **Entity** > **State** add select the dropdown box as the entity and "Notifications Active", the first item, as the state. + + ![Condition](/images/integrations/reolink/auto_pause__condition.png) + +11. Add the dropdown box and the timer onto your dashboard and you are all set. + - Here is what it looks like when it is running (holding notifications). + - You can end it early by just selecting the timer, then selecting finish. That ends the timer, it goes to idle, and the automation resets the dropdown box to active. + + ![Result when running](/images/integrations/reolink/auto_pause__result_when_running.png) + +{% enddetails %} + - When someone presses the doorbell, play ringtones on speakers (Echo Dot/Google Home/smart hubs) throughout the house. - Pause a TV and show a notification badge on the TV when the doorbell is pressed (only when the TV is already on). - Play the quick replay messages of a Reolink doorbell only when not home (geofencing) diff --git a/source/images/integrations/reolink/auto_pause__automation_choose.png b/source/images/integrations/reolink/auto_pause__automation_choose.png new file mode 100644 index 00000000000..736a211eb97 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_choose.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_select_first.png b/source/images/integrations/reolink/auto_pause__automation_select_first.png new file mode 100644 index 00000000000..ad3c2b7f9a6 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_select_first.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_start_timer.png b/source/images/integrations/reolink/auto_pause__automation_start_timer.png new file mode 100644 index 00000000000..c9f30872121 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_start_timer.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_triggered_by.png b/source/images/integrations/reolink/auto_pause__automation_triggered_by.png new file mode 100644 index 00000000000..9cac3cd8ba5 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_triggered_by.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_wait_for_trigger.png b/source/images/integrations/reolink/auto_pause__automation_wait_for_trigger.png new file mode 100644 index 00000000000..8925bb31235 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_wait_for_trigger.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_when.png b/source/images/integrations/reolink/auto_pause__automation_when.png new file mode 100644 index 00000000000..5886364de49 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_when.png differ diff --git a/source/images/integrations/reolink/auto_pause__automation_when_timer.png b/source/images/integrations/reolink/auto_pause__automation_when_timer.png new file mode 100644 index 00000000000..ec4d0b536c9 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__automation_when_timer.png differ diff --git a/source/images/integrations/reolink/auto_pause__condition.png b/source/images/integrations/reolink/auto_pause__condition.png new file mode 100644 index 00000000000..ed7f96097f7 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__condition.png differ diff --git a/source/images/integrations/reolink/auto_pause__dropdown.png b/source/images/integrations/reolink/auto_pause__dropdown.png new file mode 100644 index 00000000000..7ae9be852f1 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__dropdown.png differ diff --git a/source/images/integrations/reolink/auto_pause__overview.png b/source/images/integrations/reolink/auto_pause__overview.png new file mode 100644 index 00000000000..0684e78bef1 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__overview.png differ diff --git a/source/images/integrations/reolink/auto_pause__result_when_running.png b/source/images/integrations/reolink/auto_pause__result_when_running.png new file mode 100644 index 00000000000..1118eb3def4 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__result_when_running.png differ diff --git a/source/images/integrations/reolink/auto_pause__timer.png b/source/images/integrations/reolink/auto_pause__timer.png new file mode 100644 index 00000000000..b6eedc5e1a1 Binary files /dev/null and b/source/images/integrations/reolink/auto_pause__timer.png differ