# HasHomeDevices

# HasHomeDevices


```
interface HasHomeDevices
```

<br />

Known direct subclasses [Room](https://developers.home.google.com/reference/kotlin/com/google/home/Room), [Structure](https://developers.home.google.com/reference/kotlin/com/google/home/Structure)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/Room` | An object that represents a Room in a `https://developers.home.google.com/reference/kotlin/com/google/home/Structure`. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/Structure` | The top-level organizing construct for the `https://developers.home.google.com/reference/kotlin/com/google/home/Home`. |

*** ** * ** ***

Query devices within the implementation context (`https://developers.home.google.com/reference/kotlin/com/google/home/HomeManager`, `https://developers.home.google.com/reference/kotlin/com/google/home/Structure`, `https://developers.home.google.com/reference/kotlin/com/google/home/Room`) the caller has permissions to access.

## Summary

| ### Public functions |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/HomeObjectsFlow<https://developers.home.google.com/reference/kotlin/com/google/home/HomeDevice>` | `https://developers.home.google.com/reference/kotlin/com/google/home/HasHomeDevices#devices(kotlin.Boolean)(enableMultipartDevices: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` Gets an observable flow of `https://developers.home.google.com/reference/kotlin/com/google/home/HomeDevice`s visible to the logged-in user, dependent on the context of the implementation (`https://developers.home.google.com/reference/kotlin/com/google/home/HomeManager`, `https://developers.home.google.com/reference/kotlin/com/google/home/Structure`, `https://developers.home.google.com/reference/kotlin/com/google/home/Room`). |

## Public functions

### devices

```
fun devices(enableMultipartDevices: Boolean = false): HomeObjectsFlow<HomeDevice>
```

Gets an observable flow of `https://developers.home.google.com/reference/kotlin/com/google/home/HomeDevice`s visible to the logged-in user, dependent on the context of the implementation (`https://developers.home.google.com/reference/kotlin/com/google/home/HomeManager`, `https://developers.home.google.com/reference/kotlin/com/google/home/Structure`, `https://developers.home.google.com/reference/kotlin/com/google/home/Room`).

| Parameters |
|---|---|
| `enableMultipartDevices: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html = false` | When this is true, the flow will emit the multi-part devices with organized in hierarchy of DeviceTypes. If this is false, the flow will emit the parts of the multi-part device as individual devices. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/HomeObjectsFlow<https://developers.home.google.com/reference/kotlin/com/google/home/HomeDevice>` | a flow of `https://developers.home.google.com/reference/kotlin/com/google/home/HomeDevice`s. |