Skip to content

Commit

Permalink
Incremented version to 1.3.3
Browse files Browse the repository at this point in the history
Updated version of the package eufy-security-client (3.1.1)
  • Loading branch information
bropat committed Sep 28, 2024
1 parent 1e45d6c commit 14b7097
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 75 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ Best is to set the adapter to Debug log mode (see [here](https://bropat.github.i

## Changelog

### 1.3.3 (2024-09-28)

* (bropat) Updated version of the package eufy-security-client (3.1.1)
* (bropat) Further details can be found in the changelog of eufy-security-client (3.1.1)

### 1.3.2 (2024-09-10)

* (bropat) Fixed issue #440
Expand Down
4 changes: 3 additions & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](_media/ioBroker.euSec.png)

# ioBroker.euSec <small>1.3.2</small>
# ioBroker.euSec <small>1.3.3</small>

> An [ioBroker](https://www.iobroker.net) adapter that uses the [eufy-security-client](https://github.com/bropat/eufy-security-client) library to comunicate with Eufy devices
Expand Down
28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "eusec",
"version": "1.3.2",
"version": "1.3.3",
"news": {
"1.3.3": {
"en": "Updated version of the package eufy-security-client (3.1.1)\n",
"uk": "Updated version of the package eufy-security-client (3.1.1)\n",
"de": "Version des Pakets eufy-security-client (3.1.1) aktualisiert\n",
"ru": "Обновленная версия пакета eufy-security-client (3.1.1)\n",
"pt": "Versão atualizada do pacote eufy-security-client (3.1.1)\n",
"nl": "Bijgewerkte versie van het pakket eufy-security-client (3.1.1)\n",
"fr": "Version mise à jour du paquet eufy-security-client (3.1.1)\n",
"it": "Aggiornata la versione del pacchetto eufy-security-client (3.1.1)\n",
"es": "Versión actualizada del paquete eufy-security-client (3.1.1)\n",
"pl": "Zaktualizowana wersja pakietu eufy-security-client (3.1.1)\n",
"zh-cn": "包 eufy-security-client (3.1.1) 的更新版本\n"
},
"1.3.2": {
"en": "Fixed issue #440\n",
"uk": "Fixed issue #440\n",
Expand Down Expand Up @@ -54,19 +67,6 @@
"es": "Versión actualizada del paquete eufy-security-client (2.9.1)\n",
"pl": "Zaktualizowana wersja pakietu eufy-security-client (2.9.1)\n",
"zh-cn": "包 eufy-security-client (2.9.1) 的更新版本\n"
},
"1.2.0": {
"en": "Requires node version >= 18\nAdded support for SmartTrack Link (T87B0) and SmartTrack Card (T87B2)\nAdded support for SoloCam S220 (T8134)\nUpdated version of the package go2rtc-static (1.8.1)\nUpdated version of the package eufy-security-client (2.9.0)\n",
"uk": "Requires node version >= 18\nAdded support for SmartTrack Link (T87B0) and SmartTrack Card (T87B2)\nAdded support for SoloCam S220 (T8134)\nUpdated version of the package go2rtc-static (1.8.1)\nUpdated version of the package eufy-security-client (2.9.0)\n",
"de": "Erfordert Node-Version >= 18\nUnterstützung für SmartTrack Link (T87B0) und SmartTrack Card (T87B2)\nUnterstützung für SoloCam S220 (T8134)\nAktualisierte Version des Pakets go2rtc-static (1.8.1)\nAktualisierte Version des Pakets eufy-security-client (2.9.0)\n",
"ru": "Требуется версия node >= 18\nДобавлена поддержка SmartTrack Link (T87B0) и SmartTrack Card (T87B2)\nДобавлена поддержка SoloCam S220 (T8134)\nОбновлена версия пакета go2rtc-static (1.8.1)\nОбновлена версия пакета eufy-security-client (2.9.0)\n",
"pt": "Requer node versão >= 18\nSuporte adicionado para SmartTrack Link (T87B0) e SmartTrack Card (T87B2)\nSuporte adicionado para SoloCam S220 (T8134)\nVersão atualizada do pacote go2rtc-static (1.8.1)\nVersão atualizada do pacote eufy-security-client (2.9.0)\n",
"nl": "Vereist node versie >= 18\nOndersteuning toegevoegd voor SmartTrack Link (T87B0) en SmartTrack Card (T87B2)\nOndersteuning toegevoegd voor SoloCam S220 (T8134)\nBijgewerkte versie van het pakket go2rtc-static (1.8.1)\nBijgewerkte versie van het pakket eufy-security-client (2.9.0)\n",
"fr": "Nécessite une version de node >= 18\nAjout de la prise en charge de SmartTrack Link (T87B0) et SmartTrack Card (T87B2)\nAjout de la prise en charge de SoloCam S220 (T8134)\nVersion mise à jour du paquet go2rtc-static (1.8.1)\nVersion mise à jour du paquet eufy-security-client (2.9.0)\n",
"it": "Richiede la versione di node >= 18\nAggiunto supporto per SmartTrack Link (T87B0) e SmartTrack Card (T87B2)\nAggiunto supporto per SoloCam S220 (T8134)\nVersione aggiornata del pacchetto go2rtc-static (1.8.1)\nVersione aggiornata del pacchetto eufy-security-client (2.9.0)\n",
"es": "Requiere node versión >= 18\nAgregado soporte para SmartTrack Link (T87B0) y SmartTrack Card (T87B2)\nAgregado soporte para SoloCam S220 (T8134)\nVersión actualizada del paquete go2rtc-static (1.8.1)\nVersión actualizada del paquete eufy-security-client (2.9.0)\n",
"pl": "Wymaga node w wersji >= 18\nDodano obsługę SmartTrack Link (T87B0) i SmartTrack Card (T87B2)\nDodano obsługę SoloCam S220 (T8134)\nZaktualizowano wersję pakietu go2rtc-static (1.8.1)\nZaktualizowano wersję pakietu eufy-security-client (2.9.0)\n",
"zh-cn": "要求 node 版本 >= 18\n添加了对智能跟踪链接(T87B0)和智能跟踪卡(T87B2)的支持\n添加了对 SoloCam S220 (T8134) 的支持\n软件包 go2rtc-static 的更新版本 (1.8.1)\n软件包 eufy-security-client 的更新版本 (2.9.0)\n"
}
},
"titleLang": {
Expand Down
86 changes: 34 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.eusec",
"version": "1.3.2",
"version": "1.3.3",
"description": "ioBroker adapter that integrates Eufy-Security cameras with stations",
"author": {
"name": "bropat",
Expand All @@ -27,7 +27,7 @@
"@bropat/fluent-ffmpeg": "^2.1.3",
"@cospired/i18n-iso-languages": "^4.2.0",
"@iobroker/adapter-core": "^3.1.6",
"eufy-security-client": "^3.1.0",
"eufy-security-client": "^3.1.1",
"ffmpeg-for-homebridge": "^2.1.1",
"fs-extra": "^11.2.0",
"go2rtc-static": "^1.9.4",
Expand All @@ -48,7 +48,7 @@
"@types/ffmpeg-static": "^3.0.3",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.7",
"@types/node": "^20.16.5",
"@types/node": "^20.16.10",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
Expand Down
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as utils from "@iobroker/adapter-core";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { strict } from "assert";
import * as path from "path";
import { Camera, Device, Station, PushMessage, P2PConnectionType, EufySecurity, EufySecurityConfig, CommandResult, CommandType, ErrorCode, PropertyValue, PropertyName, StreamMetadata, PropertyMetadataNumeric, PropertyMetadataAny, CommandName, PanTiltDirection, DeviceNotFoundError, LoginOptions, Picture, StationNotFoundError, ensureError, LogLevel } from "eufy-security-client";
import { Camera, Device, Station, PushMessage, P2PConnectionType, EufySecurity, EufySecurityConfig, CommandResult, CommandType, ErrorCode, PropertyValue, PropertyName, StreamMetadata, PropertyMetadataNumeric, PropertyMetadataAny, CommandName, PanTiltDirection, DeviceNotFoundError, LoginOptions, Picture, StationNotFoundError, ensureError, LogLevel, TFCardStatus } from "eufy-security-client";
import { getAlpha2Code as getCountryCode } from "i18n-iso-countries"
import { isValid as isValidLanguageCode } from "@cospired/i18n-iso-languages"
import { Readable } from "stream";
Expand Down Expand Up @@ -1554,9 +1554,11 @@ export class euSec extends utils.Adapter {
}

private async onStationCommandResult(station: Station, result: CommandResult): Promise<void> {
if ((result.return_code !== 0 && result.command_type !== CommandType.P2P_QUERY_STATUS_IN_LOCK && result.command_type !== CommandType.CMD_STORAGE_INFO_HB3) ||
if ((result.return_code !== 0 && result.command_type !== CommandType.P2P_QUERY_STATUS_IN_LOCK && result.command_type !== CommandType.CMD_STORAGE_INFO_HB3 && result.command_type !== CommandType.CMD_SDINFO_EX) ||
(result.return_code !== 0 && result.return_code !== ErrorCode.ERROR_DEV_BUSY && result.command_type === CommandType.CMD_STORAGE_INFO_HB3)) {
this.logger.error(`Station: ${station.getSerial()} command ${CommandType[result.command_type]} failed with error: ${ErrorCode[result.return_code]} (${result.return_code})`);
} else if (result.return_code !== 0 && result.return_code !== TFCardStatus.REMOVE && result.return_code !== TFCardStatus.BUSY && result.command_type === CommandType.CMD_SDINFO_EX) {
this.logger.error(`Station: ${station.getSerial()} command ${CommandType[result.command_type]} failed with error: ${TFCardStatus[result.return_code]} (${result.return_code})`);
}
}

Expand Down

0 comments on commit 14b7097

Please sign in to comment.