Skip to content

Commit

Permalink
feat(add): MEG5116-0300/MEG5171-0000 (#6194)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenreaux authored Sep 24, 2023
1 parent b7ec8a3 commit 9f31dbb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/devices/schneider_electric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,27 @@ const definitions: Definition[] = [
await reporting.currentPositionLiftPercentage(endpoint);
},
},
{
zigbeeModel: ['1GANG/DIMMER/1'],
model: 'MEG5116-0300/MEG5171-0000',
vendor: 'Schneider Electric',
description: 'Merten MEG5171 PlusLink Dimmer insert with Merten Wiser System M Push Button (1fold)',
fromZigbee: [fz.on_off, fz.brightness, fz.level_config, fz.wiser_lighting_ballast_configuration],
toZigbee: [tz.light_onoff_brightness, tz.level_config, tz.ballast_config, tz.wiser_dimmer_mode],
exposes: [e.light_brightness().withLevelConfig(),
e.numeric('ballast_minimum_level', ea.ALL).withValueMin(1).withValueMax(254)
.withDescription('Specifies the minimum light output of the ballast'),
e.numeric('ballast_maximum_level', ea.ALL).withValueMin(1).withValueMax(254)
.withDescription('Specifies the maximum light output of the ballast'),
e.enum('dimmer_mode', ea.ALL, ['auto', 'rc', 'rl', 'rl_led'])
.withDescription('Sets dimming mode to autodetect or fixed RC/RL/RL_LED mode (max load is reduced in RL_LED)')],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(3);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'lightingBallastCfg']);
await reporting.onOff(endpoint);
await reporting.brightness(endpoint);
},
},
{
zigbeeModel: ['1GANG/SWITCH/1'],
model: 'MEG5161-0000',
Expand Down

0 comments on commit 9f31dbb

Please sign in to comment.