Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions src/devices/schneider_electric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,34 +852,24 @@ export const definitions: DefinitionWithExtend[] = [
model: "WDE002386",
vendor: "Schneider Electric",
description: "Push button dimmer",
fromZigbee: [fz.on_off, fz.brightness, fz.level_config, fz.lighting_ballast_configuration],
toZigbee: [tz.light_onoff_brightness, tz.level_config, tz.ballast_config],
extend: [indicatorMode("smart"), m.identify()],
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", "rl_led"])
.withDescription("Sets dimming mode to autodetect or fixed RL_LED mode (max load is reduced in RL_LED)"),
extend: [
m.light({
effect: false,
powerOnBehavior: true,
configureReporting: true,
levelConfig: {features: ["on_level", "current_level_startup"]},
}),
m.lightingBallast(),
m.identify(),
schneiderElectricExtend.dimmingMode(),
indicatorMode(),
],
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(3);
await reporting.bind(endpoint, coordinatorEndpoint, ["genOnOff", "genLevelCtrl", "lightingBallastCfg"]);
await reporting.onOff(endpoint);
await reporting.brightness(endpoint);
},
endpoint: (device) => {
return {smart: 21};
},
},
{
zigbeeModel: ["CH/DIMMER/1"],
Expand Down