Members
(static) AccessoryTypes :AccessoryTypes
AccessoryTypesへの参照
Type:
- AccessoryTypes
(static) autoGet :boolean
自動状態取得フラグ (true = 自動)
Type:
- boolean
(static) autoGetCron :Object|null
自動取得用cronジョブ (永続監視のため現在は未使用)
Type:
- Object | null
(static) blinds :Object
ブラインドリスト
Type:
- Object
(static) canceled :boolean
初期化キャンセル管理フラグ
Type:
- boolean
(static) client :Object
TradfriClient インスタンス
Type:
- Object
(static) debugMode :boolean
デバッグモードフラグ
Type:
- boolean
(static) enabled :boolean
多重起動防止フラグ
Type:
- boolean
(static) facilities :Object
全機器情報リスト
Type:
- Object
(static) gw :Object
ゲートウェイ情報
Type:
- Object
(static) gwAddress :string
ゲートウェイIPアドレス
Type:
- string
(static) identity :string
接続用 Identity
Type:
- string
(static) lights :Object
ライトリスト
Type:
- Object
(static) psk :string
接続用 Pre-shared key
Type:
- string
(static) securityCode :string
ゲートウェイ裏面のセキュリティコード (初回認証時のみ必要)
Type:
- string
(static) userFunc :Object|function
コールバック関数
Type:
- Object | function
Methods
(static) _deviceRemoved(instanceId)
Parameters:
| Name | Type | Description |
|---|---|---|
instanceId |
number | 削除されたデバイスのID |
(static) _deviceUpdated(device)
Parameters:
| Name | Type | Description |
|---|---|---|
device |
Object | 更新されたデバイスオブジェクト |
(static) _observeNotifications()
(static) autoGetStart()
(static) autoGetStop()
(static) dummy(addr, dev, err)
Parameters:
| Name | Type | Description |
|---|---|---|
addr |
string | アドレス (未使用) |
dev |
Object | デバイスオブジェクト (未使用) |
err |
Object | エラーオブジェクト (未使用) |
(static) getState()
(static) initialize(securityCode, userFunc, Optionsopt) → {Promise.<(Object|null)>}
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
securityCode |
string | セキュリティコード | ||||||||||||||||||||||||||
userFunc |
function | ユーザーコールバック関数 | ||||||||||||||||||||||||||
Options |
Object |
<optional> |
オプション
Properties
|
Returns:
identityとpskを含むオブジェクト、キャンセルの場合はnull
- Type
- Promise.<(Object|null)>
(static) initializeCancel()
(static) isObjEmpty(obj) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
Object | 判定対象のオブジェクト |
Returns:
空の場合はtrue、それ以外はfalse
- Type
- boolean
(static) release() → {Promise.<void>}
Returns:
- Type
- Promise.<void>
(static) setState(devId, devType, command)
Parameters:
| Name | Type | Description |
|---|---|---|
devId |
number | デバイスID |
devType |
string | デバイスタイプ ('light' または 'blind') |
command |
Object | コマンドオブジェクト |
(static) sleep(ms) → {Promise.<void>}
Parameters:
| Name | Type | Description |
|---|---|---|
ms |
number | スリープする時間(ミリ秒) |
Returns:
- Type
- Promise.<void>