Skip to content

Commit

Permalink
1.5.15
Browse files Browse the repository at this point in the history
Fixed 'The alarm or switch turned on' trigger for onoff/onoff_button capabilities.
  • Loading branch information
RonnyWinkler committed Feb 15, 2024
1 parent 01e4cac commit cc1f97b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,10 @@
"1.5.14": {
"en": "Added switch deactivation for camera device.",
"de": "Schalter-Deaktivierung für Kamerageräte ergänzt."
},
"1.5.15": {
"en": "Fixed 'The alarm or switch turned on' trigger for onoff/onoff_button capabilities.",
"de": "Fehler beim Auslösen des 'Der Alarm oder Schalter ist angegangen' Triggers für onoff/onoff_button Capabilities."
}

}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "io.home-assistant.community",
"version": "1.5.14",
"version": "1.5.15",
"compatibility": ">=8.1.0",
"sdk": 3,
"brandColor": "#0DA6EA",
Expand Down
8 changes: 4 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "io.home-assistant.community",
"version": "1.5.13",
"version": "1.5.15",
"compatibility": ">=8.1.0",
"sdk": 3,
"brandColor": "#0DA6EA",
Expand Down Expand Up @@ -4531,9 +4531,9 @@
"type": "checkbox",
"value": false,
"label": {
"en": "Disable quick action for device tile",
"de": "Deaktiviere die Schnellaktion für die Gerätekachel",
"nl": "Schakel snelle actie voor apparaattegel uit"
"en": "Disable quick action and switch",
"de": "Deaktiviere Schnellaktion und Schalter",
"nl": "Schakel snelle actie en schakelaars uit"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion drivers/basedevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ class BaseDevice extends Homey.Device {
// Standard capaility changed trigger
await this.homey.app._flowTriggerCapabilityChanged.trigger(this, tokens, state);
// additional alarm on/off trigger
if (keys[i].startsWith("alarm")){
if (keys[i].startsWith("alarm") || keys[i].startsWith("onoff")){
if (newValue){
await this.homey.app._flowTriggerGenericAlarmTrue.trigger(this, tokens, state);
}
Expand Down

0 comments on commit cc1f97b

Please sign in to comment.