Skip to content

Commit

Permalink
Fix Variablen und Profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnittcher committed Dec 6, 2023
1 parent af71ff3 commit 356d6b3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libs/Zigbee2MQTTHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ private function registerVariableProfile($expose)
]);
}
break;
case 'Z2M.SelfTestResult.d8a26c9b':
case ' Z2M.self_test_result.c088393d':
if (!IPS_VariableProfileExists($ProfileName)) {
$this->RegisterProfileStringEx($ProfileName, 'Information', '', '', [
['checking', $this->Translate('Checking'), '', 0xFF0000],
Expand Down Expand Up @@ -4641,7 +4641,7 @@ private function mapExposesToVariables(array $exposes)
$this->EnableAction('Z2M_LedIndication');
break;
case 'silence':
$this->RegisterVariableBoolean('Z2M_Silence', $this->Translate('Led Indication'), '~Switch');
$this->RegisterVariableBoolean('Z2M_Silence', $this->Translate('Silence'), '~Switch');
$this->EnableAction('Z2M_Silence');
break;
case 'scale_protection':
Expand Down Expand Up @@ -4811,7 +4811,7 @@ private function mapExposesToVariables(array $exposes)
$this->RegisterVariableBoolean('Z2M_Smoke', $this->Translate('Smoke'), '~Alert');
break;
case 'carbon_monoxide':
$this->RegisterVariableBoolean('Z2M_CarbonMonoxide', $this->Translate('Carbon Monoxide'), '~Alert');
$this->RegisterVariableBoolean('Z2M_CarbonMonoxide', $this->Translate('Alarm'), '~Alert');
break;
case 'heating':
$this->RegisterVariableBoolean('Z2M_Heating', $this->Translate('Heating'), '~Switch');
Expand Down Expand Up @@ -5367,7 +5367,6 @@ private function mapExposesToVariables(array $exposes)
$ProfileName = $this->registerVariableProfile($expose);
if ($ProfileName != false) {
$this->RegisterVariableFloat('Z2M_CO', $this->Translate('Carbon Monoxide'), $ProfileName);
$this->EnableAction('Z2M_CO');
}
break;
case 'filter_age':
Expand Down

0 comments on commit 356d6b3

Please sign in to comment.