Skip to content

Commit eb1013a

Browse files
feat: Sonoff ZBM5 add toggle action (#8772)
1 parent 3cc7e89 commit eb1013a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/devices/sonoff.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,7 @@ const definitions: DefinitionWithExtend[] = [
14891489
ota: true,
14901490
extend: [
14911491
m.deviceEndpoints({endpoints: {l1: 1}}),
1492+
m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1']}),
14921493
m.onOff(),
14931494
sonoffExtend.addCustomClusterEwelink(),
14941495
m.enumLookup({
@@ -1526,6 +1527,7 @@ const definitions: DefinitionWithExtend[] = [
15261527
ota: true,
15271528
extend: [
15281529
m.deviceEndpoints({endpoints: {l1: 1, l2: 2}}),
1530+
m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1', 'l2']}),
15291531
m.onOff({endpointNames: ['l1', 'l2']}),
15301532
sonoffExtend.addCustomClusterEwelink(),
15311533
m.enumLookup({
@@ -1567,6 +1569,7 @@ const definitions: DefinitionWithExtend[] = [
15671569
ota: true,
15681570
extend: [
15691571
m.deviceEndpoints({endpoints: {l1: 1, l2: 2, l3: 3}}),
1572+
m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1', 'l2', 'l3']}),
15701573
m.onOff({endpointNames: ['l1', 'l2', 'l3']}),
15711574
sonoffExtend.addCustomClusterEwelink(),
15721575
m.enumLookup({

0 commit comments

Comments
 (0)