From 40013edc48ea6369f5ad69d1f9f8fc6864022c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Tr=C3=B6ger?= Date: Thu, 28 Dec 2023 11:26:45 +0100 Subject: [PATCH] no message --- Xiaomi MIoT Device/locale.json | 1 + Xiaomi MIoT Device/module.php | 3 +++ libs/XiaomiConsts.php | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Xiaomi MIoT Device/locale.json b/Xiaomi MIoT Device/locale.json index 374b7a6..46b07d4 100644 --- a/Xiaomi MIoT Device/locale.json +++ b/Xiaomi MIoT Device/locale.json @@ -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", diff --git a/Xiaomi MIoT Device/module.php b/Xiaomi MIoT Device/module.php index 30f41ac..8c71044 100644 --- a/Xiaomi MIoT Device/module.php +++ b/Xiaomi MIoT Device/module.php @@ -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; diff --git a/libs/XiaomiConsts.php b/libs/XiaomiConsts.php index 138efa0..2e21c92 100644 --- a/libs/XiaomiConsts.php +++ b/libs/XiaomiConsts.php @@ -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