From 485c386b61938354735ce7aef8bf1b718bf4becf Mon Sep 17 00:00:00 2001 From: brainstormi Date: Thu, 2 Jan 2025 19:04:07 +0100 Subject: [PATCH] Implement PowerOnBehaviour for Aqara T1M lamp (CL-L02D) --- src/devices/lumi.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/devices/lumi.ts b/src/devices/lumi.ts index 06abeed29e956..dfed086701b48 100644 --- a/src/devices/lumi.ts +++ b/src/devices/lumi.ts @@ -4460,6 +4460,14 @@ const definitions: DefinitionWithExtend[] = [ lumiLight({colorTemp: true, endpointNames: ['white']}), lumiLight({colorTemp: true, deviceTemperature: false, powerOutageCount: false, color: {modes: ['xy', 'hs']}, endpointNames: ['rgb']}), lumiZigbeeOTA(), + enumLookup({ + name: 'power_on_behaviour', + lookup: {on: 0, previous: 1, off: 2}, + cluster: 'manuSpecificLumi', + attribute: {ID: 0x0517, type: 0x20}, + description: 'Controls the behavior when the device is powered on after power loss', + zigbeeCommandOptions: {manufacturerCode}, + }), ], }, {