Skip to content

Commit

Permalink
Merge pull request #202 from Burki24/patch-6
Browse files Browse the repository at this point in the history
FIX: action_rate, action_level, action_transition_time
  • Loading branch information
Schnittcher authored Aug 12, 2024
2 parents c079eee + 4fbcb07 commit b7cf532
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/Zigbee2MQTTHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1546,21 +1546,21 @@ public function ReceiveData($JSONString)
$this->SetValue('Z2M_Attendance', $Payload['duration_of_attendance']);
}
if (array_key_exists('action_rate', $Payload)) {
$this->RegisterVariableInteger('Z2M_ActionRate', $this->Translate('Action Rate'), $ProfileName);
$this->EnableAction('Z2M_ActionRate');
$this->RegisterVariableInteger('Z2M_ActionRate', $this->Translate('Action Rate'), '');
// $this->EnableAction('Z2M_ActionRate');
$this->SetValue('Z2M_ActionRate', $Payload['action_rate']);
}
if (array_key_exists('action_level', $Payload)) {
$this->RegisterVariableInteger('Z2M_ActionLevel', $this->Translate('Action Level'), $ProfileName);
$this->EnableAction('Z2M_ActionLevel');
$this->RegisterVariableInteger('Z2M_ActionLevel', $this->Translate('Action Level'), '');
// $this->EnableAction('Z2M_ActionLevel');
$this->SetValue('Z2M_ActionLevel', $Payload['action_level']);
}
if (array_key_exists('action_step_size', $Payload)) {
$this->SetValue('Z2M_ActionStepSize', $Payload['action_step_size']);
}
if (array_key_exists('action_transition_time', $Payload)) {
$this->RegisterVariableInteger('Z2M_ActionTransTime', $this->Translate('Action Transition Time'), $ProfileName);
$this->EnableAction('Z2M_ActionTransTime');
$this->RegisterVariableInteger('Z2M_ActionTransTime', $this->Translate('Action Transition Time'), '');
// $this->EnableAction('Z2M_ActionTransTime');
$this->SetValue('Z2M_ActionTransTime', $Payload['action_transition_time']);
}
if (array_key_exists('action_group', $Payload)) {
Expand Down

0 comments on commit b7cf532

Please sign in to comment.