From 8a701f9cd7d282c8c44ea70430b849b5a498d82c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 11 Mar 2020 06:03:08 -0500 Subject: [PATCH] Add Presence Detection example to august (#12314) * Add Presence Detection example to august * mixing quotes * Try another way * Try another way * Try another way * Try another way * Try another way * Try a another way to fix build * Revert "Try a another way to fix build" This reverts commit 95f9846b1d2a9f9fc7b1274cfa657af1a793b3c1. * raw it is * :pencil2: Tweak Co-authored-by: Franck Nijhof --- source/_integrations/august.markdown | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/source/_integrations/august.markdown b/source/_integrations/august.markdown index a55fd764994..e13fc70d6eb 100644 --- a/source/_integrations/august.markdown +++ b/source/_integrations/august.markdown @@ -93,7 +93,33 @@ If you have an August Doorbell with a battery, once you have enabled the August If you have an August Smart Lock, once you have enabled the August component, you should see the following sensors: - Lock Battery +- Lock Operation If you have an August Keypad, once you have enabled the August component, you should see the following sensors: - Keypad Battery + +### Presence Detection with Lock Operation + +Using the lock operation sensors, you can detect when a user operates a lock and is physically present (not remote). The below example will trigger when the user named “John Doe” in August locks or unlocks the door from the keypad (if present), via Bluetooth from their phone, or by auto-unlock. The state of the sensor will be the name of the party operating the lock as returned by August. + +{% raw %} + +```yaml +- id: '1583706446906' + alias: joe_doe_front_door_operate + description: John Doe locks or unlocks the Front Door + trigger: + - entity_id: sensor.front_door_operator + platform: state + to: John Doe + condition: + - condition: template + value_template: "{{ not state_attr('sensor.front_door_operator', 'remote') }}" + action: + - data: {} + entity_id: camera.inside + service: camera.turn_off +``` + +{% endraw %}