Skip to content

Commit

Permalink
Updated plejd ble characteristict
Browse files Browse the repository at this point in the history
  • Loading branch information
Herlix committed Jun 20, 2024
1 parent a64ca86 commit 8b2c6f0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 7 additions & 6 deletions src/plejdService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
);
Expand Down

0 comments on commit 8b2c6f0

Please sign in to comment.