Skip to content

Commit

Permalink
Release 1.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jghaanstra committed Jun 27, 2020
1 parent d60a480 commit 153faa7
Show file tree
Hide file tree
Showing 47 changed files with 2,055 additions and 112 deletions.
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,8 @@
},
"1.23.0": {
"en": "Added device ID to callback trigger card and removed the old button events card which was deprecated since the last couple of app versions."
},
"1.24.0": {
"en": "Added support for Shelly Gas and Shelly Button 1. Also added the option to add a custom device icon (.svg) during pairing for the Shelly Gas, Shelly Button 1, Shelly Plug, Shelly Plug-S, Shelly1 and Shelly 2. More devices will follow. If you want to use a custom icon for an existing devices re-pairing is required. It cant be changed after pairing."
}
}
25 changes: 25 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,31 @@ class ShellyApp extends Homey.App {
}
})

// SHELLY GAS
new Homey.FlowCardAction('actionGasSetVolume')
.register()
.registerRunListener((args, state) => {
return util.sendCommand('/settings/?set_volume='+ args.volume +'', args.device.getSetting('address'), args.device.getSetting('username'), args.device.getSetting('password'));
})

new Homey.FlowCardAction('actionGasMute')
.register()
.registerRunListener((args, state) => {
return util.sendCommand('/mute', args.device.getSetting('address'), args.device.getSetting('username'), args.device.getSetting('password'));
})

new Homey.FlowCardAction('actionGasUnmute')
.register()
.registerRunListener((args, state) => {
return util.sendCommand('/unmute', args.device.getSetting('address'), args.device.getSetting('username'), args.device.getSetting('password'));
})

new Homey.FlowCardAction('actionGasTest')
.register()
.registerRunListener((args, state) => {
return util.sendCommand('/self_test', args.device.getSetting('address'), args.device.getSetting('username'), args.device.getSetting('password'));
})

}

}
Expand Down
Loading

0 comments on commit 153faa7

Please sign in to comment.