Skip to content

Commit 4ce95db

Browse files
authored
feat: Add external switch type extension to Samotech devices and move Sunricher extend functions to a unified module (#8940)
1 parent 176fd73 commit 4ce95db

File tree

3 files changed

+863
-849
lines changed

3 files changed

+863
-849
lines changed

src/devices/samotech.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as m from "../lib/modernExtend";
2+
import * as sunricher from "../lib/sunricher";
23
import type {DefinitionWithExtend} from "../lib/types";
34

45
export const definitions: DefinitionWithExtend[] = [
@@ -53,7 +54,7 @@ export const definitions: DefinitionWithExtend[] = [
5354
model: "SM323_v2",
5455
vendor: "Samotech",
5556
description: "Zigbee retrofit dimmer 250W",
56-
extend: [m.light({configureReporting: true}), m.electricityMeter()],
57+
extend: [m.light({configureReporting: true}), m.electricityMeter(), sunricher.extend.externalSwitchType()],
5758
},
5859
{
5960
zigbeeModel: ["SM324"],

0 commit comments

Comments
 (0)