From fcc57bda0a9ac60c629c3f2a1df5977b86f182cb Mon Sep 17 00:00:00 2001 From: cy248740603 <30711596+cy248740603@users.noreply.github.com> Date: Tue, 6 Feb 2024 23:11:09 +0800 Subject: [PATCH] Add Smartvill Switch drivers (#1191) * Add Smartvill Switch drivers * Modify the code according to the specifications. * Correct an oversight * use 2 spaces for our tab width * Change to multi_switch_no_master * Add a comment --- .../zigbee-switch/fingerprints.yml | 31 +++++++++++++++++++ .../src/multi-switch-no-master/init.lua | 5 +++ 2 files changed, 36 insertions(+) diff --git a/drivers/SmartThings/zigbee-switch/fingerprints.yml b/drivers/SmartThings/zigbee-switch/fingerprints.yml index e229e2e603..e1d212be01 100644 --- a/drivers/SmartThings/zigbee-switch/fingerprints.yml +++ b/drivers/SmartThings/zigbee-switch/fingerprints.yml @@ -1,4 +1,35 @@ zigbeeManufacturer: + #SMARTvill + - id: "SMARTvill/SLA06" + deviceLabel: "SMARTvill Switch 1" + manufacturer: SMARTvill + model: SLA06 + deviceProfileName: basic-switch + - id: "SMARTvill/SLA05" + deviceLabel: "SMARTvill Switch 1" + manufacturer: SMARTvill + model: SLA05 + deviceProfileName: basic-switch + - id: "SMARTvill/SLA04" + deviceLabel: "SMARTvill Switch 1" + manufacturer: SMARTvill + model: SLA04 + deviceProfileName: basic-switch + - id: "SMARTvill/SLA03" + deviceLabel: "SMARTvill Switch 1" + manufacturer: SMARTvill + model: SLA03 + deviceProfileName: basic-switch + - id: "SMARTvill/SLA02" + deviceLabel: "SMARTvill Switch 1" + manufacturer: SMARTvill + model: SLA02 + deviceProfileName: basic-switch + - id: "SMARTvill/SLA01" + deviceLabel: SMARTvill Switch 1 + manufacturer: SMARTvill + model: SLA01 + deviceProfileName: basic-switch #HANSSEM SMART SWITCH - id: "Winners/LSS1-101" deviceLabel: HS Switch 1(1 way) diff --git a/drivers/SmartThings/zigbee-switch/src/multi-switch-no-master/init.lua b/drivers/SmartThings/zigbee-switch/src/multi-switch-no-master/init.lua index d4d69f3ece..d53b27f18b 100644 --- a/drivers/SmartThings/zigbee-switch/src/multi-switch-no-master/init.lua +++ b/drivers/SmartThings/zigbee-switch/src/multi-switch-no-master/init.lua @@ -36,6 +36,11 @@ local MULTI_SWITCH_NO_MASTER_FINGERPRINTS = { { mfr = "eWeLink", model = "ZB-SW02", children = 1 }, { mfr = "eWeLink", model = "ZB-SW03", children = 2 }, { mfr = "eWeLink", model = "ZB-SW04", children = 3 }, + { mfr = "SMARTvill", model = "SLA02", children = 1 }, + { mfr = "SMARTvill", model = "SLA03", children = 2 }, + { mfr = "SMARTvill", model = "SLA04", children = 3 }, + { mfr = "SMARTvill", model = "SLA05", children = 4 }, + { mfr = "SMARTvill", model = "SLA06", children = 5 }, { mfr = "ShinaSystem", model = "SBM300Z2", children = 1 }, { mfr = "ShinaSystem", model = "SBM300Z3", children = 2 }, { mfr = "ShinaSystem", model = "SBM300Z4", children = 3 },