From 8b2c6f06efaa0e0035aeabf00069fad9355aaefc Mon Sep 17 00:00:00 2001 From: Alexander Herlin Date: Thu, 20 Jun 2024 23:47:04 +0200 Subject: [PATCH] Updated plejd ble characteristict --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/plejdService.ts | 13 +++++++------ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8125f36..3caf8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ #### 1.3.6 (2024-06-20) +Updated plejd ble characteristict + +#### 1.3.6 (2024-06-20) + Fix import issues and update configurations #### 1.3.6 (2024-06-20) diff --git a/package.json b/package.json index ba53ac4..68e12e9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Plejd", "name": "homebridge-plejd", "author": "Herlix", - "version": "1.3.7", + "version": "1.3.8", "description": "HomeKit support for the Plejd BLE platform using Homebridge", "license": "Apache-2.0", "type": "module", diff --git a/src/plejdService.ts b/src/plejdService.ts index 4b3679f..46e841b 100644 --- a/src/plejdService.ts +++ b/src/plejdService.ts @@ -16,12 +16,12 @@ const NOBLE_IS_POWER_ON = "oweredOn"; * Plejd BLE UUIDs */ enum PlejdCharacteristics { - Service = "1ba000160854726be45040c957391b5", - LightLevel = "1ba000360854726be45040c957391b5", - Data = "1ba000460854726be45040c957391b5", - LastData = "1ba000560854726be45040c957391b5", - Auth = "1ba000960854726be45040c957391b5", - Ping = "1ba000a60854726be45040c957391b5", + Service = "31ba000160854726be45040c957391b5", + LightLevel = "31ba000360854726be45040c957391b5", + Data = "31ba000460854726be45040c957391b5", + LastData = "31ba000560854726be45040c957391b5", + Auth = "31ba000960854726be45040c957391b5", + Ping = "31ba000a60854726be45040c957391b5", } enum PlejdCommand { @@ -202,6 +202,7 @@ export class PlejdService { services: noble.Service[], characteristics: noble.Characteristic[], ) => { + characteristics.forEach((c) => this.log.info("Characteristic: ", c.uuid)); const authChar = characteristics.find( (char) => char.uuid === PlejdCharacteristics.Auth, );