Skip to content

Commit

Permalink
Updated version of the package eufy-security-client (1.2.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
bropat committed Oct 23, 2021
1 parent 7e9a621 commit a3a35c4
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 35 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ Best is to set the adapter to Debug log mode (Instances -> Expert mode -> Column

## Changelog

### 0.7.1 (2021-10-23)

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

### 0.7.0 (2021-10-17)

* (bropat) Added support for Floodlight T8422
Expand Down
4 changes: 2 additions & 2 deletions build/main.js

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

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "eufy-security",
"version": "0.7.0",
"version": "0.7.1",
"news": {
"0.7.1": {
"en": "Updated version of the package eufy-security-client (1.2.1)",
"de": "Version des Pakets eufy-security-client (1.2.1) aktualisiert",
"ru": "Обновленная версия пакета eufy-security-client (1.2.1)",
"pt": "Versão atualizada do pacote eufy-security-client (1.2.1)",
"nl": "Bijgewerkte versie van het pakket eufy-security-client (1.2.1)",
"fr": "Version mise à jour du paquet eufy-security-client (1.2.1)",
"it": "Aggiornata la versione del pacchetto eufy-security-client (1.2.1)",
"es": "Versión actualizada del paquete eufy-security-client (1.2.1)",
"pl": "Zaktualizowana wersja pakietu eufy-security-client (1.2.1)",
"zh-cn": "包 eufy-security-client (1.2.1) 的更新版本"
},
"0.7.0": {
"en": "Updated version of the package eufy-security-client (1.2.0)",
"de": "Version des Pakets eufy-security-client (1.2.0) aktualisiert",
Expand Down Expand Up @@ -218,18 +230,6 @@
"es": "Problema solucionado # 86",
"pl": "Naprawiono problem nr 86",
"zh-cn": "已修复问题86"
},
"0.2.3": {
"en": "Fixed wired doorbell p2p livestream and push notifications",
"de": "Feste kabelgebundene Türklingel p2p Livestream- und Push-Benachrichtigungen behoben",
"ru": "Фиксированный проводной дверной звонок p2p livestream и push-уведомления",
"pt": "Correção da transmissão ao vivo P2P da campainha com fio e notificações push",
"nl": "Vaste bedrade deurbel p2p livestream en pushmeldingen",
"fr": "Sonnette filaire fixe p2p livestream et notifications push",
"it": "Risolto il problema con il livestream p2p del campanello cablato e le notifiche push",
"es": "Timbre fijo con cable p2p transmisión en vivo y notificaciones push",
"pl": "Naprawiono transmisję na żywo i powiadomienia push z dzwonka do drzwi przewodowego",
"zh-cn": "固定有线门铃p2p直播和推送通知"
}
},
"title": "Eufy Security",
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.eufy-security",
"version": "0.7.0",
"version": "0.7.1",
"description": "ioBroker adapter that integrates Eufy-Security cameras with stations",
"author": {
"name": "bropat",
Expand All @@ -27,7 +27,7 @@
"@cospired/i18n-iso-languages": "^3.1.1",
"@iobroker/adapter-core": "^2.5.1",
"axios": "^0.23.0",
"eufy-security-client": "^1.2.0",
"eufy-security-client": "^1.2.1",
"ffmpeg-static": "^4.4.0",
"fs-extra": "^10.0.0",
"i18n-iso-countries": "^6.8.0",
Expand All @@ -44,7 +44,7 @@
"@types/gulp": "^4.0.9",
"@types/mime": "^2.0.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.0",
"@types/node": "^16.11.4",
"@types/proxyquire": "^1.3.28",
"@types/sinon": "^10.0.4",
"@types/sinon-chai": "^3.2.5",
Expand All @@ -60,7 +60,7 @@
"sinon": "^11.1.2",
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.20",
"ts-node": "^10.3.0",
"ts-node": "^10.4.0",
"typescript": "4.4.4"
},
"main": "build/main.js",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ export class EufySecurity extends utils.Adapter {
this.setStateAsync(state, { ...states[state] as ioBroker.State, ack: true });
}
} else if (result.command_type !== CommandType.CMD_CAMERA_INFO) {
this.logger.debug(`No mapping for state <> command_type - station: ${station.getSerial()} result: ${JSON.stringify(result)}`);
this.logger.debug(`No mapping for state found for resulting command - station: ${station.getSerial()} result: ${JSON.stringify(result)}`);
}
} else if (result.return_code !== 0 && result.command_type === CommandType.CMD_START_REALTIME_MEDIA) {
this.logger.debug(`Station: ${station.getSerial()} command ${CommandType[result.command_type]} failed with error: ${ErrorCode[result.return_code]} (${result.return_code}) fallback to RTMP livestream...`);
Expand Down Expand Up @@ -1053,7 +1053,7 @@ export class EufySecurity extends utils.Adapter {
const device = this.eufy.getDevice(device_sn);
const station = this.eufy.getStation(device.getStationSerial());

if (this.eufy.isStationConnected(device.getStationSerial())) {
if (station.isConnected() || station.isEnergySavingDevice()) {
if (!station.isLiveStreaming(device)) {
this.eufy.startStationLivestream(device_sn);
} else {
Expand Down

0 comments on commit a3a35c4

Please sign in to comment.