arduino icon indicating copy to clipboard operation
arduino copied to clipboard

Difficulty Integrating Multiple Switches with Different Press Types in Matter

Open tiziano149 opened this issue 8 months ago • 2 comments

Hardware

Arduino Nano Mater

Core version

2.0.0

Arduino IDE version

2.3.2

Operating system

Mac os Sonoma

Radio stack variant

Matter

OpenThread Border Router device (if using Matter)

No response

Issue description

I’m working on a project using the Arduino Nano Matter board with the Matter 2.0.0 library. My goal is to integrate four switches into a single accessory in Apple HomeKit. Each switch should support different press types, including short press, long press, and multi-press.

I’m encountering challenges where each switch appears as a separate device, and I’m struggling to implement the various press types using the MatterSwitch class. Methods like report_event or triggerEvent don’t seem to be available.

I would appreciate any guidance or examples on how to consolidate these switches into one accessory and properly handle different button press types within the existing library framework. Thank you for any assistance you can provide!

Serial output

No response

RTT output (if using Matter)

No response

Minimal reproducer code

No response

tiziano149 avatar Jun 29 '24 13:06 tiziano149