From 0cbe08679346d620005d294ec1685aff7e3b98df Mon Sep 17 00:00:00 2001 From: Burki24 Date: Thu, 11 Apr 2024 18:27:10 +0200 Subject: [PATCH] ADD: Z2M.action.49455f77 Belongs to: https://community.symcon.de/t/modul-zigbee2mqtt/49507/3356?u=burki24 --- Device/locale.json | 11 +++++++++++ libs/Zigbee2MQTTHelper.php | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/Device/locale.json b/Device/locale.json index 5d54bc11..c0aba4ec 100644 --- a/Device/locale.json +++ b/Device/locale.json @@ -101,13 +101,20 @@ "Brightness L2": "Helligkeit L2", "Brightness Level": "Helligkeitsgrad", "Brightness move down": "Helligkeit senken", + "Brightness Move Down 1": "Helligkeit Schrittweise senken 1", + "Brightness Move Down 2": "Helligkeit Schrittweise senken 2", "Brightness Move To Level": "Helligkeit auf Wert setzen", "Brightness move up": "Helligkeit erhöhen", + "Brightness Move Up 1": "Helligkeit Schrittweise erhöhen 1", + "Brightness Move Up 2": "Helligkeit Schrittweise erhöhen 2", + "Brightness RGB": "Helligkeit RGB", "Brightness State": "Helligkeitszustand", "Brightness Step Down": "Helligkeit Schrittweise senken", "Brightness Step Up": "Hellgikeit Schrittweise erhöhen", "Brightness Stop": "Helligkeit Stopp", + "Brightness Move Stop 1": "Helligkeit Schrittweise Stopp 1", + "Brightness Move Stop 2": "Helligkeit Schrittweise Stopp 2", "Brightness Up Click": "Helligkeit erhöhen Drücken", "Brightness Up click": "Helligkeit erhöhen gedrückt", "Brightness Up Hold": "Helligkeit erhöhen Halten", @@ -502,6 +509,8 @@ "Off Press Release": "Aus losgelassen", "Off Press": "Aus gedrückt", "Off": "Aus", + "Off 1": "Aus 1", + "Off 2": "Aus 2", "Off/On": "Aus/An", "Office": "Büro", "On Hold Release": "An losgelassen", @@ -509,6 +518,8 @@ "On Press Release": "An losgelassen", "On Press": "An gedrückt", "On": "An", + "On 1": "An 1", + "On 2": "An 2", "On/Off": "An/Aus", "Online": "Online", "Open window detected": "Offenes Fenster entdeckt", diff --git a/libs/Zigbee2MQTTHelper.php b/libs/Zigbee2MQTTHelper.php index da9b1cd1..d765dcf6 100644 --- a/libs/Zigbee2MQTTHelper.php +++ b/libs/Zigbee2MQTTHelper.php @@ -2837,6 +2837,22 @@ private function registerVariableProfile($expose) ]); } break; + case 'Z2M.action.49455f77': + if (!IPS_VariableProfileExists($ProfileName)) { + $this->RegisterProfileStringEx($ProfileName, 'Information', '', '', [ + ['brightness_move_down_1', $this->Translate('Brightness Move Down 1'), '', 0x00FF00], + ['brightness_move_down_2', $this->Translate('Brightness Move Down 2'), '', 0x00FF00], + ['brightness_move_stop_1', $this->Translate('Brightness Move Stop 1'), '', 0x00FF00], + ['brightness_move_stop_2', $this->Translate('Brightness Move Stop 2'), '', 0x00FF00], + ['brightness_move_up_1', $this->Translate('Brightness Move Up 1'), '', 0x00FF00], + ['brightness_move_up_2', $this->Translate('Brightness Move Up 2'), '', 0x00FF00], + ['off_1', $this->Translate('Off 1'), '', 0x00FF00], + ['off_2', $this->Translate('Off 2'), '', 0x00FF00], + ['on_1', $this->Translate('On 1'), '', 0x00FF00], + ['on_2', $this->Translate('On 2'), '', 0x00FF00] + ]); + } + break; case 'Z2M.action.177702c6': if (!IPS_VariableProfileExists($ProfileName)) { $this->RegisterProfileStringEx($ProfileName, 'Information', '', '', [