From ad373af414c56410585130b271cb188cf5413472 Mon Sep 17 00:00:00 2001 From: Hykario <63258431+Hykario@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:42:22 +0200 Subject: [PATCH] feat(add): 501.40 (#7947) * Add support for Paulmann 501.40 RGB remote control * fix missing Semikolon * Revert "fix missing Semikolon" This reverts commit 7bf2ab7cf937eaa1780d52b5b6f3520be11f3d4a. * fix Semicolon instead of comma * fix spaces instead of tab * pretty write --------- Co-authored-by: Hykario --- src/devices/paulmann.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/devices/paulmann.ts b/src/devices/paulmann.ts index 2562984173981..b43d23930beca 100644 --- a/src/devices/paulmann.ts +++ b/src/devices/paulmann.ts @@ -1,6 +1,6 @@ import fz from '../converters/fromZigbee'; import * as exposes from '../lib/exposes'; -import {light, onOff} from '../lib/modernExtend'; +import {light, onOff, deviceEndpoints, battery, commandsOnOff, commandsLevelCtrl, commandsColorCtrl, commandsScenes} from '../lib/modernExtend'; import {DefinitionWithExtend} from '../lib/types'; const e = exposes.presets; @@ -244,6 +244,20 @@ const definitions: DefinitionWithExtend[] = [ ]), ], }, + { + zigbeeModel: ['501.40'], + model: '501.40', + vendor: 'Paulmann', + description: 'RGB remote control', + extend: [ + deviceEndpoints({endpoints: {'1': 1, '2': 2, '3': 3, '4': 4}}), + battery(), + commandsOnOff(), + commandsLevelCtrl(), + commandsColorCtrl(), + commandsScenes(), + ], + }, { fingerprint: [{modelID: 'RGB', manufacturerName: 'Paulmann Licht GmbH'}], model: '150257',