smarthome-manager
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Devices
Pattern
List
Hue
Controller
Magic
Home
Controller
Smart
Home
Manager
constructor
controllers
devices
ssdp
Client
state
Listeners
wemo
Device
List
controllers
List
device
List
device
Types
has
Hue
has
Magic
Home
has
Wemo
change
State
discover
AllSSDP
generate
Controllers
get
Controller
get
Options
For
Device
handleSSDPResponse
remove
State
Listener
subscribe
ToState
validate
Devices
Hue
Bridge
manager
Options
state
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
SmartHomeManager
Index
Constructors
constructor
Properties
controllers
devices
ssdp
Client
state
Listeners
wemo
Device
List
Accessors
controllers
List
device
List
device
Types
has
Hue
has
Magic
Home
has
Wemo
Methods
change
State
discover
AllSSDP
generate
Controllers
get
Controller
get
Options
For
Device
handleSSDPResponse
remove
State
Listener
subscribe
ToState
validate
Devices
Object literals
Hue
Bridge
manager
Options
state
Constructors
constructor
new
Smart
Home
Manager
(
devices
:
DeviceType
[]
, options
?:
ManagerOptions
)
:
SmartHomeManager
Parameters
devices:
DeviceType
[]
Default value
options:
ManagerOptions
= {}
Returns
SmartHomeManager
Properties
Private
controllers
controllers
:
SmartHomeControllers
Private
devices
devices
:
DeviceType
[]
= []
Private
ssdp
Client
ssdp
Client
:
SSDPClient
|
any
= null
Protected
state
Listeners
state
Listeners
:
StateListener
[]
= []
Private
wemo
Device
List
wemo
Device
List
:
WemoOptions
[]
= []
Accessors
controllers
List
controllers
List
:
device
List
device
List
:
device
Types
device
Types
:
Private
has
Hue
has
Hue
:
Private
has
Magic
Home
has
Magic
Home
:
Private
has
Wemo
has
Wemo
:
Methods
change
State
change
State
(
state
:
any
, listenProp
?:
String
)
:
void
Parameters
state:
any
Optional
listenProp:
String
Returns
void
Private
discover
AllSSDP
discover
AllSSDP
(
cb
:
Function
)
:
any
Parameters
cb:
Function
Returns
any
Private
generate
Controllers
generate
Controllers
(
onReadyCb
:
Function
, ctrlOptions
?:
DeviceOptions
)
:
Promise
<
void
>
Parameters
onReadyCb:
Function
Optional
ctrlOptions:
DeviceOptions
Returns
Promise
<
void
>
get
Controller
get
Controller
(
type
:
Devices
)
:
Controller
Parameters
type:
Devices
Returns
Controller
Private
get
Options
For
Device
get
Options
For
Device
(
deviceType
:
Devices
)
:
any
Parameters
deviceType:
Devices
Returns
any
Private
handleSSDPResponse
handleSSDPResponse
(
msg
:
any
, statusCode
:
any
, rinfo
:
any
)
:
void
Parameters
msg:
any
statusCode:
any
rinfo:
any
Returns
void
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
Private
validate
Devices
validate
Devices
(
devices
:
DeviceType
[]
)
:
any
Parameters
devices:
DeviceType
[]
Returns
any
Object literals
Private
Hue
Bridge
Hue
Bridge
:
object
ip
ip
:
null
= null
Private
manager
Options
manager
Options
:
object
auto
Discovery
auto
Discovery
:
boolean
= false
state
state
:
object
magic
Home
magic
Home
:
object
Type declaration
wemo
wemo
:
never
[]
= []
hue
hue
:
object
bridge
bridge
:
object
Type declaration
options
options
:
object
Type declaration
Generated using
TypeDoc