Skip to content

Add hold action to Aqara H2 EU 1-switch#37

Open
milindur wants to merge 1 commit into
macpit:masterfrom
milindur:feat/z2m-aqara-h2-eu-1-double-hold-support
Open

Add hold action to Aqara H2 EU 1-switch#37
milindur wants to merge 1 commit into
macpit:masterfrom
milindur:feat/z2m-aqara-h2-eu-1-double-hold-support

Conversation

@milindur

Copy link
Copy Markdown

Blueprint Checklist

  • You viewed the README and conformed to the naming conventions
  • You ordered the actions as stated in the README action order
  • All filenames are lowercase and uses '-' for spaces and not '_' while using {service-name}-{switch-name-or-type}.yaml format
  • Images are png
  • Image backgrounds are transparent and is cropped to the device boundaries
  • Images has a maximum width of 800px and maximum height of 500px
  • There are no missing buttons or actions
  • Your integration/service is running on the latest version
  • You have tested your blueprints and made sure each button and action works

Zigbee2MQTT

  • (older devices) You have ensured legacy is off/false for the device in the Z2M devices Settings (specific) page and that your actions matches those with legacy off?

@macpit

macpit commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! 🙏 The change is clean — valid YAML, correct hold naming, and the action order (press → press 2x → hold) follows our conventions.

One thing I'd like to confirm before merging:

Does the H2 EU emit a hold-release event? Per our naming convention, if the button supports both hold and hold-release, we want an action for each — hold and hold (released). If Zigbee2MQTT publishes something like release_down (or similar) when you let go, could you add a matching hold (released) action? If the device only ever sends hold_down with no release event, then this is perfect as-is — just let us know.

Minor, non-blocking note for later: the upper rocker (button 1) currently only maps single_up. If the device also sends double_up / hold_up, those could be added in a follow-up so both halves are symmetric — no need to address it in this PR.

Thanks again!

@milindur milindur force-pushed the feat/z2m-aqara-h2-eu-1-double-hold-support branch from b67702f to 4ce4f0a Compare June 24, 2026 20:59
@milindur

Copy link
Copy Markdown
Author

Thanks for the review and the heads-up 👍!

I tested this with my H2 EU switch and can confirm it does emit release_down on hold release. I've updated the PR to add the matching hold (released) action.

I also checked the upper rocker: on my device it only emits single_up; I don't see double_up or hold_up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants