From 2349f59ed588c3605837a94c1ddb36b0985e733d Mon Sep 17 00:00:00 2001 From: Robert Nisipeanu Date: Sat, 8 Feb 2025 15:19:39 +0200 Subject: [PATCH] feat(sonoff): ZBM5 toggle action --- src/devices/sonoff.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/devices/sonoff.ts b/src/devices/sonoff.ts index 4f69180c18561..0041f8b0973b0 100644 --- a/src/devices/sonoff.ts +++ b/src/devices/sonoff.ts @@ -1489,6 +1489,7 @@ const definitions: DefinitionWithExtend[] = [ ota: true, extend: [ m.deviceEndpoints({endpoints: {l1: 1}}), + m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1']}), m.onOff(), sonoffExtend.addCustomClusterEwelink(), m.enumLookup({ @@ -1526,6 +1527,7 @@ const definitions: DefinitionWithExtend[] = [ ota: true, extend: [ m.deviceEndpoints({endpoints: {l1: 1, l2: 2}}), + m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1', 'l2']}), m.onOff({endpointNames: ['l1', 'l2']}), sonoffExtend.addCustomClusterEwelink(), m.enumLookup({ @@ -1567,6 +1569,7 @@ const definitions: DefinitionWithExtend[] = [ ota: true, extend: [ m.deviceEndpoints({endpoints: {l1: 1, l2: 2, l3: 3}}), + m.commandsOnOff({commands: ['toggle'], endpointNames: ['l1', 'l2', 'l3']}), m.onOff({endpointNames: ['l1', 'l2', 'l3']}), sonoffExtend.addCustomClusterEwelink(), m.enumLookup({