Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Nov 14, 2018
1 parent de81829 commit b58158e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion APPSTORE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Add your Shelly device in Homey just like you would add any other device. Enter
For support please use the official support topic on the forum [here](https://community.athom.com/t/696).

## Changelog
### 2018-11-xx - v1.2.0
### 2018-11-14 - v1.2.0
* NEW: add support for Shelly2 devices that are configured as roller shutter device
* NEW: added an action card for controling roller shutters for a specified duration
1 change: 0 additions & 1 deletion drivers/shelly2-rollershutter/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class Shelly2RollerShutterDevice extends Homey.Device {

// LISTENERS FOR UPDATING CAPABILITIES
onCapabilityWindowcoveringsState(value, opts, callback) {
console.log('windowcoveringstate_capability set to: ', value);
if (value == 'idle') {
util.sendCommand('/roller/0?go=stop', this.getSetting('address'), this.getSetting('username'), this.getSetting('password'));
} else if (value == 'up') {
Expand Down
3 changes: 0 additions & 3 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ exports.sendCommand = function (endpoint, address, username, password) {
.then(checkStatus)
.then(res => res.json())
.then(json => {
console.log('send command result is: ');
console.log(json);
return resolve(json);
})
.catch(err => {
console.log(err);
return reject(err);
});
})
Expand Down

0 comments on commit b58158e

Please sign in to comment.