mainSwitchBot

Members

(inner) callback

Description:
  • SwitchBotの状態を取得したら呼ばれる関数を保持
Source:
Default Value:
  • null
SwitchBotの状態を取得したら呼ばれる関数を保持

(inner) client

Description:
  • SwitchBotとの接続を保持
Source:
Default Value:
  • null
SwitchBotとの接続を保持

(inner) config

Description:
  • mainSwitchBotのconfig
Source:
mainSwitchBotのconfig

(inner) isRun

Description:
  • 初期化して起動済みのフラグ
Source:
Default Value:
  • null
初期化して起動済みのフラグ

(inner) mainSwitchBot

Description:
  • SwitchBotとの通信を管理
Source:
SwitchBotとの通信を管理

(inner) observationJob

Description:
  • 定期的にSwitchBotの状態を取得するタイマー
Source:
Default Value:
  • null
定期的にSwitchBotの状態を取得するタイマー

(inner) persist

Description:
  • mainSwitchBotのpersist
Source:
mainSwitchBotのpersist

(inner) sendIPCMessage

Description:
  • mainSwitchBotからIPCMessageを呼ぶためのcallback
Source:
mainSwitchBotからIPCMessageを呼ぶためのcallback

Methods

(inner) control(idopt, commandopt) → {void}

Source:
Parameters:
Name Type Attributes Description
id id <optional>
command command <optional>
Returns:
Type
void

(async, inner) getCases(dateopt) → {ret}

Source:
Parameters:
Name Type Attributes Description
date date <optional>
Returns:
Type
ret

(async, inner) getConfig() → {config}

Source:
Parameters:
Type Description
void
Returns:
Type
config

(async, inner) getCurrentRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
plug plug <optional>
subQuery subQuery <optional>
Returns:
Type
rows

(async, inner) getHumidityRows(_sendIPCMessageopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
_sendIPCMessage sendIPCMessage <optional>
Returns:
Type
rows

(async, inner) getMeterList(theDayBeginopt, theDayEndopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
Returns:
Type
rows

(async, inner) getPersist() → {persist}

Source:
Parameters:
Type Description
void
Returns:
Type
persist

(async, inner) getTempratureRows(theDayBeginopt, theDayEndopt, meteropt, subQueryopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
meter meter <optional>
subQuery subQuery <optional>
Returns:
Type
rows

(async, inner) getTodayRoomEnvSwitchBot() → {object}

Source:
Parameters:
Type Description
void
Returns:
Type
object

(async, inner) getVoltageRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
plug plug <optional>
subQuery subQuery <optional>
Returns:
Type
rows

(async, inner) getWeightRows(theDayBeginopt, theDayEndopt, plugopt, subQueryopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
plug plug <optional>
subQuery subQuery <optional>
Returns:
Type
rows

(async, inner) plugMiniList(theDayBeginopt, theDayEndopt) → {rows}

Source:
Parameters:
Name Type Attributes Description
theDayBegin theDayBegin <optional>
theDayEnd theDayEnd <optional>
Returns:
Type
rows

(inner) renewFacilities(_clientopt, callback(devStatusList)opt)

Source:
Parameters:
Name Type Attributes Description
_client Object <optional>
callback(devStatusList) function <optional>

(async, inner) sendTodayRoomEnv() → {void}

Source:
Parameters:
Type Description
void
Returns:
Type
void

(async, inner) setConfig(_configopt) → {void}

Source:
Parameters:
Name Type Attributes Description
_config _config <optional>
Returns:
Type
void

(async, inner) start(_sendIPCMessageopt) → {void}

Source:
Parameters:
Name Type Attributes Description
_sendIPCMessage sendIPCMessage <optional>
Returns:
Type
void

(async, inner) stop(voidopt) → {void}

Source:
Parameters:
Name Type Attributes Description
void void <optional>
Returns:
Type
void

(async, inner) stopObservation(voidopt)

Source:
Parameters:
Name Type Attributes Description
void void <optional>

(async, inner) stopWithoutSave(voidopt) → {void}

Source:
Parameters:
Name Type Attributes Description
void void <optional>
Returns:
Type
void

(async, inner) storeData(facilitiesopt)

Source:
Parameters:
Name Type Attributes Description
facilities facilities <optional>

Type Definitions

_callback() → {void}

Source:
Returns:
Type
void