-
Notifications
You must be signed in to change notification settings - Fork 1
Exports
- ArcheType
- DevicePowerBatteryState
- LightCapabilities
- LightEffect
- LightMode
- LightTimedEffect
- ResourceType
- RestRequestType
- SceneRecallAction
- Device
- DeviceManager
- DevicePower
- DevicePowerManager
- GroupedLight
- GroupedLightManager
- Hue
- Light
- LightManager
- Limit
- Manager
- Motion
- MotionManager
- NamedResource
- Resource
- Rest
- Room
- RoomManager
- Scene
- SceneManager
- Sse
- Zone
- ZoneManager
- ExternalHueConnectionOptions
- Gamut
- GroupedLightEditOptions
- HueConnectionOptions
- HueEvents
- HueOptions
- LightEditOptions
- LightIsCapableOfColor
- LightIsCapableOfColorTemperature
- LightIsCapableOfDimming
- LightIsCapableOfGradient
- LocalHueConnectionsOptions
- MotionEditOptions
- NamedResourceEditOptions
- RGB
- RateLimits
- Request
- ResourceIdentifier
- ResourceTypesGet
- ResourceTypesPost
- ResourceTypesPut
- Resources
- Response
- RoomEditOptions
- SceneAction
- SceneEditOptions
- ScenePalette
- XyPoint
- ZoneEditOptions
- By
- DeviceEditOptions
- Force
- NamedResourceCreateOptions
- NarrowResource
- ResourceConstructorSignature
- ResourceTypeGet
- ResourceTypePost
- ResourceTypePut
- RoomCreateOptions
- SceneCreateOptions
- ZoneCreateOptions
- checkXyInReach
- clone
- createGamut
- createResourceIdentifier
- createXy
- crossPoints
- fromHex
- fromRGB
- getClosestXy
- getClosestXyToLine
- getDistanceBetweenXy
- hexToRgb
- merge
- resolveGamutByType
- rgbToHex
- toHex
- toRGB
Ƭ By: string
| ResourceIdentifier
Ƭ DeviceEditOptions: ArcheTypeResourceEditOptions
Ƭ Force<B
, T
>: B
extends true
? NarrowResource
<T
> : NarrowResource
<T
> | undefined
Name | Type |
---|---|
B |
extends boolean
|
T |
extends ResourceType
|
Ƭ NamedResourceCreateOptions: Required
<NamedResourceEditOptions
>
src/structures/NamedResource.ts:10
Ƭ NarrowResource<T
>: Resources
[T
]
Name | Type |
---|---|
T |
extends ResourceType = ResourceType
|
Ƭ ResourceConstructorSignature<T
>: (bridge
: Hue
, data
: any
) => NarrowResource
<T
>
Name | Type |
---|---|
T |
extends ResourceType
|
• (bridge
, data
)
Name | Type |
---|---|
bridge |
Hue |
data |
any |
Ƭ ResourceTypeGet<T
>: ResourceTypesGet
[T
]
Name | Type |
---|---|
T |
extends ResourceType
|
Ƭ ResourceTypePost<T
>: ResourceTypesPost
[T
]
Name | Type |
---|---|
T |
extends ResourceType
|
Ƭ ResourceTypePut<T
>: ResourceTypesPut
[T
]
Name | Type |
---|---|
T |
extends ResourceType
|
Ƭ RoomCreateOptions: Required
<RoomEditOptions
>
Ƭ SceneCreateOptions: Pick
<Required
<SceneEditOptions
>, "name"
| "actions"
>
Ƭ ZoneCreateOptions: Required
<ZoneEditOptions
>
• Const
CA: string
• Const
Events: Object
Name | Type |
---|---|
Add |
"add" |
BridgeAdd |
"bridgeAdd" |
BridgeDelete |
"bridgeDelete" |
BridgeUpdate |
"bridgeUpdate" |
Debug |
"debug" |
Delete |
"delete" |
DeviceAdd |
"deviceAdd" |
DeviceDelete |
"deviceDelete" |
DevicePowerAdd |
"devicePowerAdd" |
DevicePowerDelete |
"devicePowerDelete" |
DevicePowerUpdate |
"devicePowerUpdate" |
DeviceUpdate |
"deviceUpdate" |
Error |
"error" |
GroupedLightAdd |
"groupedLightAdd" |
GroupedLightDelete |
"groupedLightDelete" |
GroupedLightUpdate |
"groupedLightUpdate" |
LightAdd |
"lightAdd" |
LightDelete |
"lightDelete" |
LightUpdate |
"lightUpdate" |
MotionAdd |
"motionAdd" |
MotionDelete |
"motionDelete" |
MotionUpdate |
"motionUpdate" |
Raw |
"raw" |
Ready |
"ready" |
Request |
"request" |
Response |
"response" |
RoomAdd |
"roomAdd" |
RoomDelete |
"roomDelete" |
RoomUpdate |
"roomUpdate" |
SceneAdd |
"sceneAdd" |
SceneDelete |
"sceneDelete" |
SceneUpdate |
"sceneUpdate" |
Update |
"update" |
ZigbeeConnectivityAdd |
"zigbeeConnectivityAdd" |
ZigbeeConnectivityDelete |
"zigbeeConnectivityDelete" |
ZigbeeConnectivityUpdate |
"zigbeeConnectivityUpdate" |
ZigbeeDeviceDiscoveryAdd |
"zigbeeDeviceDiscoveryAdd" |
ZigbeeDeviceDiscoveryDelete |
"zigbeeDeviceDiscoveryDelete" |
ZigbeeDeviceDiscoveryUpdate |
"zigbeeDeviceDiscoveryUpdate" |
ZoneAdd |
"zoneAdd" |
ZoneDelete |
"zoneDelete" |
ZoneUpdate |
"zoneUpdate" |
• Const
GAMUT_A: Gamut
• Const
GAMUT_B: Gamut
• Const
GAMUT_C: Gamut
• RateLimits: RateLimits
▸ checkXyInReach(point
, gamut
): boolean
Name | Type |
---|---|
point |
XyPoint |
gamut |
Gamut |
boolean
▸ clone<T
>(object
): T
Name | Type |
---|---|
T |
extends Record <string , any > |
Name | Type |
---|---|
object |
T |
T
▸ createGamut(red
, green
, blue
): Gamut
Name | Type |
---|---|
red |
XyPoint |
green |
XyPoint |
blue |
XyPoint |
▸ createResourceIdentifier<T
>(id
, type
): ResourceIdentifier
<T
>
Name | Type |
---|---|
T |
extends ResourceType
|
Name | Type |
---|---|
id |
string |
type |
T |
src/util/resourceIdentifier.ts:4
▸ createXy(x
, y
, z?
): XyPoint
Name | Type |
---|---|
x |
number |
y |
number |
z? |
number |
▸ crossPoints(a
, b
): number
Name | Type |
---|---|
a |
XyPoint |
b |
XyPoint |
number
▸ fromHex(hex
): XyPoint
Name | Type |
---|---|
hex |
string |
▸ fromRGB(rgb
): XyPoint
Name | Type |
---|---|
rgb |
RGB |
▸ getClosestXy(point
, gamut
): XyPoint
Name | Type |
---|---|
point |
XyPoint |
gamut |
Gamut |
▸ getClosestXyToLine(xy
, a
, b
): XyPoint
Name | Type |
---|---|
xy |
XyPoint |
a |
XyPoint |
b |
XyPoint |
▸ getDistanceBetweenXy(a
, b
): number
Name | Type |
---|---|
a |
XyPoint |
b |
XyPoint |
number
▸ hexToRgb(hex
): RGB
Name | Type |
---|---|
hex |
string |
▸ merge<T
>(target
, source
): T
Name | Type |
---|---|
T |
extends Record <string , any > |
Name | Type |
---|---|
target |
Record <string , any > |
source |
Record <string , any > |
T
▸ resolveGamutByType(type
): Gamut
Name | Type |
---|---|
type |
"A" | "B" | "C"
|
▸ rgbToHex(«destructured»
): string
Name | Type |
---|---|
«destructured» |
RGB |
string
▸ toHex(point
): string
Name | Type |
---|---|
point |
XyPoint |
string
▸ toRGB(point
): RGB
Name | Type |
---|---|
point |
XyPoint |