Skip to content

Commit

Permalink
fix(dingz): 🐛 further tweaks to lamellas
Browse files Browse the repository at this point in the history
- fixes #419 (again :-))
  • Loading branch information
johannrichard committed Oct 24, 2022
1 parent ea3eeab commit c05a289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dingzAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,14 +980,14 @@ export class DingzAccessory extends DingzDaBaseAccessory {
'Set Characteristic TargetHorizontalTiltAngle on ',
index,
'->',
angle,
`${angle}°`,
);
const id = this.getWindowCoveringId(index);
if (this.dingzStates.WindowCovers[id]) {
await this.setWindowCovering({
id: id,
blind: this.dingzStates.WindowCovers[id].position,
lamella: angle as number,
lamella: ((angle as number) / 90) * 100, // FIXES #419, we must convert ° to %
callback: callback,
});
}
Expand Down

0 comments on commit c05a289

Please sign in to comment.