From a3b1d1d5d99a5337e5338e473145dc9802557476 Mon Sep 17 00:00:00 2001 From: Marcus Westin Date: Thu, 16 Jan 2020 18:50:37 +0000 Subject: [PATCH] reset characteristic state and new version --- plejd/ble.js | 2 ++ plejd/config.json | 2 +- plejd/main.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plejd/ble.js b/plejd/ble.js index 7ac6bdc..81552d2 100644 --- a/plejd/ble.js +++ b/plejd/ble.js @@ -282,6 +282,7 @@ class PlejdService extends EventEmitter { this.device.disconnect(); this.state = STATE_DISCONNECTED; + this.characteristicState = STATE_UNINITIALIZED; } authenticate() { @@ -381,6 +382,7 @@ class PlejdService extends EventEmitter { this.unsubscribeCharacteristics(); this.state = STATE_DISCONNECTED; + this.characteristicState = STATE_UNINITIALIZED; this.connect(this.device.id); } diff --git a/plejd/config.json b/plejd/config.json index faee13a..7da0a74 100644 --- a/plejd/config.json +++ b/plejd/config.json @@ -1,6 +1,6 @@ { "name": "Plejd", - "version": "0.2.7", + "version": "0.2.8", "slug": "plejd", "description": "Adds support for the Swedish home automation devices from Plejd.", "url": "https://github.com/icanos/hassio-plejd/", diff --git a/plejd/main.js b/plejd/main.js index d44e7b2..5aff784 100644 --- a/plejd/main.js +++ b/plejd/main.js @@ -3,7 +3,7 @@ const mqtt = require('./mqtt'); const fs = require('fs'); const PlejdService = require('./ble'); -const version = "0.2.7"; +const version = "0.2.8"; async function main() { console.log('starting Plejd add-on v. ' + version);