-
Notifications
You must be signed in to change notification settings - Fork 1
GroupedLight
-
↳
GroupedLight
• new GroupedLight(bridge
, data
)
Name | Type |
---|---|
bridge |
Bridge |
data |
ApiGroupedLightGet |
• Readonly
bridge: Bridge
• data: ApiGroupedLightGet
• type: ApiResourceType
= ApiResourceType.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
<ApiResourceType
>
ResourceIdentifier
<ApiResourceType
>
Resource.identifier
• get
owner(): NarrowResource
<ApiResourceType
>
NarrowResource
<ApiResourceType
>
src/structures/GroupedLight.ts:16
• get
ownerIdentifier(): ResourceIdentifier
<ApiResourceType
>
ResourceIdentifier
<ApiResourceType
>
src/structures/GroupedLight.ts:20
▸ _clone(): GroupedLight
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <ApiGroupedLightGet > |
void
▸ Protected
_put(data
): Promise
<void
>
Name | Type |
---|---|
data |
ApiGroupedLightPut |
Promise
<void
>
▸ _update(data
): GroupedLight
Name | Type |
---|---|
data |
Partial <ApiGroupedLightGet > |
▸ 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 ApiResourceType
|
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
▸ setMirek(mirek
): Promise
<void
>
Name | Type |
---|---|
mirek |
undefined | number
|
Promise
<void
>
src/structures/GroupedLight.ts:48
▸ setXy(xy
): Promise
<void
>
Name | Type |
---|---|
xy |
undefined | XyPoint
|
Promise
<void
>
src/structures/GroupedLight.ts:52
▸ toggle(): Promise
<void
>
Promise
<void
>