The sample app showcases the basic capabilities of device access and control using the Home APIs for the device types it supports.
Once account authorization is complete and a structure has been selected, the sample app loads all local devices found in that structure. If the device is in a room, it will be listed under that room. The sample app supports these device types:
- Color Temperature Light
- Dimmable Light
- Door Lock
- Extended Color Light
- Fan
- Occupancy Sensor
- On/Off Light
- On/Off Plug-in Unit
- Temperature Sensor
- Thermostat
- Window Covering
Actions on existing devices and automations
The sample app consists of two tabs - Devices and Automations. Each tab provides information about the structure and lets you perform tasks.
Devices tab
The Devices tab (Figure 1) shows the rooms in the structure (Bathroom, Den, Office) and the devices for each room, along with the status of each device. You can also disconnect your device or update permissions by clicking the more_horiz icon at the top right of the screen (Figure 2).


Automations tab
The Automations tab (Figure 3) shows a list of all automations for the structure. Each automation shows its starters and actions. Multiple starters and actions are supported.
Tap an automation to view its details, as shown in the example in Figure 4. In this detailed view, you can see the detailed description of the starters, conditions, and actions.


Create an automation
To create a new automation, tap the +Add button from the automations list view (Figure 3). The next screen will show a list of suggested automations. Select the automation you want (Figure 5). If nothing auto-populates, then the structure doesn't contain the sufficient devices needed for automation. For example, if you would like to turn on the fan and light, the structure should contain both the fan and light devices, otherwise the automations will not display.
After selecting your automation, you will see the Starters, Conditions and Actions (Figure 6). Click Save to add your automation (Figure 7).



Edit an automation
To edit the Automation name and description, from the detailed automation view (Figure 4), click the settings icon and click Edit name (Figure 8). As shown in Figure 9, edit the name and description and go back once completed (Figure 8). To save, click the settings icon and then click Save.


Delete an Automation
To delete an automation, go to the automation overview (Figure 7). Swipe left on the automation you want to delete and click the delete icon (Figure 10).
