Skip to content

Commit

Permalink
Merge pull request #954 from SmartThingsCommunity/cherry-pick/matter-…
Browse files Browse the repository at this point in the history
…multi-button

Add multi-button support for matter button devices.
  • Loading branch information
greens authored Sep 12, 2023
2 parents b24d7b9 + aa9f38a commit 06baa1f
Show file tree
Hide file tree
Showing 14 changed files with 1,542 additions and 175 deletions.
2 changes: 1 addition & 1 deletion drivers/SmartThings/matter-button/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ matterGeneric:
deviceLabel: Matter Button
deviceTypes:
- id: 0x000F
deviceProfileName: button-profile
deviceProfileName: button-battery # err on the side of buttons having batteries, it'll get fixed in the driver
20 changes: 20 additions & 0 deletions drivers/SmartThings/matter-button/profiles/2-button-battery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 2-button-battery
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
18 changes: 18 additions & 0 deletions drivers/SmartThings/matter-button/profiles/2-button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 2-button
components:
- id: main
capabilities:
- id: button
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
32 changes: 32 additions & 0 deletions drivers/SmartThings/matter-button/profiles/4-button-battery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 4-button-battery
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
30 changes: 30 additions & 0 deletions drivers/SmartThings/matter-button/profiles/4-button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 4-button
components:
- id: main
capabilities:
- id: button
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
57 changes: 57 additions & 0 deletions drivers/SmartThings/matter-button/profiles/8-button-battery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: 8-button-battery
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button5
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button6
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button7
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button8
capabilities:
- id: button
version: 1
categories:
- name: RemoteController

55 changes: 55 additions & 0 deletions drivers/SmartThings/matter-button/profiles/8-button.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 8-button
components:
- id: main
capabilities:
- id: button
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
- id: button2
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button3
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button4
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button5
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button6
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button7
capabilities:
- id: button
version: 1
categories:
- name: RemoteController
- id: button8
capabilities:
- id: button
version: 1
categories:
- name: RemoteController

14 changes: 14 additions & 0 deletions drivers/SmartThings/matter-button/profiles/button-battery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: button-battery
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
version: 1
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
categories:
- name: RemoteController
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: button-profile
name: button
components:
- id: main
capabilities:
- id: button
version: 1
- id: battery
- id: firmwareUpdate
version: 1
- id: refresh
version: 1
Expand Down
Loading

0 comments on commit 06baa1f

Please sign in to comment.