Skip to content

Commit

Permalink
fix: Fix on/off reporting and disable unsupported power on behaviour …
Browse files Browse the repository at this point in the history
…for Schneider Electric S520530W (#6011)

Disable powerOnBehaviour as it is unsupported.
  • Loading branch information
slackspace-io authored Jul 26, 2023
1 parent ae4ad5e commit 72e3107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/schneider_electric.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ module.exports = [
model: 'S520530W',
vendor: 'Schneider Electric',
description: 'Odace connectable relay switch 10A',
extend: extend.switch(),
extend: extend.switch({disablePowerOnBehavior: true}),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(21);
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
Expand Down

0 comments on commit 72e3107

Please sign in to comment.