From 45a86dd125e60c0857c30e766a263be7e3f86775 Mon Sep 17 00:00:00 2001 From: Nate Kooistra Date: Mon, 5 Aug 2024 12:34:43 -0500 Subject: [PATCH] [HCS-5080] Add hub drivers for TV, Fridge, Soundbar --- drivers/SmartThings/hub/config.yml | 4 ++++ drivers/SmartThings/hub/fingerprints.yml | 17 +++++++++++++++++ drivers/SmartThings/hub/profiles/hub-thing.yml | 13 +++++++++++++ .../hub/profiles/refrigerator-hub.yml | 17 +++++++++++++++++ .../SmartThings/hub/profiles/soundbar-hub.yml | 17 +++++++++++++++++ drivers/SmartThings/hub/profiles/tv-hub.yml | 17 +++++++++++++++++ drivers/SmartThings/hub/src/init.lua | 0 7 files changed, 85 insertions(+) create mode 100644 drivers/SmartThings/hub/config.yml create mode 100644 drivers/SmartThings/hub/fingerprints.yml create mode 100644 drivers/SmartThings/hub/profiles/hub-thing.yml create mode 100644 drivers/SmartThings/hub/profiles/refrigerator-hub.yml create mode 100644 drivers/SmartThings/hub/profiles/soundbar-hub.yml create mode 100644 drivers/SmartThings/hub/profiles/tv-hub.yml create mode 100644 drivers/SmartThings/hub/src/init.lua diff --git a/drivers/SmartThings/hub/config.yml b/drivers/SmartThings/hub/config.yml new file mode 100644 index 0000000000..72b4519bca --- /dev/null +++ b/drivers/SmartThings/hub/config.yml @@ -0,0 +1,4 @@ +name: 'hub' +packageKey: 'hub' +description: "SmartThings driver for Hub devices" +vendorSupportInformation: "https://support.smartthings.com" diff --git a/drivers/SmartThings/hub/fingerprints.yml b/drivers/SmartThings/hub/fingerprints.yml new file mode 100644 index 0000000000..4145d94141 --- /dev/null +++ b/drivers/SmartThings/hub/fingerprints.yml @@ -0,0 +1,17 @@ +hub: + - id: "tv-hub" + deviceLabel: SmartThings Hub + hardwareType: SAMSUNG-TV-TIZEN-OPEN + deviceProfileName: tv-hub + - id: "soundbar-hub" + deviceLabel: Harman Kardon Virtuo + hardwareType: HARMAN_SPEAKER_LINUX_OPEN_HUB + deviceProfileName: soundbar-hub + - id: "refrigerator-hub" + deviceLabel: SmartThings Hub + hardwareType: SAMSUNG_DA_REFRIGERATOR_HUB + deviceProfileName: refrigerator-hub +hubThing: + - id: "hub-thing" + deviceLabel: SmartThings Hub + deviceProfileName: hub-thing diff --git a/drivers/SmartThings/hub/profiles/hub-thing.yml b/drivers/SmartThings/hub/profiles/hub-thing.yml new file mode 100644 index 0000000000..1416fe6459 --- /dev/null +++ b/drivers/SmartThings/hub/profiles/hub-thing.yml @@ -0,0 +1,13 @@ +name: hub-thing +components: + - id: main + label: main + capabilities: + - id: bridge + version: 1 + ephemeral: false + categories: + - name: Hub + categoryType: manufacturer +metadata: + ocfDeviceType: x.com.st.d.hub \ No newline at end of file diff --git a/drivers/SmartThings/hub/profiles/refrigerator-hub.yml b/drivers/SmartThings/hub/profiles/refrigerator-hub.yml new file mode 100644 index 0000000000..f0947faf04 --- /dev/null +++ b/drivers/SmartThings/hub/profiles/refrigerator-hub.yml @@ -0,0 +1,17 @@ +name: refrigerator-hub +components: + - id: main + label: main + capabilities: + - id: bridge + version: 1 + ephemeral: false + categories: + - name: Hub + categoryType: manufacturer +config: + icons: + - badge: + - iconUrl: badge://refrigerator +metadata: + ocfDeviceType: x.com.st.d.hub \ No newline at end of file diff --git a/drivers/SmartThings/hub/profiles/soundbar-hub.yml b/drivers/SmartThings/hub/profiles/soundbar-hub.yml new file mode 100644 index 0000000000..9d692551f4 --- /dev/null +++ b/drivers/SmartThings/hub/profiles/soundbar-hub.yml @@ -0,0 +1,17 @@ +name: soundbar-hub +components: + - id: main + label: main + capabilities: + - id: bridge + version: 1 + ephemeral: false + categories: + - name: Hub + categoryType: manufacturer +config: + icons: + - badge: + - iconUrl: badge://soundbar +metadata: + ocfDeviceType: x.com.st.d.hub \ No newline at end of file diff --git a/drivers/SmartThings/hub/profiles/tv-hub.yml b/drivers/SmartThings/hub/profiles/tv-hub.yml new file mode 100644 index 0000000000..de51b782bd --- /dev/null +++ b/drivers/SmartThings/hub/profiles/tv-hub.yml @@ -0,0 +1,17 @@ +name: tv-hub +components: + - id: main + label: main + capabilities: + - id: bridge + version: 1 + ephemeral: false + categories: + - name: Hub + categoryType: manufacturer +config: + icons: + - badge: + - iconUrl: badge://tv +metadata: + ocfDeviceType: x.com.st.d.hub \ No newline at end of file diff --git a/drivers/SmartThings/hub/src/init.lua b/drivers/SmartThings/hub/src/init.lua new file mode 100644 index 0000000000..e69de29bb2