This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
DevicePower
github-actions[bot] edited this page Aug 11, 2023
·
2 revisions
-
↳
DevicePower
• new DevicePower(hue
, data
)
Name | Type |
---|---|
hue |
Hue |
data |
DevicePowerGet |
• data: DevicePowerGet
• Readonly
hue: Hue
• type: ResourceType
= ResourceType.DevicePower
src/structures/DevicePower.ts:12
• get
batteryLevel(): number
number
src/structures/DevicePower.ts:25
• get
batteryState(): DevicePowerBatteryState
src/structures/DevicePower.ts:21
• get
id(): string
string
Resource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
Resource.identifier
• get
manager(): DevicePowerManager
Resource.manager
src/structures/DevicePower.ts:14
• get
ownerId(): string
string
src/structures/DevicePower.ts:17
▸ _clone(): DevicePower
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <DevicePowerGet > |
void
▸ _update(data
): DevicePower
Name | Type |
---|---|
data |
Partial <DevicePowerGet > |
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>