Skip to content

Commit

Permalink
more device types for RollerShade
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Sep 8, 2024
1 parent 591451c commit 0f72c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/device/curtain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class Curtain extends deviceBase {

async openAPIparseStatus(): Promise<void> {
await this.debugLog('openAPIparseStatus')
await this.debugLog(`(slidePosition, battery) = OpenAPI:(${this.deviceStatus.slidePosition}, ${this.deviceStatus.battery}), current:(${this.WindowCovering.CurrentPosition}, ${this.Battery.BatteryLevel})`)
await this.debugLog(`(slidePosition, battery, version) = OpenAPI:(${this.deviceStatus.slidePosition}, ${this.deviceStatus.battery}, ${this.deviceStatus.version}), current:(${this.WindowCovering.CurrentPosition}, ${this.Battery.BatteryLevel}, ${this.accessory.context.version})`)
// CurrentPosition
this.WindowCovering.CurrentPosition = 100 - this.deviceStatus.slidePosition
await this.setMinMax()
Expand Down
1 change: 1 addition & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ export class SwitchBotPlatform implements DynamicPlatformPlugin {
'Contact Sensor': this.createContact.bind(this),
'Curtain': this.createCurtain.bind(this),
'Curtain3': this.createCurtain.bind(this),
'WoRollerShade': this.createCurtain.bind(this),
'Roller Shade': this.createCurtain.bind(this),
'Blind Tilt': this.createBlindTilt.bind(this),
'Plug': this.createPlug.bind(this),
Expand Down

0 comments on commit 0f72c32

Please sign in to comment.