Garage Manual Control
1. Initialization of the component
HomeControlSDKComponent is the main entry point for every HomeControl functionality, in order to get a configured instance initialize it like in the following snippet:
1 2 3 4 5 |
|
2. Supported Device Types and Action States
List of available device types and valid action state for each family of devices:
Device Type | Device State |
---|---|
Garage Door Opener (GDO), Gate,
Door, Gateway |
OPEN
CLOSE STOP |
Light, Lamp |
ON
OFF |
Lock | LOCK
UNLOCK |
Info
Before being able to control the devices, make sure you have successfully been authenticated.
3. Door Manual Control - Change Door Action
In order to create a ChangeDoorAction request the device type, serial number and action state are required.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Info
ViewModelScope is a CoroutineScope, bound to the lifetime of a ViewModel. A coroutine launched in viewModelScope will be cancelled when the ViewModel is cleared.
4. Lock/Light Manual Control
Info
Currently in progress.