Skip to content

Commit

Permalink
fix(ignore): Updated Legrand 067776(A) reporting
Browse files Browse the repository at this point in the history
* Added manufacturer code to reporting
  • Loading branch information
FabianMangold committed Oct 24, 2023
1 parent 4c1a916 commit 2927466
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/devices/legrand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,14 @@ const definitions: Definition[] = [
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genBinaryInput', 'closuresWindowCovering', 'genIdentify']);
await reporting.currentPositionLiftPercentage(endpoint, {max: 120});
await reporting.currentPositionTiltPercentage(endpoint, {max: 120});
let p = reporting.payload('currentPositionLiftPercentage', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});

Check failure on line 157 in src/devices/legrand.ts

View workflow job for this annotation

GitHub Actions / ci

Trailing spaces not allowed
p = reporting.payload('currentPositionTiltPercentage', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});

p = reporting.payload('calibrationMode', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});
},
},
{
Expand Down Expand Up @@ -209,8 +215,14 @@ const definitions: Definition[] = [
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genBinaryInput', 'closuresWindowCovering', 'genIdentify']);
await reporting.currentPositionLiftPercentage(endpoint, {max: 120});
await reporting.currentPositionTiltPercentage(endpoint, {max: 120});
let p = reporting.payload('currentPositionLiftPercentage', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});

Check failure on line 220 in src/devices/legrand.ts

View workflow job for this annotation

GitHub Actions / ci

Trailing spaces not allowed
p = reporting.payload('currentPositionTiltPercentage', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});

p = reporting.payload('calibrationMode', 1, 120, 1);
await endpoint.configureReporting('closuresWindowCovering', p, {manufacturerCode: 4129});
},
},
{
Expand Down

0 comments on commit 2927466

Please sign in to comment.