-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combined SimpleBlinds and SimpleBlinds2
- Manufacturer types possible (case-insensitive): "type1" (simpleBlinds) & "type2" (simpleBlinds2) -- By default the device defaults to type1 if it's not specified.
- Loading branch information
Showing
1 changed file
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f85c4e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let _cmdClose = '2';
if (this._isType1()) {
let _cmdOpen = '2';
}
else if (this._isType2()) {
let _cmdOpen = 'off';
}
else {
let _cmdOpen = '2';
}
if (this.device.context.cmdClose) {
_cmdClose = ('' + this.device.context.cmdClose).trim();
}