Skip to content

Commit

Permalink
Merge branch 'current' into xiaomi-aquara-move-sensor-to-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ffeeca7 authored Oct 8, 2024
2 parents ef73331 + 4b0d118 commit 04e5af8
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 49 deletions.
15 changes: 0 additions & 15 deletions source/_integrations/light.xiaomi_aqara.markdown

This file was deleted.

13 changes: 0 additions & 13 deletions source/_integrations/switch.xiaomi_aqara.markdown

This file was deleted.

148 changes: 127 additions & 21 deletions source/_integrations/xiaomi_aqara.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,24 @@ The Xiaomi Gateway (Aqara) integration supports the following entities.

### Covers

The cover entity allows you to control connected Aquara covers. You can do the following:
The cover entity allows you to control connected Aquara covers. You can do the following:

- Open the cover.
- Close the cover.
- Stop the cover motion.
- Move the cover to a specific position.
- See the current position of the cover.

### Lights

The light entity allows you to control the internal light of the Xiaomi gateway. The entity is called `light.gateway_light_28ffffffffff`. You can do the following:

- Turn the light on and off.
- Set the brightness.
- Set the color using HS or RGB color coding.

The requirement is that you have setup [Xiaomi aqara](/integrations/xiaomi_aqara/).

### Locks

An Aqara lock cannot be controlled by Home Assistant. However, the lock entity allows you to view the following data:
Expand All @@ -117,26 +127,118 @@ The binary sensor entities allow you to get data from your [Xiaomi](https://www.

#### Type of binary sensors supported

| Name | Zigbee entity | Model no. | States | Event | Event key | Event values |
| ---- | ------------- | --------- | ------ | ----- | --------- | ------------ |
| Motion Sensor (1st gen) | motion | RTCGQ01LM | on, off | `xiaomi_aqara.motion` | | |
| Motion Sensor (2nd gen) | sensor_motion.aq2 | RTCGQ11LM | on, off | `xiaomi_aqara.motion` | | |
| Xiaomi Door and Window Sensor (1st gen) | magnet | MCCGQ01LM | on, off | | | |
| Aqara Door and Window Sensor (2nd gen) | sensor_magnet.aq2 | MCCGQ11LM | on, off | | | |
| Smoke Detector | smoke | JTYJ-GD-01LM/BW | on, off | | | |
| Gas Leak Detector | natgas | JTQJ-BF-01LM/BW | on, off | | | |
| Water Leak Sensor | sensor_wleak.aq1 | SJCGQ11LM | on, off | | | |
| Button (1st gen) | switch | WXKG01LM | on (through long_click_press), off | `xiaomi_aqara.click`| `click_type`| `long_click_press`, `hold`, `single`, `double` |
| Button (2nd gen) | sensor_switch.aq2, remote.b1acn01 | WXKG11LM | on (through long_click_press), off | `xiaomi_aqara.click` | `click_type` | `single`, `double`, `long_click_press`, `hold` |
| Button (2nd gen, model b) | sensor_switch.aq3 | WXKG12LM | off (always) | `xiaomi_aqara.click` | `click_type` | `single`, `double`, `long_click_press`, `shake` |
| Aqara Wireless Switch (Single) | 86sw1 | WXKG03LM | off (always) | `xiaomi_aqara.click` | `click_type` | `single` |
| Aqara Wireless Switch (Double) | 86sw2 | WXKG02LM | off (always) | `xiaomi_aqara.click` | `click_type` | `single`, `both` |
| Aqara Wireless Switch (Single) (2nd gen) | remote.b186acn01 | WXKG03LM | off (always) | `xiaomi_aqara.click` | `click_type` | `single`, `double`, `long` |
| Aqara Wireless Switch (Double) (2nd gen) | remote.b286acn01 | WXKG02LM | off (always) | `xiaomi_aqara.click` | `click_type` | `single`, `double`, `long`, `both`, `double_both`, `long_both` |
| Cube | cube | MFKZQ01LM | off (always) | `xiaomi_aqara.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` |

#### Automation examples for binary sensors
List of supported binary sensors, including the following properties (if available): name, model no., Zigbee entity, states, and, event, event, key, and event values.

- **Motion Sensor (1st gen)**
- Model no.: RTCGQ01LM
- Zigbee entity: motion
- States: on, off
- Event: `xiaomi_aqara.motion`

- **Motion Sensor (2nd gen)**
- Model no.: RTCGQ11LM
- Zigbee entity: sensor_motion.aq2
- States: on, off
- Event: `xiaomi_aqara.motion`

- **Xiaomi Door and Window Sensor (1st gen)**
- Model no.: MCCGQ01LM
- Zigbee entity: magnet
- States: on, off

- **Aqara Door and Window Sensor (2nd gen)**
- Model no.: MCCGQ11LM
- Zigbee entity: sensor_magnet.aq2
- States: on, off

- **Smoke Detector**
- Model no.: JTYJ-GD-01LM/BW
- Zigbee entity: smoke
- States: on, off

- **Gas Leak Detector**
- Model no.: JTQJ-BF-01LM/BW
- Zigbee entity: natgas
- States: on, off

- **Water Leak Sensor**
- Model no.: SJCGQ11LM
- Zigbee entity: sensor_wleak.aq1
- States: on, off

- **Button (1st gen)**
- Model no.: WXKG01LM
- Zigbee entity: switch
- States: on (through long_click_press), off
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `long_click_press`, `hold`, `single`, `double`

- **Button (2nd gen)**
- Model no.: WXKG11LM
- Zigbee entity: sensor_switch.aq2, remote.b1acn01
- States: on (through long_click_press), off
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`, `double`, `long_click_press`, `hold`

- **Button (2nd gen, model b)**
- Model no.: WXKG12LM
- Zigbee entity: sensor_switch.aq3
- States: off (always)
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`, `double`, `long_click_press`, `shake`

- **Aqara Wireless Switch (Single)**
- Model no.: WXKG03LM
- Zigbee entity: 86sw1
- States: off (always)
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`

- **Aqara Wireless Switch (Double)**
- Model no.: WXKG02LM
- Zigbee entity: 86sw2
- States: off (always)
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`, `both`

- **Aqara Wireless Switch (Single) (2nd gen)**
- Model no.: WXKG03LM
- Zigbee entity: remote.b186acn01
- States: off (always)
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`, `double`, `long`

- **Aqara Wireless Switch (Double) (2nd gen)**
- Model no.: WXKG02LM
- Zigbee entity: remote.b286acn01
- States: off (always)
- Event: `xiaomi_aqara.click`
- Event key: `click_type`
- Event values: `single`, `double`, `long`, `both`, `double_both`, `long_both`

- **Cube**
- Model no.: MFKZQ01LM
- Zigbee entity: cube
- States: off (always)
- Event: `xiaomi_aqara.cube_action`
- Event key: `action_type`, `action_value` (rotate)
- Event values: `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swing`, `alert`, `free_fall`, `rotate` (degrees at action_value)

- **Vibration Sensor**
- Model no.: DJT11LM
- Zigbee entity: vibration
- States: off (always)
- Event: `xiaomi_aqara.movement`
- Event key: `movement_type`
- Event values: `vibrate`, `tilt`, `free_fall`

#### Automation examples for binary sensors

##### Motion

Expand Down Expand Up @@ -496,6 +598,10 @@ The following sensor types are supported:
- Temperature (depends on UI settings, Celsius or Fahrenheit)
- Tilt angle

## Switches

The switch entity allows you to get data from your [Xiaomi aqara](https://www.mi.com/en/) switches and to switch between states.

## Actions

The gateway provides the following actions:
Expand Down

0 comments on commit 04e5af8

Please sign in to comment.