I have an Aqara button that turns on a group of switches with a single press, a different group with a double press and then turns everything off with a long press. Right now, I have that as three separate automations. Is there an effective way to combine everything into one? Here is what I currently have:
Short Press:
alias: Turn on 3D Printer (no heat)
description: ""
trigger:
- device_id: dec601203483cee899e6e3540238735b
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.3d_printer_no_heat
mode: single
That’s due to my mistake; while copy-pasting from your examples I failed to include the subtype option in the second and third Device Triggers. I have corrected the example posted above.