Howto setup aqara devices with the zigbee2mqtt user interface (for sonoff Plus V2 “ZBDongle-E)

sonoff Plus V2 “ZBDongle-E” (based on EFR32MG21) ember device is now setup.

Now I want to setup my devices thru the zigbee2mqtt user interface
http://localhost:8088/#/

I have aqara devices: movement sensor, door sensors, temperature and humidity sensors.
I also have a xiaomi temperature and humidity sensor

Any howto to link these devices or to information on the subject would be great.

Thanks.

  1. Follow “Frontend”
    Allowing devices to join | Zigbee2MQTT

  2. Follow “Pairing”:

I have spent a few hours trying to understand the zigbee2mqtt ui using a few devices among which:
aqara temperature sensor
https://www.zigbee2mqtt.io/devices/WSDCGQ12LM.html
aqara motion sensor p1
https://www.zigbee2mqtt.io/devices/RTCGQ14LM.html

I though I saw something in the error log of zigbee2mqqt.

This is the one I used:

So I realized that none of my attempt of pairing worked.

I had to reset the zigbee2mqqt docker container. Then I tried to pair the aqara temperature and motion sensor.

For this I get into the zigbee2mqqt user interface.
Using the option Permit to join all, I click on the little sun at its right. The interface changes from light blue to black.

On the aqara temperature device I push the top button for over 5 sec which triggers a fast blinking of the blue light, then I push on the same button every 2 sec which triggers a single flash of the blue light.

The same operation is done for the aqara motion sensor.

Looking at the error log, there is no evidence of my testing on the zigbee2mqqt interface with the temperature and motion sensors devices.

Here is the log:

zigbee2mqtt  | [2025-05-20 17:59:20] e[32minfoe[39m: 	z2m: Connected to MQTT server
zigbee2mqtt  | [2025-05-20 17:59:20] e[32minfoe[39m: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
zigbee2mqtt  | [2025-05-20 18:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,470,0,0,0,0,0,0,0,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 18:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 19:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 19:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 20:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,467,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 20:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 21:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,465,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 21:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 22:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 22:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 23:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,463,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-20 23:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 00:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,465,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 00:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 01:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,468,0,0,0,0,0,0,0,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 01:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 02:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,464,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 02:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 03:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 03:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 04:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,465,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 04:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 05:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,465,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 05:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 06:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,464,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 06:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 07:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 07:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 08:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,468,0,0,0,0,0,0,0,0,0,0,61,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 08:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 09:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 09:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 10:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,464,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 10:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 11:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 11:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 12:59:18] e[32minfoe[39m: 	zh:ember: [NCP COUNTERS] 0,466,0,0,0,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 12:59:18] e[32minfoe[39m: 	zh:ember: [ASH COUNTERS] 5,2,1,1,0,0,0,0,87,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
zigbee2mqtt  | [2025-05-21 13:08:52] e[32minfoe[39m: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}'
zigbee2mqtt  | [2025-05-21 13:08:52] e[32minfoe[39m: 	z2m: Disconnecting from MQTT server
zigbee2mqtt  | [2025-05-21 13:08:52] e[32minfoe[39m: 	z2m: Stopping zigbee-herdsman...
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:controller: Wrote coordinator backup to '/app/data/coordinator_backup.json'
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash: ASH COUNTERS since last clear:
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Total frames: RX=11, TX=21
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Cancelled   : RX=0, TX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   DATA frames : RX=11, TX=10
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   DATA bytes  : RX=168, TX=130
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Retry frames: RX=0, TX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   ACK frames  : RX=0, TX=11
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   NAK frames  : RX=0, TX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   nRdy frames : RX=0, TX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   CRC errors      : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Comm errors     : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Length < minimum: RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Length > maximum: RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Bad controls    : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Bad lengths     : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Bad ACK numbers : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Out of buffers  : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Retry dupes     : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   Out of sequence : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash:   ACK timeouts    : RX=0
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash: Port closed.
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:uart:ash: ======== ASH stopped ========
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember:ezsp: ======== EZSP stopped ========
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	zh:ember: ======== Ember Adapter Stopped ========
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	z2m: Stopped zigbee-herdsman
zigbee2mqtt  | [2025-05-21 13:08:53] e[32minfoe[39m: 	z2m: Stopped Zigbee2MQTT
zigbee2mqtt  | Using '/app/data' as data directory
zigbee2mqtt  | Starting Zigbee2MQTT without watchdog.
zigbee2mqtt  | [2025-05-21 13:15:35] e[32minfoe[39m: 	z2m: Logging to console, file (filename: log.log)
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	z2m: Starting Zigbee2MQTT version 2.2.1 (commit #a14feef8c13f5ce49b0ac358d98d3234d21d7ff4
zigbee2mqtt  | )
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	z2m: Starting zigbee-herdsman (3.4.11)
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember: Using default stack config.
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember: ======== Ember Adapter Starting ========
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember:ezsp: ======== EZSP starting ========
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember:uart:ash: ======== ASH Adapter reset ========
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember:uart:ash: Serial port opened
zigbee2mqtt  | [2025-05-21 13:15:36] e[32minfoe[39m: 	zh:ember:uart:ash: ======== ASH starting ========
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember:uart:ash: ======== ASH connected ========
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember:uart:ash: ======== ASH started ========
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember:ezsp: ======== EZSP started ========
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.4 [GA]","build":0,"major":7,"minor":4,"patch":4,"special":0,"type":170}
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember: [STACK STATUS] Network up.
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember: [INIT TC] Adapter network matches config.
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	zh:controller: Wrote coordinator backup to '/app/data/coordinator_backup.json'
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: zigbee-herdsman started (resumed)
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":4,"revision":"7.4.4 [GA]","special":0,"type":170},"type":"EmberZNet"}'
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Currently 0 devices are joined.
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Connecting to MQTT server at mqtt://mosquitto:1883
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Connected to MQTT server
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Started frontend on port 8080
zigbee2mqtt  | [2025-05-21 13:15:37] e[32minfoe[39m: 	z2m: Zigbee2MQTT started!

Info on problematic reasons for not pairin seem to be almost inexistant.
https://www.zigbee2mqtt.io/guide/faq/#why-does-my-device-not-or-fail-to-pair

Why does my device not or fail to pair?
This problem can be divided in 2 categories; no logging is shown at all OR interview fails.
etc. etc., more general considerations.

Any suggestion will be much appreciated.
Thanks.

Note: A rare video on zigbee2mqqt interface(without home assistant) zigbee2mqqt (no device intallation troubleshooting included, sonoff installation described)
https://www.youtube.com/watch?v=G1KQtOCzzgQ

*** to be continued ***

Don’t click on the sun. Click on “Permit to join” as in the snapshot below:


After clicking the Pairing mode will be activated for 4 minutes and 15 seconds.
After that your pairing procedure should work, as described in the “z2m-docs”

Info about that you’ll see in the “frontend logs”

Hope this helps you
Cheers - Peter

Great!
So simple that I could just miss it.
Merci grandement!

I have been able to pair:
aqara motion sensors (2)
aqara temperature and humidity sensors (2)
aqara door sensor (2)
aqara smoke alarm

The xiaomi temperature and humidity sensor seems more complicated:
https://www.zigbee2mqtt.io/devices/LYWSD03MMC-z.html

You have to flash the device.
I was not able to do it following the instructions.
I have tried:
removing the battery
shorting the device, removing the cover and contact between ground and reset poles with a paper clip.

Any cue?

Now I want to tie the motion and door sensor to a wifi alarm siren which is tuya.

How do I do that?

De rien ! :slightly_smiling_face:

Sorry, I don’t have thistemperature-sensor. I’m using “Sonoff SNZB-02D”, but as I understand you have to flash the sensor before using.
Maybe this Url can help you !?

The easiest way is to do it by a rule, if there are no direct chaining is possible.

Here is a textual DSL-rule, which I’m using.

rule "Alarmsirene"
  when
    Member of gWatAlTrig changed from OFF to ON

  then
  var vTriggerString = triggeringItem.name + " - " + triggeringItem.label
    sendCommand(ASIR2_Sirene_3OPTICALALARMSELECTION,"BLINKING_ALTERNATELY_REPEATING")
    sendCommand(ASIR2_Sirene_3ACOUSTICALARMSELECTION,"FREQUENCY_ALTERNATING_LOW_MID_HIGH")
    sendCommand(ASIR2_Sirene_3DURATIONUNIT,"S")
    sendCommand(ASIR2_Sirene_3DURATIONVALUE,15)
    logInfo("Alarm-Sirene","Achtung WasserSensor hat ausgelöst {}", vTriggerString)                            
    val mailActions = getActions("mail","mail:smtp:tonline-smtp")
       mailActions.sendMail("username@gmx.de", "Wasser-Alarm", "OH4 - es wird nass (Wasser-Alarm): " + vTriggerString)
end

So if one of my sensors (grouped as “gWatAlTrig”) changes it’s state to ON, the Siren (“ASIR2_Sirene_3”) is activated and an e-mail is sent to a recipient.

Thanks for these procedures. I am away from home now, I will try these on Sunday or Monday.