From 81dd8c61c9f4c4e4d5a7c446000abfe59c84feda Mon Sep 17 00:00:00 2001 From: Melvin Date: Sun, 20 Oct 2019 13:27:03 +0200 Subject: [PATCH] =?UTF-8?q?Xiaomi=20Aqara=20Documentation:=20Add=20example?= =?UTF-8?q?=20of=20notifying=20user=20when=E2=80=A6=20(#10846)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Melvin Blokhuijzen --- .../binary_sensor.xiaomi_aqara.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_integrations/binary_sensor.xiaomi_aqara.markdown b/source/_integrations/binary_sensor.xiaomi_aqara.markdown index 0103f255b27..d8457fbb018 100644 --- a/source/_integrations/binary_sensor.xiaomi_aqara.markdown +++ b/source/_integrations/binary_sensor.xiaomi_aqara.markdown @@ -99,6 +99,20 @@ The requirement is that you have setup the [`xiaomi aqara` integration](/integra entity_id: climate.livingroom data: operation_mode: 'Smart schedule' +- alias: Notify if door is opened when away + trigger: + platform: state + entity_id: binary_sensor.door_window_sensor_15xxxxxxc9xx6b + from: 'off' + to: 'on' + condition: + - condition: state + entity_id: group.family + state: 'not_home' + action: + - service: notify.notify_person + data: + message: 'The door has been opened' ``` #### Smoke