From 4a3d98e552b74be5dd6660d71860703ada9e4ef7 Mon Sep 17 00:00:00 2001 From: TA2k Date: Thu, 28 Nov 2024 20:22:19 +0100 Subject: [PATCH] add status command --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index ba27391..75ef348 100644 --- a/main.js +++ b/main.js @@ -1139,11 +1139,13 @@ class Bmw extends utils.Adapter { if (res === 'EXECUTED') { this.log.info('Remote command executed'); } else { - this.log.info('Event is not finished it is: ' + res); + this.log.info('Remote Event is not finished it is: ' + res); await this.sleep(10000); this.checkEventStatus(eventId, headers).then((res) => { if (res === 'EXECUTED') { this.log.info('Remote command executed'); + } else if (res === 'RUNNING') { + this.log.info('Remote command is still running'); } else { this.log.error('Remote command failed ' + res); }