Skip to content

Commit

Permalink
feat(add): 501.40 (#7947)
Browse files Browse the repository at this point in the history
* Add support for Paulmann 501.40 RGB remote control

* fix missing Semikolon

* Revert "fix missing Semikolon"

This reverts commit 7bf2ab7.

* fix Semicolon instead of comma

* fix spaces instead of tab

* pretty write

---------

Co-authored-by: Hykario <[email protected]>
  • Loading branch information
Hykario and Hykario authored Sep 6, 2024
1 parent 5429c21 commit ad373af
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/devices/paulmann.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit ad373af

Please sign in to comment.