Skip to content

Commit

Permalink
Merge pull request #112 from Burki24/main-1
Browse files Browse the repository at this point in the history
Fix: Z2M.action.869d1272 & Z2M.action.ec8cf04f
  • Loading branch information
Schnittcher authored Sep 5, 2023
2 parents ae6edae + 7d03e4c commit 1e6175c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Device/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,11 @@
"Poor": "Schlecht",
"Unknown": "Unbekannt",
"Brightness Step Down": "Helligkeit Schrittweise senken",
"Brightness Step Up": "Hellgikeit Schrittweise erhöhen"
"Brightness Step Up": "Hellgikeit Schrittweise erhöhen",
"Up Press Release": "Aufwärts losgelassen",
"Down Press Release": "Abwärts losgelassen",
"On Press Release": "An losgelassen",
"Off Press Release": "Aus losgelassen"
}
}
}
5 changes: 5 additions & 0 deletions libs/Zigbee2MQTTHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2317,18 +2317,23 @@ private function registerVariableProfile($expose)
break;
case 'Z2M.action.869d1272':
case 'Z2M.action.ec8cf04f':
case 'Z2M.action.a084bd4e':
if (!IPS_VariableProfileExists($ProfileName)) {
$this->RegisterProfileStringEx($ProfileName, 'Information', '', '', [
['on_press', $this->Translate('On Press'), '', 0x00FF00],
['on_press_release', $this->Translate('On Press Release'), '', 0x00FF00],
['on_hold', $this->Translate('On Hold'), '', 0x00FF00],
['on_hold_release', $this->Translate('On Hold Release'), '', 0x00FF00],
['up_press', $this->Translate('Up Press'), '', 0x00FF00],
['up_press_release', $this->Translate('Up Press Release'), '', 0x00FF00],
['up_hold', $this->Translate('Up Hold'), '', 0x00FF00],
['up_hold_release', $this->Translate('Up Hold Release'), '', 0x00FF00],
['down_press', $this->Translate('Down Press'), '', 0x00FF00],
['down_press_release', $this->Translate('Down Press Release'), '', 0x00FF00],
['down_hold', $this->Translate('Down Hold'), '', 0x00FF00],
['down_hold_release', $this->Translate('Down Hold Release'), '', 0x00FF00],
['off_press', $this->Translate('Off Press'), '', 0x00FF00],
['off_press_release', $this->Translate('Off Press Release'), '', 0x00FF00],
['off_hold', $this->Translate('Off Hold'), '', 0x00FF00],
['off_hold_release', $this->Translate('Off Hold Release'), '', 0x00FF00]
]);
Expand Down

0 comments on commit 1e6175c

Please sign in to comment.