ManagerMobile

Access this instance at HomeyAPIV3Cloud.mobile.

Extends

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

getState

(async) getState(): Promise.<any>

Scopes

homey.system.readonly

HTTP

GET /api/manager/mobile/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

onMobileEvent

(async) onMobileEvent(opts): Promise.<any>

Scopes

-

HTTP

POST /api/manager/mobile/event

Parameters

Name Type Description
opts
object
secret
string
userId
string
deviceId
string
event
string
data
*
timestamp
string <optional>
}

Returns

Promise.<any>