# Home Assistant, events: xiaomi\_aqara.click

**URL:** <https://discourse.nodered.org/t/home-assistant-events-xiaomi-aqara-click/24636>\
**Category:** General\
**Created:** [11 April 2020 11:15 UTC](https://discourse.nodered.org/t/home-assistant-events-xiaomi-aqara-click/24636 "2020-04-11T11:15:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel1411](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@daniel1411](https://discourse.nodered.org/u/daniel1411)\
**Post date:** [11 April 2020 11:15 UTC](https://discourse.nodered.org/t/home-assistant-events-xiaomi-aqara-click/24636/1 "2020-04-11T11:15:47Z")

</div>

Hi

i have 3 xiaomi aqara click button, and i want to create automation using this buttons.

1. I understand that the only option i have is "listen" to event xiaomi\_aqara.click.

so i listen and get this:

```auto
{"event_type":"xiaomi_aqara.click","topic":"xiaomi_aqara.click","payload":{"event_type":"xiaomi_aqara.click","entity_id":"binary_sensor.switch_158d0001eb61a3","event":{"entity_id":"binary_sensor.switch_158d0001eb61a3","click_type":"single"}},"_msgid":"9943e41f.5fed78"}

```

This is the only wat?

1. if yes, so how i split the action by **entity\_id** and **click\_type**

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 June 2020 11:15 UTC](https://discourse.nodered.org/t/home-assistant-events-xiaomi-aqara-click/24636/2 "2020-06-10T11:15:47Z")

</div>

Closed on 10 June 2020 11:15 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
