Comments (11)
Thanks for the information - Button support now seems to be more widely available! I'll look into this and if possible we'll make the Switch examples available in the next release.
from arduino.
I also found this tutorial from SL : Matter over OpenThread Multi-feature Button
Overview
This tutorial will show you how to create and build a general Matter switch app that can trigger multiple types of events using a single button. This is based on the Silicon Labs Matter Github (SMG) repository's existing light-switch app.
For the demonstration purpose, I will use 2 x EFR32xG24 Wireless 2.4 GHz +10 dBm Radio Board (BRD4186C) and EFR32 Wireless Starter Kit (WSTK) Mainboard (BRD4001A), one for the switch and the other for the light. You can use any eligible listed in the hardware required section.
Events that this button can trigger are:
- Short press
- Short release
- Long press
- Long release
- Multi press
Step 10: Interaction with the Apple ecosystem
In this demo, I will create a Matter light over Thread device. Ater that, I commission both the switch and the light with an Apple HomePod mini.
First, I compile the Matter light and flash it similar to the switch.
$ ./scripts/examples/gn_efr32_example.sh examples/lighting-app/silabs/efr32/ out/lighting-app BRD4186C "chip_detail_logging=false chip_automation_logging=false"
Then, I commission and bind them as below:
- Single press action
- Double press action
Finally, We can control the lighting device by the single pressing and double pressing the button 1 on the development kit.
from arduino.
Thanks for the linked resources! I have good news - Matter Switch support will be coming soon (along with an example) in the next release.
from arduino.
Hello Iboue,
Unfortunately switches are currently not supported by the major ecosystems including Apple Home. That's why the example has been left out. Once Switch support becomes available we will definitely include an example for it. The Switch class is available to experiment with, so if you have a Matter hub that supports it you can use it at your own risk :)
In the meantime if you want to achieve similar functionality - you can control your lightbulb's on/off state with a physical switch and sync the state to the Matter network, but it won't be able to control other devices in the same group as a regular Matter Switch would. There will also be an example for this in the future.
from arduino.
I have the Philips Hue bridge with is exposing Hue Dimmer Switch via Matter protocol, so I it possible to expose Momentary switch.
from arduino.
Here's a sample implementation: esp-matter Generic Switch.
This example creates a Generic Switch device using the ESP Matter data model
from arduino.
I have the Philips Hue bridge with is exposing Hue Dimmer Switch via Matter protocol, so I it possible to expose Momentary switch.
Here is the device exposed to Matter fabric by Hue bridge:
{
"7/29/0":[
{
"deviceType":17,
"revision":1
},
{
"deviceType":19,
"revision":1
}
],
"7/29/1":[
29,
57,
47,
46
],
"7/29/2":[
],
"7/29/3":[
8,
9,
10,
11
],
"7/29/65532":0,
"7/29/65533":1,
"7/29/65528":[
],
"7/29/65529":[
],
"7/29/65531":[
0,
1,
2,
3,
65528,
65529,
65531,
65532,
65533
],
"7/57/5":"Hue dimmer salon",
"7/57/17":true,
"7/57/2":4107,
"7/57/1":"Signify Netherlands B.V.",
"7/57/3":"RWL021",
"7/57/10":"1.1.28573",
"7/57/18":"115dc69142c249e1a217447262f98823",
"7/57/14":"Hue dimmer switch",
"7/57/65532":0,
"7/57/65533":1,
"7/57/65528":[
],
"7/57/65529":[
],
"7/57/65531":[
5,
17,
2,
1,
3,
10,
18,
14,
65528,
65529,
65531,
65532,
65533
],
"7/47/14":0,
"7/47/1":1,
"7/47/0":1,
"7/47/2":"Primary Battery",
"7/47/25":3,
"7/47/15":false,
"7/47/16":2,
"7/47/19":"Unspecified",
"7/47/65532":10,
"7/47/65533":1,
"7/47/65528":[
],
"7/47/65529":[
],
"7/47/65531":[
14,
1,
0,
2,
25,
15,
16,
19,
65528,
65529,
65531,
65532,
65533
],
"7/46/0":[
7
],
"7/46/65532":0,
"7/46/65533":1,
"7/46/65528":[
],
"7/46/65529":[
],
"7/46/65531":[
0,
65528,
65529,
65531,
65532,
65533
]
}
from arduino.
Hello Iboue, Unfortunately switches are currently not supported by the major ecosystems including Apple Home. That's why the example has been left out. Once Switch support becomes available we will definitely include an example for it. The Switch class is available to experiment with, so if you have a Matter hub that supports it you can use it at your own risk :)
There is 2 generic-switch certified products:
- Tuo Smart Button by TUO Accessories
- Kasa Matter Smart Dimmer Switch by Kasa
from arduino.
Thanks for the linked resources! I have good news - Matter Switch support will be coming soon (along with an example) in the next release.
Nice! Will the new version be released in February?
from arduino.
The new version is planned to be released around the 21st of March during Arduino Days to support the new Nano Matter board.
from arduino.
The new version is planned to be released around the 21st of March during Arduino Days to support the new Nano Matter board.
Could you tell us when will the new version be published?
from arduino.
Related Issues (20)
- [Feature request] Using onboard button to operate the device HOT 3
- What means 'Attribute is dirty' in the Matter implementation? HOT 2
- OneWire .... stops Sketch on SparkFun Thing Plus MGM240P
- OneWire ... DS18B20 problem. on my Silicon Labs MGM240P using Matter library HOT 5
- [request] AllowStatic endpoints (non-bridge) HOT 3
- pulseIn measures incorrectly HOT 1
- DeviceCommissioned when it isn't HOT 1
- Some constants are not defined HOT 2
- [request] Allow deep sleep modes HOT 3
- [Feature Request] [Matter] Window Covering Support HOT 2
- README incorrectly specifies location to add repo's URL HOT 4
- Cannot get ezBLE.connected() == TRUE HOT 3
- Arduino IDE 2.3.2. SparkFun Thing Plus Matter - MGM240P no output in serial monitor HOT 5
- How to reset/remove Matter commisioning HOT 2
- EEPROM library is missing HOT 1
- Excessive use of RAM by certain static objects HOT 1
- Nothing happening here! HOT 1
- declaration of delay() is not compatible with C language HOT 2
- [Feature request] support for xG21 target(s) HOT 3
- Not able to commission lightbulb_color example code HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino.