Skip to content

Commit

Permalink
Release 3.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Mar 20, 2021
1 parent 3c7bc4a commit 7cfcfa4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,8 @@
},
"3.0.27": {
"en": "Switch to unicast for Shelly devices with firmware 1.10.0 or higher for better network compatibility (please enable CoAP again in the app settings if you have previously disabled it), also added HTTP polling every minute as backup and fixed an issue with pairing of the Shelly Vintage."
},
"3.0.28": {
"en": "Fixed an issue with the Shelly Dimmer 1 (added a workaround due to not using semantic versioning in firmware version of the Shelly Dimmer 1)"
}
}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"Shelly motion"
]
},
"version": "3.0.27",
"version": "3.0.28",
"compatibility": ">=5.0.0",
"author": {
"name": "Jelger Haanstra",
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"Shelly motion"
]
},
"version": "3.0.27",
"version": "3.0.28",
"compatibility": ">=5.0.0",
"author": {
"name": "Jelger Haanstra",
Expand Down
6 changes: 2 additions & 4 deletions drivers/shellydimmer/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const Homey = require('homey');
const Util = require('/lib/util.js');
const semver = require('semver');
const callbacks = [
'shortpush',
'longpush'
Expand Down Expand Up @@ -192,12 +191,11 @@ class ShellyDimmerDevice extends Homey.Device {
}

// update unicast
const version = result.update.old_version.match(/v([0-9a-z.-]+)/)[1];
if (semver.gt(version, '1.9.6') && !this.getStoreValue('unicast') === true) {
if (!this.getStoreValue('unicast') === true) {
const result = await this.util.setUnicast(this.getSetting('address'), this.getSetting('username'), this.getSetting('password'));
if (result === 'OK') {
this.setStoreValue("unicast", true);
}
}
}

} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloud.shelly",
"version": "3.0.27",
"version": "3.0.28",
"description": "Homey app for controlling Shelly devices",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 7cfcfa4

Please sign in to comment.