Preparing search index...
The search index is not available
@lucadiba/switchbot-client
@lucadiba/switchbot-client
devices/SwitchBotBot
default
Class default
Hierarchy (
View Summary
)
DeviceWithPower
<
StatusBody
,
CommandBody
>
default
Index
Constructors
constructor
Properties
_deps
_device
Id
Methods
_get
Path
get
Hub
Device
Id
get
Power
Status
get
Status
press
send
Command
turn
Off
turn
On
Constructors
constructor
new
default
(
deviceId
:
string
,
deps
:
Deps
)
:
default
Parameters
deviceId
:
string
deps
:
Deps
Returns
default
Properties
Protected
Readonly
_deps
_deps
:
Deps
Protected
Readonly
_device
Id
_deviceId
:
string
Methods
Protected
_get
Path
_getPath
(
path
:
string
)
:
string
Parameters
path
:
string
Returns
string
get
Hub
Device
Id
getHubDeviceId
()
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Power
Status
getPowerStatus
()
:
Promise
<
"on"
|
"off"
>
Returns
Promise
<
"on"
|
"off"
>
get
Status
getStatus
(
options
?:
GetStatusOptions
)
:
Promise
<
StatusBody
>
Parameters
options
:
GetStatusOptions
= {}
Returns
Promise
<
StatusBody
>
press
press
()
:
Promise
<
any
>
Returns
Promise
<
any
>
Protected
send
Command
sendCommand
(
command
:
string
,
parameter
?:
any
)
:
Promise
<
any
>
Parameters
command
:
string
parameter
:
any
= "default"
Returns
Promise
<
any
>
turn
Off
turnOff
()
:
Promise
<
any
>
Set the device to off state.
Returns
Promise
<
any
>
turn
On
turnOn
()
:
Promise
<
any
>
Set the device to on state.
Returns
Promise
<
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_deps
_device
Id
Methods
_get
Path
get
Hub
Device
Id
get
Power
Status
get
Status
press
send
Command
turn
Off
turn
On
@lucadiba/switchbot-client
Loading...
Set the device to off state.