Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Dec 28, 2023
1 parent 4b25993 commit 40013ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Xiaomi MIoT Device/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Device response with wrong ID": "Gerät hat mit falscher ID geantwortet",
"Device in cloud offline, or cloud offline": "Gerät in der Cloud offline, oder Cloud offline",
"Device offline": "Gerät offline",
"Property value invalid": "Wert der Eingenschaft nicht gültig",
"Cloud response that device is offline": "Cloud meldet das Gerät als offline",
"Send blocked": "Senden blockiert",
"Invalid Ident": "Ungültiger Ident",
Expand Down
3 changes: 3 additions & 0 deletions Xiaomi MIoT Device/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ public function RequestState(): bool
$this->LogMessage($this->Translate('Device in cloud offline'), KL_ERROR);
$this->SetStatus(\Xiaomi\Device\InstanceStatus::InCloudOffline);
}
} elseif ($Value['code'] == -704220043) {
$this->SendDebug((string) $Value['siid'] . '_' . (string) $Value['piid'], $this->Translate(\Xiaomi\Device\ApiError::$CodeToText[$Value['code']]), 0);
continue;
} elseif ($Value['code'] != 0) {
$this->LogMessage($this->Translate('Unknown error: ') . $Value['code'], KL_ERROR);
continue;
Expand Down
3 changes: 2 additions & 1 deletion libs/XiaomiConsts.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ class ApiError
-704040002 => 'Unknown error', //Gateway offline?
-704040003 => 'Unknown error',
-704040005 => 'Invalid action',
-704042011 => 'Device offline'
-704042011 => 'Device offline',
-704220043 => 'Property value invalid'
];
}
class SpecUrls
Expand Down

0 comments on commit 40013ed

Please sign in to comment.