Giter VIP home page Giter VIP logo

Comments (11)

silabs-bozont avatar silabs-bozont commented on May 19, 2024 1

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.

lboue avatar lboue commented on May 19, 2024 1

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

Image demo

  • Double press action

Image demo

Finally, We can control the lighting device by the single pressing and double pressing the button 1 on the development kit.

from arduino.

silabs-bozont avatar silabs-bozont commented on May 19, 2024 1

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.

silabs-bozont avatar silabs-bozont commented on May 19, 2024

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.

lboue avatar lboue commented on May 19, 2024

I have the Philips Hue bridge with is exposing Hue Dimmer Switch via Matter protocol, so I it possible to expose Momentary switch.

It works with Apple Home:
matter_dimmer

from arduino.

lboue avatar lboue commented on May 19, 2024

Here's a sample implementation: esp-matter Generic Switch.
This example creates a Generic Switch device using the ESP Matter data model

from arduino.

lboue avatar lboue commented on May 19, 2024

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.

lboue avatar lboue commented on May 19, 2024

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:

  1. Tuo Smart Button by TUO Accessories
  2. Kasa Matter Smart Dimmer Switch by Kasa

from arduino.

lboue avatar lboue commented on May 19, 2024

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.

silabs-bozont avatar silabs-bozont commented on May 19, 2024

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.

lboue avatar lboue commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.