mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
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
* ✏️ Tweak
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
f84c6bdca6
commit
8a701f9cd7
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user