Skip to content

Commit

Permalink
Merge pull request #136 from Burki24/patch-2
Browse files Browse the repository at this point in the history
FIX: more detailed "missed Variables" clustering
  • Loading branch information
Schnittcher authored Oct 30, 2023
2 parents 3025cb0 + d392423 commit c2adc23
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions libs/Zigbee2MQTTHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3923,6 +3923,11 @@ private function registerVariableProfile($expose)
private function mapExposesToVariables(array $exposes)
{
$missedVariables = [];
$missedVariables['composite'] = [];
$missedVariables['enum'] = [];
$missedVariables['numeric'] = [];
$missedVariables['binary'] = [];
$missedVariables['text'] = [];
$missedVariables['light'] = [];
$missedVariables['switch'] = [];
$missedVariables['climate'] = [];
Expand All @@ -3943,7 +3948,7 @@ private function mapExposesToVariables(array $exposes)
$this->EnableAction('Z2M_IRCodeToSend');
break;
default:
$missedVariables[] = $expose;
$missedVariables['text'][] = $expose;
break;
}
break; //break text
Expand Down Expand Up @@ -4629,7 +4634,7 @@ private function mapExposesToVariables(array $exposes)
$this->EnableAction('Z2M_TriggerIndicator');
break;
default:
$missedVariables[] = $expose;
$missedVariables['binary'][] = $expose;
break;
}
break; //binary break
Expand Down Expand Up @@ -4992,7 +4997,7 @@ private function mapExposesToVariables(array $exposes)
}
break;
default:
$missedVariables[] = $expose;
$missedVariables['enum'][] = $expose;
break;
}
break; //enum break
Expand Down Expand Up @@ -5580,7 +5585,7 @@ private function mapExposesToVariables(array $exposes)
}
break;
default:
$missedVariables[] = $expose;
$missedVariables['numeric'][] = $expose;
break;
}
break; //numeric break
Expand Down

0 comments on commit c2adc23

Please sign in to comment.