Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature (Hub Driver) Adding profiles and fingerprints CHAD-14786 #1896

Merged
merged 6 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions drivers/SmartThings/hub/fingerprints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ hub:
deviceLabel: SmartThings Hub
hardwareType: SAMSUNG_DA_REFRIGERATOR_HUB
deviceProfileName: refrigerator-hub
- id: "washer-dryer-hub"
deviceLabel: SmartThings Hub
hardwareType:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, hardwaretype is defined in cloud based on https://smartthings.atlassian.net/wiki/spaces/HUBPLT/pages/26771622/Hub+Hardware+IDs.

I think it could be guessing from previous naming rules.

SAMSUNG_DA_WASHER_DRYER_HUB
SAMSUNG_DA_COOKTOP_HUB

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @nathankooistra Can you please help to define above hardware types?

SAMSUNG_DA_WASHER_DRYER_HUB
SAMSUNG_DA_COOKTOP_HUB

Regarding badge icons(badge icon url), it is undergoing below ticket.
https://smartthings.atlassian.net/browse/CAPI-6509

deviceProfileName: washer-dryer-hub
- id: "cooktop-hub"
deviceLabel: SmartThings Hub
hardwareType:
deviceProfileName: cooktop-hub
hubThing:
- id: "hub-thing"
deviceLabel: SmartThings Hub
Expand Down
33 changes: 33 additions & 0 deletions drivers/SmartThings/hub/profiles/cooktop-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: cooktop-hub
components:
- id: main
label: main
capabilities:
- id: bridge
version: 1
ephemeral: false
categories:
- name: Hub
categoryType: manufacturer
deviceConfig:
icons:
- group: main
badge:
- iconUrl: 'badge://cooktop'
dashboard:
states:
- component: main
capability: bridge
version: 1
dpInfo:
- os: ios
dpUri: 'plugin://com.samsung.ios.plugin.stplugin/assets/files/index.html'
- os: android
dpUri: 'plugin://com.samsung.android.plugin.stplugin'
- os: web
dpUri: 'wwst://com.samsung.one.plugin.stplugin'
arguments:
- key: int_hub
value: 'wwst://com.samsung.one.plugin.chargerplugin'
metadata:
ocfDeviceType: x.com.st.d.hub
33 changes: 33 additions & 0 deletions drivers/SmartThings/hub/profiles/washer-dryer-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: washer-dryer-hub
components:
- id: main
label: main
capabilities:
- id: bridge
version: 1
ephemeral: false
categories:
- name: Hub
categoryType: manufacturer
deviceConfig:
icons:
- group: main
badge:
- iconUrl: 'badge://washer_dryer'
dashboard:
states:
- component: main
capability: bridge
version: 1
dpInfo:
- os: ios
dpUri: 'plugin://com.samsung.ios.plugin.stplugin/assets/files/index.html'
- os: android
dpUri: 'plugin://com.samsung.android.plugin.stplugin'
- os: web
dpUri: 'wwst://com.samsung.one.plugin.stplugin'
arguments:
- key: int_hub
value: 'wwst://com.samsung.one.plugin.chargerplugin'
metadata:
ocfDeviceType: x.com.st.d.hub
Loading