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
Motion
github-actions[bot] edited this page Aug 11, 2023
·
2 revisions
• new Motion(hue
, data
)
Name | Type |
---|---|
hue |
Hue |
data |
MotionGet |
• data: MotionGet
• Readonly
hue: Hue
• type: ResourceType
= ResourceType.Motion
• get
enabled(): boolean
boolean
• get
id(): string
string
Resource.id
• get
identifier(): ResourceIdentifier
<ResourceType
>
ResourceIdentifier
<ResourceType
>
Resource.identifier
• get
manager(): MotionManager
Resource.manager
• get
motionDetected(): boolean
boolean
• get
motionValid(): boolean
boolean
▸ _clone(): Motion
▸ _patch(data
): void
Name | Type |
---|---|
data |
Partial <MotionGet > |
void
▸ _update(data
): Motion
Name | Type |
---|---|
data |
Partial <MotionGet > |
▸ disable(): Promise
<void
>
Promise
<void
>
▸ edit(options
): Promise
<void
>
Name | Type |
---|---|
options |
MotionEditOptions |
Promise
<void
>
▸ enable(): Promise
<void
>
Promise
<void
>
▸ isType<T
>(type
): this is NarrowResource<T>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
type |
T |
this is NarrowResource<T>