From 99cbaf450659620e97fc905acffc8144643d4cde Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 8 Oct 2018 12:08:54 +0200 Subject: [PATCH] Add documentation for Xiaomi Vibration Sensor (#6600) --- .../binary_sensor.xiaomi_aqara.markdown | 30 +++++++++++++++++++ source/_components/xiaomi_aqara.markdown | 1 + 2 files changed, 31 insertions(+) diff --git a/source/_components/binary_sensor.xiaomi_aqara.markdown b/source/_components/binary_sensor.xiaomi_aqara.markdown index 6f33659f78b..e782c1e9e9a 100644 --- a/source/_components/binary_sensor.xiaomi_aqara.markdown +++ b/source/_components/binary_sensor.xiaomi_aqara.markdown @@ -35,6 +35,7 @@ The requirement is that you have setup the [`xiaomi aqara` component](/component | Aqara Wireless Switch (Single) | 86sw1 | WXKG03LM | off (always) | `click` | `click_type` | `single` | | Aqara Wireless Switch (Double) | 86sw2 | WXKG02LM | off (always) | `click` | `click_type` | `single`, `both` | | Cube | cube | MFKZQ01LM | off (always) | `cube_action` | `action_type`, `action_value` (rotate) | `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swing`, `alert`, `free_fall`, `rotate` (degrees at action_value) | +| Vibration Sensor | vibration | DJT11LM | off (always) | `xiaomi_aqara.movement` | `movement_type` | `vibrate`, `tilt`, `free_fall` | ### {% linkable_title Automation examples %} @@ -308,3 +309,32 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac service: light.turn_off entity_id: light.gateway_light_34xxxxxxxx13 ``` + +#### {% linkable_title Vibration Sensor %} + +This automation toggles the living room lamp on vibration/tilt. + +```yaml +- alias: Turn on Living Room Lamp on vibration + trigger: + platform: event + event_type: xiaomi_aqara.movement + event_data: + entity_id: binary_sensor.vibration_xxxx000000 + movement_type: vibrate + action: + service: light.toggle + data: + entity_id: light.living_room_lamp +- alias: Turn on Living Room Lamp on tilt + trigger: + platform: event + event_type: xiaomi_aqara.movement + event_data: + entity_id: binary_sensor.vibration_xxxx000000 + movement_type: tilt + action: + service: light.toggle + data: + entity_id: light.living_room_lamp +``` diff --git a/source/_components/xiaomi_aqara.markdown b/source/_components/xiaomi_aqara.markdown index d98517498f1..5c6fa1016ba 100644 --- a/source/_components/xiaomi_aqara.markdown +++ b/source/_components/xiaomi_aqara.markdown @@ -40,6 +40,7 @@ The `xiaomi_aqara` component allows you to integrate [Xiaomi](http://www.mi.com/ - Gateway (Light, Illumination Sensor, Ringtone play) - Intelligent Curtain - Water Leak Sensor +- Vibration Sensor - Battery #### {% linkable_title Unsupported Devices %}