Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions source/_components/binary_sensor.xiaomi_aqara.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Available events are `single`, `double`, `hold`, `long_click_press` and `long_cl
- alias: Toggle dining light on single press
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: single
Expand All @@ -158,7 +158,7 @@ Available events are `single`, `double`, `hold`, `long_click_press` and `long_cl
- alias: Toggle couch light on double click
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: double
Expand All @@ -168,7 +168,7 @@ Available events are `single`, `double`, `hold`, `long_click_press` and `long_cl
- alias: Let a dog bark on long press
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: long_click_press
Expand All @@ -188,7 +188,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
- alias: Cube event flip90
trigger:
platform: event
event_type: cube_action
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: flip90
Expand All @@ -200,7 +200,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
- alias: Cube event flip180
trigger:
platform: event
event_type: cube_action
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: flip180
Expand All @@ -212,7 +212,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
- alias: Cube event move
trigger:
platform: event
event_type: cube_action
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: move
Expand All @@ -224,7 +224,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
- alias: Cube event tap_twice
trigger:
platform: event
event_type: cube_action
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: tap_twice
Expand All @@ -236,7 +236,7 @@ Available events are `flip90`, `flip180`, `move`, `tap_twice`, `shake_air`, `swi
- alias: Cube event shake_air
trigger:
platform: event
event_type: cube_action
event_type: xiaomi_aqara.cube_action
event_data:
entity_id: binary_sensor.cube_15xxxxxxxxxxxx
action_type: shake_air
Expand All @@ -255,7 +255,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
- alias: Decrease brightness of the gateway light
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.wall_switch_left_158xxxxxxxxx12
click_type: single
Expand All @@ -277,7 +277,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
- alias: Increase brightness of the gateway light
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.wall_switch_right_158xxxxxxxxx12
click_type: single
Expand All @@ -299,7 +299,7 @@ The Aqara Wireless Switch is available as single-key and double-key version. Eac
- alias: Turn off the gateway light
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.wall_switch_both_158xxxxxxxxx12
click_type: both
Expand Down
6 changes: 3 additions & 3 deletions source/_components/xiaomi_aqara.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ This example plays the sound of a dog barking when the button is held down and s
- alias: Let a dog bark on long press
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: long_click_press
Expand All @@ -221,7 +221,7 @@ This example plays the sound of a dog barking when the button is held down and s
- alias: Stop barking immediately on single click
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: single
Expand All @@ -239,7 +239,7 @@ This example toggles the living room lamp on a double click of the button.
- alias: Double Click to toggle living room lamp
trigger:
platform: event
event_type: click
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000xxxxxc2
click_type: double
Expand Down