Aqara Gateway/Hub (ZHWG11LM) - use as doorbellhttps://community.home-assistant.io/t/xiaomi-aqara-gateway-hub-zhwg11lm-possible-to-use-as-doorbell/279272pair it in mi home modeIn theory, the most straightforward way would be by pairing the button with the gateway and setting up an automation from within the MiHome app. But it should also be possible to do it in HA.
I’m assuming your button raises an event somewhere in HA that can be used to trigger the automation.
If your gateway has been set up correctly, you should have the xiaomi_aqara.play_ringtone service available under developer tools -> services.
If it’s there, then you can play the chime with the following script:
<'numeric_id'>:
alias: DoorbellSound
sequence:
- data:
gw_mac: <mac address>
ringtone_id: 10
ringtone_vol: 80
service: xiaomi_aqara.play_ringtone