Merge pull request #41 from icanos/dev
reset characteristic state and new version
This commit is contained in:
commit
2a4cd7354f
3 changed files with 4 additions and 2 deletions
|
|
@ -282,6 +282,7 @@ class PlejdService extends EventEmitter {
|
||||||
this.device.disconnect();
|
this.device.disconnect();
|
||||||
|
|
||||||
this.state = STATE_DISCONNECTED;
|
this.state = STATE_DISCONNECTED;
|
||||||
|
this.characteristicState = STATE_UNINITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
authenticate() {
|
authenticate() {
|
||||||
|
|
@ -381,6 +382,7 @@ class PlejdService extends EventEmitter {
|
||||||
|
|
||||||
this.unsubscribeCharacteristics();
|
this.unsubscribeCharacteristics();
|
||||||
this.state = STATE_DISCONNECTED;
|
this.state = STATE_DISCONNECTED;
|
||||||
|
this.characteristicState = STATE_UNINITIALIZED;
|
||||||
|
|
||||||
this.connect(this.device.id);
|
this.connect(this.device.id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Plejd",
|
"name": "Plejd",
|
||||||
"version": "0.2.7",
|
"version": "0.2.8",
|
||||||
"slug": "plejd",
|
"slug": "plejd",
|
||||||
"description": "Adds support for the Swedish home automation devices from Plejd.",
|
"description": "Adds support for the Swedish home automation devices from Plejd.",
|
||||||
"url": "https://github.com/icanos/hassio-plejd/",
|
"url": "https://github.com/icanos/hassio-plejd/",
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ const mqtt = require('./mqtt');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const PlejdService = require('./ble');
|
const PlejdService = require('./ble');
|
||||||
|
|
||||||
const version = "0.2.7";
|
const version = "0.2.8";
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
console.log('starting Plejd add-on v. ' + version);
|
console.log('starting Plejd add-on v. ' + version);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue