Skip to content

Commit

Permalink
Release 3.0.42
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Apr 20, 2021
1 parent 1a35532 commit 257e7b4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,8 @@
},
"3.0.41": {
"en": "Added an \"Input x Has Changed\" trigger card for devices with inputs. Also added user friendly names for events in action event trigger cards and fixed an issue where Shelly Uni did not create a device for the second relay channel. Also renamed the temperature capability of Shelly Plug S to device temperature and remove obsolete input_1 capability of Shelly Button 1. Lastely deprecated the combined temperature and dim action card for the Shelly DUO as the can be achieved with two built in action cards."
},
"3.0.42": {
"en": "Fix issue with action event trigger card not firing."
}
}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"Shelly Vintage"
]
},
"version": "3.0.41",
"version": "3.0.42",
"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 @@ -63,7 +63,7 @@
"Shelly Vintage"
]
},
"version": "3.0.41",
"version": "3.0.42",
"compatibility": ">=5.0.0",
"author": {
"name": "Jelger Haanstra",
Expand Down
6 changes: 3 additions & 3 deletions drivers/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ class ShellyDevice extends Homey.Device {
}
break;
case 'inputEvent0':
if (this.hasCapability('input_1') && this.hasCapability('input_2') && !this.getStoreValue('type') === 'SHIX3-1') {
if (this.hasCapability('input_1') && this.hasCapability('input_2')) {
let actionEvent1 = this.util.getActionEventDescription(value) + '_1';
this.setStoreValue('actionEvent1', actionEvent1);
} else {
Expand All @@ -894,7 +894,7 @@ class ShellyDevice extends Homey.Device {
}
break;
case 'inputEvent1':
if (this.hasCapability('input_1') && this.hasCapability('input_2') && !this.getStoreValue('type') === 'SHIX3-1') {
if (this.hasCapability('input_1') && this.hasCapability('input_2')) {
let actionEvent2 = this.util.getActionEventDescription(value) + '_2';
this.setStoreValue('actionEvent2', actionEvent2);
} else {
Expand All @@ -903,7 +903,7 @@ class ShellyDevice extends Homey.Device {
}
break;
case 'inputEvent2':
let actionEvent3 = this.util.getActionEventDescription(value);
let actionEvent3 = this.util.getActionEventDescription(value) + '_3';
this.setStoreValue('actionEvent3', actionEvent3);
break;
case 'inputEventCounter0':
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fetch = require('node-fetch');
const fs = require('fs');
const tinycolor = require("tinycolor2");
const actionEvents = {
const actionEventsCoap = {
'S': 'shortpush',
'L': 'longpush',
'SS': 'double_shortpush',
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.41",
"version": "3.0.42",
"description": "Homey app for controlling Shelly devices",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 257e7b4

Please sign in to comment.