smarthome-manager
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Devices
Pattern
List
Hue
Controller
constructor
hue
End
Point
state
state
Listeners
username
change
State
generate
User
get
Hue
State
hue
Authorized
Api
Call
hue
Raw
Api
Call
remove
State
Listener
subscribe
ToState
toggle
Hue
State
Magic
Home
Controller
Smart
Home
Manager
Statefull
Wemo
Controller
Control
Controller
Effect
Interface
IHue
Controller
IMagic
Home
Controller
IWemo
Controller
Attribute
List
Device
Options
Device
Type
Hue
Bridge
Hue
State
Object
Insight
Params
Manager
Options
SSDPClient
Smart
Home
Controllers
State
Listener
Wemo
Wemo
Options
NOOP
camelize
distinct
Hierarchy
Statefull
HueController
Implements
IHueController
Index
Constructors
constructor
Properties
hue
End
Point
state
state
Listeners
username
Methods
change
State
generate
User
get
Hue
State
hue
Authorized
Api
Call
hue
Raw
Api
Call
remove
State
Listener
subscribe
ToState
toggle
Hue
State
Constructors
constructor
new
Hue
Controller
(
options
:
DeviceOptions
|
undefined
)
:
HueController
Parameters
options:
DeviceOptions
|
undefined
Returns
HueController
Properties
Private
hue
End
Point
hue
End
Point
:
string
state
state
:
any
Protected
state
Listeners
state
Listeners
:
StateListener
[]
= []
username
username
:
String
= ""
Methods
change
State
change
State
(
state
:
any
, listenProp
?:
String
)
:
void
Parameters
state:
any
Optional
listenProp:
String
Returns
void
generate
User
generate
User
(
devicetype
:
String
)
:
Promise
<
any
>
Parameters
devicetype:
String
Returns
Promise
<
any
>
get
Hue
State
get
Hue
State
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
hue
Authorized
Api
Call
hue
Authorized
Api
Call
(
endpoint
:
String
, options
?:
RequestInit
)
:
Promise
<
any
>
Parameters
endpoint:
String
Default value
options:
RequestInit
= { method: 'GET' }
Returns
Promise
<
any
>
hue
Raw
Api
Call
hue
Raw
Api
Call
(
endpoint
:
String
, options
?:
RequestInit
)
:
Promise
<
any
>
Parameters
endpoint:
String
Default value
options:
RequestInit
= { method: 'GET' }
Returns
Promise
<
any
>
remove
State
Listener
remove
State
Listener
(
id
:
String
)
:
void
Parameters
id:
String
Returns
void
subscribe
ToState
subscribe
ToState
(
listener
:
Function
, listenProp
?:
String
)
:
string
Parameters
listener:
Function
Optional
listenProp:
String
Returns
string
toggle
Hue
State
toggle
Hue
State
(
lightId
:
number
, state
:
HueStateObject
)
:
Promise
<
any
>
Parameters
lightId:
number
state:
HueStateObject
Returns
Promise
<
any
>
Generated using
TypeDoc