-
Notifications
You must be signed in to change notification settings - Fork 1
GroupedLight
-
↳
GroupedLight
• new GroupedLight(hue
, data
)
Name | Type |
---|---|
hue |
Hue |
data |
GroupedLightGet |
• data: GroupedLightGet
• Readonly
hue: Hue
• type: ResourceType
= ResourceType.GroupedLight
src/structures/GroupedLight.ts:14
• get
brightness(): undefined
| number
undefined
| number
src/structures/GroupedLight.ts:28
• get
id(): string
string
Resource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
Resource.identifier
• get
manager(): GroupedLightManager
Resource.manager
src/structures/GroupedLight.ts:16
• get
ownerId(): string
string
src/structures/GroupedLight.ts:20
▸ _clone(): GroupedLight
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <GroupedLightGet > |
void
▸ _update(data
): GroupedLight
Name | Type |
---|---|
data |
Partial <GroupedLightGet > |
▸ edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
GroupedLightEditOptions |
Promise
<void
>
src/structures/GroupedLight.ts:56
▸ isOn(): undefined
| boolean
undefined
| boolean
src/structures/GroupedLight.ts:24
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>
▸ off(): Promise
<void
>
Promise
<void
>
src/structures/GroupedLight.ts:36
▸ on(): Promise
<void
>
Promise
<void
>
src/structures/GroupedLight.ts:32
▸ setBrightness(brightness
): Promise
<void
>
Name | Type |
---|---|
brightness |
undefined | number
|
Promise
<void
>
src/structures/GroupedLight.ts:44
▸ setColor(color
): Promise
<void
>
Name | Type |
---|---|
color |
undefined | XyPoint
|
Promise
<void
>
src/structures/GroupedLight.ts:52
▸ setMirek(mirek
): Promise
<void
>
Name | Type |
---|---|
mirek |
undefined | number
|
Promise
<void
>
src/structures/GroupedLight.ts:48
▸ toggle(): Promise
<void
>
Promise
<void
>