node-switchbot
Preparing search index...
BotCommands
Interface BotCommands
interface
BotCommands
{
handDown
?:
()
=>
Promise
<
boolean
>
;
handUp
?:
()
=>
Promise
<
boolean
>
;
press
:
()
=>
Promise
<
boolean
>
;
setLongPress
?:
(
duration
:
number
)
=>
Promise
<
boolean
>
;
setMode
?:
(
mode
:
"press"
|
"switch"
)
=>
Promise
<
CommandResult
>
;
turnOff
:
()
=>
Promise
<
boolean
>
;
turnOn
:
()
=>
Promise
<
boolean
>
;
}
Implemented by
WoHand
Index
Properties
hand
Down?
hand
Up?
press
set
Long
Press?
set
Mode?
turn
Off
turn
On
Properties
Optional
hand
Down
handDown
?:
()
=>
Promise
<
boolean
>
Optional
hand
Up
handUp
?:
()
=>
Promise
<
boolean
>
press
press
:
()
=>
Promise
<
boolean
>
Optional
set
Long
Press
setLongPress
?:
(
duration
:
number
)
=>
Promise
<
boolean
>
Optional
set
Mode
setMode
?:
(
mode
:
"press"
|
"switch"
)
=>
Promise
<
CommandResult
>
turn
Off
turnOff
:
()
=>
Promise
<
boolean
>
turn
On
turnOn
:
()
=>
Promise
<
boolean
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
hand
Down
hand
Up
press
set
Long
Press
set
Mode
turn
Off
turn
On
node-switchbot
Loading...