docs: auto-update wiki from CI/CD

Gitea Bot
2026-06-14 05:43:57 +00:00
parent 122652362d
commit 2f8b767e46
125 changed files with 1439 additions and 5 deletions

@@ -2,3 +2,4 @@
Welcome to the autogenerated API documentation.
- [Shared Module API Reference](shared/index)
- [App Module API Reference](app/index)

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getLanguage](get-language)
# getLanguage
[main]\
fun [getLanguage](get-language)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?
Gets the currently selected app language code (e.g., "pl", "en").

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getRefreshInterval](get-refresh-interval)
# getRefreshInterval
[main]\
fun [getRefreshInterval](get-refresh-interval)(context: <Error class: unknown class>): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)
Gets the background refresh interval in milliseconds. Defaults to 30s.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getSelectedEntities](get-selected-entities)
# getSelectedEntities
[main]\
fun [getSelectedEntities](get-selected-entities)(context: <Error class: unknown class>): [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)>
Gets the set of HA entity IDs selected to be displayed as widgets.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getToken](get-token)
# getToken
[main]\
fun [getToken](get-token)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
Gets the Home Assistant Long-Lived Access Token.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[getUrl](get-url)
# getUrl
[main]\
fun [getUrl](get-url)(context: <Error class: unknown class>): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
Gets the Home Assistant server URL. Defaults to "http://".

@@ -0,0 +1,23 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)
# Prefs
[main]\
object [Prefs](index)
Singleton object for managing application preferences and persistent state. Uses SharedPreferences to store connection settings and widget configurations.
## Functions
| Name | Summary |
|---|---|
| [getLanguage](get-language) | [main]<br>fun [getLanguage](get-language)(context: &lt;Error class: unknown class&gt;): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?<br>Gets the currently selected app language code (e.g., &quot;pl&quot;, &quot;en&quot;). |
| [getRefreshInterval](get-refresh-interval) | [main]<br>fun [getRefreshInterval](get-refresh-interval)(context: &lt;Error class: unknown class&gt;): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)<br>Gets the background refresh interval in milliseconds. Defaults to 30s. |
| [getSelectedEntities](get-selected-entities) | [main]<br>fun [getSelectedEntities](get-selected-entities)(context: &lt;Error class: unknown class&gt;): [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;<br>Gets the set of HA entity IDs selected to be displayed as widgets. |
| [getToken](get-token) | [main]<br>fun [getToken](get-token)(context: &lt;Error class: unknown class&gt;): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Gets the Home Assistant Long-Lived Access Token. |
| [getUrl](get-url) | [main]<br>fun [getUrl](get-url)(context: &lt;Error class: unknown class&gt;): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Gets the Home Assistant server URL. Defaults to &quot;http://&quot;. |
| [setLanguage](set-language) | [main]<br>fun [setLanguage](set-language)(context: &lt;Error class: unknown class&gt;, lang: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;<br>Saves the app language preference. |
| [setRefreshInterval](set-refresh-interval) | [main]<br>fun [setRefreshInterval](set-refresh-interval)(context: &lt;Error class: unknown class&gt;, intervalMs: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)): &lt;Error class: unknown class&gt;<br>Saves the refresh interval in milliseconds. |
| [setSelectedEntities](set-selected-entities) | [main]<br>fun [setSelectedEntities](set-selected-entities)(context: &lt;Error class: unknown class&gt;, entities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;): &lt;Error class: unknown class&gt;<br>Saves the set of selected HA entity IDs. |
| [setToken](set-token) | [main]<br>fun [setToken](set-token)(context: &lt;Error class: unknown class&gt;, token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;<br>Saves the Home Assistant Access Token. |
| [setUrl](set-url) | [main]<br>fun [setUrl](set-url)(context: &lt;Error class: unknown class&gt;, url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;<br>Saves the Home Assistant server URL. |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setLanguage](set-language)
# setLanguage
[main]\
fun [setLanguage](set-language)(context: &lt;Error class: unknown class&gt;, lang: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;
Saves the app language preference.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setRefreshInterval](set-refresh-interval)
# setRefreshInterval
[main]\
fun [setRefreshInterval](set-refresh-interval)(context: &lt;Error class: unknown class&gt;, intervalMs: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)): &lt;Error class: unknown class&gt;
Saves the refresh interval in milliseconds.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setSelectedEntities](set-selected-entities)
# setSelectedEntities
[main]\
fun [setSelectedEntities](set-selected-entities)(context: &lt;Error class: unknown class&gt;, entities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;): &lt;Error class: unknown class&gt;
Saves the set of selected HA entity IDs.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setToken](set-token)
# setToken
[main]\
fun [setToken](set-token)(context: &lt;Error class: unknown class&gt;, token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;
Saves the Home Assistant Access Token.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.data](../index)/[Prefs](index)/[setUrl](set-url)
# setUrl
[main]\
fun [setUrl](set-url)(context: &lt;Error class: unknown class&gt;, url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): &lt;Error class: unknown class&gt;
Saves the Home Assistant server URL.

@@ -0,0 +1,9 @@
//[app](../../index)/[com.example.retroha.data](index)
# Package-level declarations
## Types
| Name | Summary |
|---|---|
| [Prefs](-prefs/index) | [main]<br>object [Prefs](-prefs/index)<br>Singleton object for managing application preferences and persistent state. Uses SharedPreferences to store connection settings and widget configurations. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)/[AndroidStrings](-android-strings)
# AndroidStrings
[main]\
constructor(context: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)/[get](get)
# get
[main]\
open operator fun [get](get)(key: &lt;Error class: unknown class&gt;): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)
Resolves the StringKey to an actual string from Android resources.

@@ -0,0 +1,20 @@
//[app](../../../index)/[com.example.retroha.i18n](../index)/[AndroidStrings](index)
# AndroidStrings
[main]\
class [AndroidStrings](index)(context: &lt;Error class: unknown class&gt;)
Android-specific implementation of the Strings interface. Bridges the universal StringKey to Android's `R.string` resource system.
## Constructors
| | |
|---|---|
| [AndroidStrings](-android-strings) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;) |
## Functions
| Name | Summary |
|---|---|
| [get](get) | [main]<br>open operator fun [get](get)(key: &lt;Error class: unknown class&gt;): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)<br>Resolves the StringKey to an actual string from Android resources. |

@@ -0,0 +1,14 @@
//[app](../../../index)/[com.example.retroha.i18n](../index)/[LocaleHelper](index)
# LocaleHelper
[main]\
object [LocaleHelper](index)
Utility for handling dynamic runtime locale changes in Android. Manages resource configuration updates and context wrapping.
## Functions
| Name | Summary |
|---|---|
| [setLocale](set-locale) | [main]<br>fun [setLocale](set-locale)(context: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;<br>Applies the saved language preference to the given context. |

@@ -0,0 +1,20 @@
//[app](../../../index)/[com.example.retroha.i18n](../index)/[LocaleHelper](index)/[setLocale](set-locale)
# setLocale
[main]\
fun [setLocale](set-locale)(context: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;
Applies the saved language preference to the given context.
#### Return
A new context instance with the updated locale configuration.
#### Parameters
main
| | |
|---|---|
| context | The base context to wrap or update. |

@@ -0,0 +1,10 @@
//[app](../../index)/[com.example.retroha.i18n](index)
# Package-level declarations
## Types
| Name | Summary |
|---|---|
| [AndroidStrings](-android-strings/index) | [main]<br>class [AndroidStrings](-android-strings/index)(context: &lt;Error class: unknown class&gt;)<br>Android-specific implementation of the Strings interface. Bridges the universal StringKey to Android's `R.string` resource system. |
| [LocaleHelper](-locale-helper/index) | [main]<br>object [LocaleHelper](-locale-helper/index)<br>Utility for handling dynamic runtime locale changes in Android. Manages resource configuration updates and context wrapping. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[BrightnessRequest](-brightness-request)
# BrightnessRequest
[main]\
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[brightness](brightness)
# brightness
[main]\
val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)/[entity_id](entity_id)
# entity_id
[main]\
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)

@@ -0,0 +1,21 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[BrightnessRequest](index)
# BrightnessRequest
[main]\
data class [BrightnessRequest](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
Request body for setting light brightness.
## Constructors
| | |
|---|---|
| [BrightnessRequest](-brightness-request) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
## Properties
| Name | Summary |
|---|---|
| [brightness](brightness) | [main]<br>val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[getStates](get-states)
# getStates
[main]\
abstract fun [getStates](get-states)(): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;
Fetches the current state of all entities.

@@ -0,0 +1,16 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)
# HaApiService
[main]\
interface [HaApiService](index)
Retrofit interface defining the Home Assistant REST API endpoints.
## Functions
| Name | Summary |
|---|---|
| [getStates](get-states) | [main]<br>abstract fun [getStates](get-states)(): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;<br>Fetches the current state of all entities. |
| [setBrightness](set-brightness) | [main]<br>abstract fun [setBrightness](set-brightness)(body: [BrightnessRequest](../-brightness-request/index)): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;<br>Sets the specific brightness level for a light entity. |
| [toggle](toggle) | [main]<br>abstract fun [toggle](toggle)(domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), body: [ToggleRequest](../-toggle-request/index)): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;<br>Toggles the state of an entity in a specific domain. |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[setBrightness](set-brightness)
# setBrightness
[main]\
abstract fun [setBrightness](set-brightness)(body: [BrightnessRequest](../-brightness-request/index)): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;
Sets the specific brightness level for a light entity.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaApiService](index)/[toggle](toggle)
# toggle
[main]\
abstract fun [toggle](toggle)(domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), body: [ToggleRequest](../-toggle-request/index)): &lt;Error class: unknown class&gt;&lt;[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../-ha-state/index)&gt;&gt;
Toggles the state of an entity in a specific domain.

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[HaAttributes](-ha-attributes)
# HaAttributes
[main]\
constructor(friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[brightness](brightness)
# brightness
[main]\
val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[friendly_name](friendly_name)
# friendly_name
[main]\
val [friendly_name](friendly_name): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?

@@ -0,0 +1,22 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)
# HaAttributes
[main]\
data class [HaAttributes](index)(val friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)
Data Transfer Object representing entity attributes (metadata).
## Constructors
| | |
|---|---|
| [HaAttributes](-ha-attributes) | [main]<br>constructor(friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null) |
## Properties
| Name | Summary |
|---|---|
| [brightness](brightness) | [main]<br>val [brightness](brightness): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null |
| [friendly_name](friendly_name) | [main]<br>val [friendly_name](friendly_name): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)? |
| [unit_of_measurement](unit_of_measurement) | [main]<br>val [unit_of_measurement](unit_of_measurement): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)? |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaAttributes](index)/[unit_of_measurement](unit_of_measurement)
# unit_of_measurement
[main]\
val [unit_of_measurement](unit_of_measurement): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[clearCache](clear-cache)
# clearCache
[main]\
fun [clearCache](clear-cache)()
Clears the current service instance, forcing a rebuild on next request.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[getServiceForTest](get-service-for-test)
# getServiceForTest
[main]\
fun [getServiceForTest](get-service-for-test)(url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): [HaApiService](../-ha-api-service/index)
Creates a temporary [HaApiService](../-ha-api-service/index) instance with specific credentials for testing.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)/[getService](get-service)
# getService
[main]\
fun [getService](get-service)(context: &lt;Error class: unknown class&gt;): [HaApiService](../-ha-api-service/index)
Provides a cached or newly created [HaApiService](../-ha-api-service/index) based on saved preferences.

@@ -0,0 +1,16 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaClient](index)
# HaClient
[main]\
object [HaClient](index)
Singleton factory for managing and providing the [HaApiService](../-ha-api-service/index) instance. Handles Retrofit initialization, interceptors for authentication, and caching.
## Functions
| Name | Summary |
|---|---|
| [clearCache](clear-cache) | [main]<br>fun [clearCache](clear-cache)()<br>Clears the current service instance, forcing a rebuild on next request. |
| [getService](get-service) | [main]<br>fun [getService](get-service)(context: &lt;Error class: unknown class&gt;): [HaApiService](../-ha-api-service/index)<br>Provides a cached or newly created [HaApiService](../-ha-api-service/index) based on saved preferences. |
| [getServiceForTest](get-service-for-test) | [main]<br>fun [getServiceForTest](get-service-for-test)(url: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), token: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)): [HaApiService](../-ha-api-service/index)<br>Creates a temporary [HaApiService](../-ha-api-service/index) instance with specific credentials for testing. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[HaStateAdapter](-ha-state-adapter)
# HaStateAdapter
[main]\
constructor()

@@ -0,0 +1,21 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)
# HaStateAdapter
[main]\
class [HaStateAdapter](index)
Custom GSON TypeAdapter for [HaState](../-ha-state/index). Manually parses the Home Assistant state object to handle dynamic attributes and deep nesting while maintaining high performance.
## Constructors
| | |
|---|---|
| [HaStateAdapter](-ha-state-adapter) | [main]<br>constructor() |
## Functions
| Name | Summary |
|---|---|
| [read](read) | [main]<br>open fun [read](read)(reader: &lt;Error class: unknown class&gt;): [HaState](../-ha-state/index)<br>Parses the JSON response from HA into a [HaState](../-ha-state/index) object. |
| [write](write) | [main]<br>open fun [write](write)(out: &lt;Error class: unknown class&gt;, value: [HaState](../-ha-state/index)?)<br>Writing is not implemented as this adapter is read-only for current states. |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[read](read)
# read
[main]\
open fun [read](read)(reader: &lt;Error class: unknown class&gt;): [HaState](../-ha-state/index)
Parses the JSON response from HA into a [HaState](../-ha-state/index) object.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaStateAdapter](index)/[write](write)
# write
[main]\
open fun [write](write)(out: &lt;Error class: unknown class&gt;, value: [HaState](../-ha-state/index)?)
Writing is not implemented as this adapter is read-only for current states.

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[HaState](-ha-state)
# HaState
[main]\
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), attributes: [HaAttributes](../-ha-attributes/index))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[attributes](attributes)
# attributes
[main]\
val [attributes](attributes): [HaAttributes](../-ha-attributes/index)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[entity_id](entity_id)
# entity_id
[main]\
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)

@@ -0,0 +1,22 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)
# HaState
[main]\
data class [HaState](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val attributes: [HaAttributes](../-ha-attributes/index))
Data Transfer Object representing the state of an entity returned by HA.
## Constructors
| | |
|---|---|
| [HaState](-ha-state) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), attributes: [HaAttributes](../-ha-attributes/index)) |
## Properties
| Name | Summary |
|---|---|
| [attributes](attributes) | [main]<br>val [attributes](attributes): [HaAttributes](../-ha-attributes/index) |
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |
| [state](state) | [main]<br>val [state](state): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[HaState](index)/[state](state)
# state
[main]\
val [state](state): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)/[ToggleRequest](-toggle-request)
# ToggleRequest
[main]\
constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)/[entity_id](entity_id)
# entity_id
[main]\
val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)

@@ -0,0 +1,20 @@
//[app](../../../index)/[com.example.retroha.network](../index)/[ToggleRequest](index)
# ToggleRequest
[main]\
data class [ToggleRequest](index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))
Request body for the toggle service.
## Constructors
| | |
|---|---|
| [ToggleRequest](-toggle-request) | [main]<br>constructor(entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)) |
## Properties
| Name | Summary |
|---|---|
| [entity_id](entity_id) | [main]<br>val [entity_id](entity_id): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html) |

@@ -0,0 +1,15 @@
//[app](../../index)/[com.example.retroha.network](index)
# Package-level declarations
## Types
| Name | Summary |
|---|---|
| [BrightnessRequest](-brightness-request/index) | [main]<br>data class [BrightnessRequest](-brightness-request/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>Request body for setting light brightness. |
| [HaApiService](-ha-api-service/index) | [main]<br>interface [HaApiService](-ha-api-service/index)<br>Retrofit interface defining the Home Assistant REST API endpoints. |
| [HaAttributes](-ha-attributes/index) | [main]<br>data class [HaAttributes](-ha-attributes/index)(val friendly_name: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val unit_of_measurement: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)?, val brightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)? = null)<br>Data Transfer Object representing entity attributes (metadata). |
| [HaClient](-ha-client/index) | [main]<br>object [HaClient](-ha-client/index)<br>Singleton factory for managing and providing the [HaApiService](-ha-api-service/index) instance. Handles Retrofit initialization, interceptors for authentication, and caching. |
| [HaState](-ha-state/index) | [main]<br>data class [HaState](-ha-state/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val state: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), val attributes: [HaAttributes](-ha-attributes/index))<br>Data Transfer Object representing the state of an entity returned by HA. |
| [HaStateAdapter](-ha-state-adapter/index) | [main]<br>class [HaStateAdapter](-ha-state-adapter/index)<br>Custom GSON TypeAdapter for [HaState](-ha-state/index). Manually parses the Home Assistant state object to handle dynamic attributes and deep nesting while maintaining high performance. |
| [ToggleRequest](-toggle-request/index) | [main]<br>data class [ToggleRequest](-toggle-request/index)(val entity_id: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html))<br>Request body for the toggle service. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[BauhausCheckbox](-bauhaus-checkbox)
# BauhausCheckbox
[main]\
constructor(context: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,27 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)
# BauhausCheckbox
[main]\
class [BauhausCheckbox](index)(context: &lt;Error class: unknown class&gt;)
A custom checkbox view designed with Bauhaus aesthetics. Uses sharp geometric shapes and high-contrast colors.
## Constructors
| | |
|---|---|
| [BauhausCheckbox](-bauhaus-checkbox) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;) |
## Properties
| Name | Summary |
|---|---|
| [isChecked](is-checked) | [main]<br>var [isChecked](is-checked): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)<br>Current state of the checkbox. Triggers redraw on change. |
## Functions
| Name | Summary |
|---|---|
| [onDraw](on-draw) | [main]<br>open fun [onDraw](on-draw)(canvas: &lt;Error class: unknown class&gt;) |
| [onMeasure](on-measure) | [main]<br>open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[isChecked](is-checked)
# isChecked
[main]\
var [isChecked](is-checked): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)
Current state of the checkbox. Triggers redraw on change.

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[onDraw](on-draw)
# onDraw
[main]\
open fun [onDraw](on-draw)(canvas: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[BauhausCheckbox](index)/[onMeasure](on-measure)
# onMeasure
[main]\
open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[EntitySelectionAdapter](-entity-selection-adapter)
# EntitySelectionAdapter
[main]\
constructor(context: &lt;Error class: unknown class&gt;, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../../com.example.retroha.network/-ha-state/index)&gt;, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getCount](get-count)
# getCount
[main]\
open fun [getCount](get-count)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getItemId](get-item-id)
# getItemId
[main]\
open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getItem](get-item)
# getItem
[main]\
open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [HaState](../../com.example.retroha.network/-ha-state/index)

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)/[getView](get-view)
# getView
[main]\
open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: &lt;Error class: unknown class&gt;?, parent: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;
Resolves the view for a specific row in the list.

@@ -0,0 +1,23 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[EntitySelectionAdapter](index)
# EntitySelectionAdapter
[main]\
class [EntitySelectionAdapter](index)(context: &lt;Error class: unknown class&gt;, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../../com.example.retroha.network/-ha-state/index)&gt;, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;)
Adapter for the entity browser list. Displays Home Assistant entities with a [BauhausCheckbox](../-bauhaus-checkbox/index) for selection.
## Constructors
| | |
|---|---|
| [EntitySelectionAdapter](-entity-selection-adapter) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../../com.example.retroha.network/-ha-state/index)&gt;, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;) |
## Functions
| Name | Summary |
|---|---|
| [getCount](get-count) | [main]<br>open fun [getCount](get-count)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
| [getItem](get-item) | [main]<br>open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [HaState](../../com.example.retroha.network/-ha-state/index) |
| [getItemId](get-item-id) | [main]<br>open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-long/index.html) |
| [getView](get-view) | [main]<br>open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: &lt;Error class: unknown class&gt;?, parent: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;<br>Resolves the view for a specific row in the list. |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)/[BOLD](-b-o-l-d)
# BOLD
[main]\
val [BOLD](-b-o-l-d): &lt;Error class: unknown class&gt;
The bold monospace typeface for headers and labels.

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)/[REGULAR](-r-e-g-u-l-a-r)
# REGULAR
[main]\
val [REGULAR](-r-e-g-u-l-a-r): &lt;Error class: unknown class&gt;
The standard monospace typeface for regular text.

@@ -0,0 +1,15 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[Fonts](index)
# Fonts
[main]\
object [Fonts](index)
Central repository for custom Typefaces used in the application. Ensures consistent typography across manually drawn UI components.
## Properties
| Name | Summary |
|---|---|
| [BOLD](-b-o-l-d) | [main]<br>val [BOLD](-b-o-l-d): &lt;Error class: unknown class&gt;<br>The bold monospace typeface for headers and labels. |
| [REGULAR](-r-e-g-u-l-a-r) | [main]<br>val [REGULAR](-r-e-g-u-l-a-r): &lt;Error class: unknown class&gt;<br>The standard monospace typeface for regular text. |

@@ -0,0 +1,21 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[HaIcons](index)/[draw](draw)
# draw
[main]\
fun [draw](draw)(canvas: &lt;Error class: unknown class&gt;, domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), x: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), y: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), size: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), color: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
Renders a domain-specific icon.
#### Parameters
main
| | |
|---|---|
| canvas | The canvas to draw on. |
| domain | The HA domain string (e.g., &quot;light&quot;, &quot;switch&quot;). |
| x | X coordinate for the top-left corner of the icon bounds. |
| y | Y coordinate for the top-left corner of the icon bounds. |
| size | Diameter/Side length of the square icon area. |
| color | The color to use for rendering. |

@@ -0,0 +1,14 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[HaIcons](index)
# HaIcons
[main]\
object [HaIcons](index)
Utility for drawing Home Assistant domain icons directly onto a Canvas. Uses purely geometric Bauhaus-style shapes for high performance and stylistic consistency.
## Functions
| Name | Summary |
|---|---|
| [draw](draw) | [main]<br>fun [draw](draw)(canvas: &lt;Error class: unknown class&gt;, domain: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), x: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), y: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), size: [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-float/index.html), color: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>Renders a domain-specific icon. |

@@ -0,0 +1,14 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[LanguageIconDrawable](-language-icon-drawable)
# LanguageIconDrawable
[main]\
constructor(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
#### Parameters
main
| | |
|---|---|
| sizePx | The intrinsic size of the drawable in pixels. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[draw](draw)
# draw
[main]\
open fun [draw](draw)(canvas: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getIntrinsicHeight](get-intrinsic-height)
# getIntrinsicHeight
[main]\
open fun [getIntrinsicHeight](get-intrinsic-height)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getIntrinsicWidth](get-intrinsic-width)
# getIntrinsicWidth
[main]\
open fun [getIntrinsicWidth](get-intrinsic-width)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)

@@ -0,0 +1,14 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[getOpacity](get-opacity)
# getOpacity
[main]\
open fun [~~getOpacity~~](get-opacity)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)
---
### Deprecated
Deprecated in Java
---

@@ -0,0 +1,32 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)
# LanguageIconDrawable
class [LanguageIconDrawable](index)(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))
A custom Drawable representing a simplified globe icon. Used in the UI to indicate language settings.
#### Parameters
main
| | |
|---|---|
| sizePx | The intrinsic size of the drawable in pixels. |
## Constructors
| | |
|---|---|
| [LanguageIconDrawable](-language-icon-drawable) | [main]<br>constructor(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
## Functions
| Name | Summary |
|---|---|
| [draw](draw) | [main]<br>open fun [draw](draw)(canvas: &lt;Error class: unknown class&gt;) |
| [getIntrinsicHeight](get-intrinsic-height) | [main]<br>open fun [getIntrinsicHeight](get-intrinsic-height)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
| [getIntrinsicWidth](get-intrinsic-width) | [main]<br>open fun [getIntrinsicWidth](get-intrinsic-width)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
| [getOpacity](get-opacity) | [main]<br>open fun [~~getOpacity~~](get-opacity)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html) |
| [setAlpha](set-alpha) | [main]<br>open fun [setAlpha](set-alpha)(alpha: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
| [setColorFilter](set-color-filter) | [main]<br>open fun [setColorFilter](set-color-filter)(colorFilter: &lt;Error class: unknown class&gt;?) |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[setAlpha](set-alpha)
# setAlpha
[main]\
open fun [setAlpha](set-alpha)(alpha: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LanguageIconDrawable](index)/[setColorFilter](set-color-filter)
# setColorFilter
[main]\
open fun [setColorFilter](set-color-filter)(colorFilter: &lt;Error class: unknown class&gt;?)

@@ -0,0 +1,17 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)/[LightControlDialog](-light-control-dialog)
# LightControlDialog
[main]\
constructor(context: &lt;Error class: unknown class&gt;, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))
#### Parameters
main
| | |
|---|---|
| context | The activity context. |
| entityName | Friendly name of the light to display. |
| initialBrightness | The brightness level (0-255) when the dialog is opened. |
| onBrightnessChanged | Callback triggered when the user finishes adjusting the slider. |

@@ -0,0 +1,30 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)
# LightControlDialog
class [LightControlDialog](index)(context: &lt;Error class: unknown class&gt;, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))
A custom dialog for controlling the brightness of a light entity. Features a minimalist Bauhaus design and automatic updates on slider release.
#### Parameters
main
| | |
|---|---|
| context | The activity context. |
| entityName | Friendly name of the light to display. |
| initialBrightness | The brightness level (0-255) when the dialog is opened. |
| onBrightnessChanged | Callback triggered when the user finishes adjusting the slider. |
## Constructors
| | |
|---|---|
| [LightControlDialog](-light-control-dialog) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)) |
## Functions
| Name | Summary |
|---|---|
| [onCreate](on-create) | [main]<br>open fun [onCreate](on-create)(savedInstanceState: &lt;Error class: unknown class&gt;?) |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[LightControlDialog](index)/[onCreate](on-create)
# onCreate
[main]\
open fun [onCreate](on-create)(savedInstanceState: &lt;Error class: unknown class&gt;?)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[WidgetAdapter](-widget-adapter)
# WidgetAdapter
[main]\
constructor(context: &lt;Error class: unknown class&gt;, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;)

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getCount](get-count)
# getCount
[main]\
open fun [getCount](get-count)(): &lt;Error class: unknown class&gt;

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getItemId](get-item-id)
# getItemId
[main]\
open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): &lt;Error class: unknown class&gt;

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getItem](get-item)
# getItem
[main]\
open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): &lt;Error class: unknown class&gt;

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[getView](get-view)
# getView
[main]\
open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: &lt;Error class: unknown class&gt;?, parent: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;
Provides or recycles a [WidgetCardView](../-widget-card-view/index) for the grid.

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[hasStableIds](has-stable-ids)
# hasStableIds
[main]\
open fun [hasStableIds](has-stable-ids)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html)

@@ -0,0 +1,32 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)
# WidgetAdapter
[main]\
class [WidgetAdapter](index)(context: &lt;Error class: unknown class&gt;, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;)
Adapter for the main dashboard grid. Manages the lifecycle and data binding for [WidgetCardView](../-widget-card-view/index) instances.
## Constructors
| | |
|---|---|
| [WidgetAdapter](-widget-adapter) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;) |
## Properties
| Name | Summary |
|---|---|
| [onLongToggle](on-long-toggle) | [main]<br>var [onLongToggle](on-long-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for long clicks (more info / brightness dialog). |
| [onToggle](on-toggle) | [main]<br>var [onToggle](on-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for short clicks (toggle/execute action). |
## Functions
| Name | Summary |
|---|---|
| [getCount](get-count) | [main]<br>open fun [getCount](get-count)(): &lt;Error class: unknown class&gt; |
| [getItem](get-item) | [main]<br>open fun [getItem](get-item)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): &lt;Error class: unknown class&gt; |
| [getItemId](get-item-id) | [main]<br>open fun [getItemId](get-item-id)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)): &lt;Error class: unknown class&gt; |
| [getView](get-view) | [main]<br>open fun [getView](get-view)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), convertView: &lt;Error class: unknown class&gt;?, parent: &lt;Error class: unknown class&gt;): &lt;Error class: unknown class&gt;<br>Provides or recycles a [WidgetCardView](../-widget-card-view/index) for the grid. |
| [hasStableIds](has-stable-ids) | [main]<br>open fun [hasStableIds](has-stable-ids)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-boolean/index.html) |
| [updateItems](update-items) | [main]<br>fun [updateItems](update-items)(newItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;)<br>Updates the list of items displayed in the grid. |

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[onLongToggle](on-long-toggle)
# onLongToggle
[main]\
var [onLongToggle](on-long-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
Callback for long clicks (more info / brightness dialog).

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[onToggle](on-toggle)
# onToggle
[main]\
var [onToggle](on-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
Callback for short clicks (toggle/execute action).

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetAdapter](index)/[updateItems](update-items)
# updateItems
[main]\
fun [updateItems](update-items)(newItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;)
Updates the list of items displayed in the grid.

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[WidgetCardView](-widget-card-view)
# WidgetCardView
[main]\
constructor(context: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,16 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[bind](bind)
# bind
[main]\
fun [bind](bind)(cfg: &lt;Error class: unknown class&gt;)
Binds new data to the widget and updates the visual state. Triggers layout recalculation if text content or view width has changed.
#### Parameters
main
| | |
|---|---|
| cfg | The new configuration data for this widget. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[drawableStateChanged](drawable-state-changed)
# drawableStateChanged
[main]\
open fun [drawableStateChanged](drawable-state-changed)()

@@ -0,0 +1,31 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)
# WidgetCardView
[main]\
class [WidgetCardView](index)(context: &lt;Error class: unknown class&gt;)
A highly optimized custom View that renders a single Home Assistant entity card. Part of the &quot;Bauhaus Canvas&quot; engine, it avoids XML overhead by manually drawing everything. Supports state-based coloring, pulsing animations for transitions, and haptic feedback.
## Constructors
| | |
|---|---|
| [WidgetCardView](-widget-card-view) | [main]<br>constructor(context: &lt;Error class: unknown class&gt;) |
## Properties
| Name | Summary |
|---|---|
| [onLongToggle](on-long-toggle) | [main]<br>var [onLongToggle](on-long-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for long clicks (more info / brightness dialog). |
| [onToggle](on-toggle) | [main]<br>var [onToggle](on-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?<br>Callback for short clicks (toggle/execute action). |
## Functions
| Name | Summary |
|---|---|
| [bind](bind) | [main]<br>fun [bind](bind)(cfg: &lt;Error class: unknown class&gt;)<br>Binds new data to the widget and updates the visual state. Triggers layout recalculation if text content or view width has changed. |
| [drawableStateChanged](drawable-state-changed) | [main]<br>open fun [drawableStateChanged](drawable-state-changed)() |
| [onDraw](on-draw) | [main]<br>open fun [onDraw](on-draw)(canvas: &lt;Error class: unknown class&gt;) |
| [onMeasure](on-measure) | [main]<br>open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |
| [onSizeChanged](on-size-changed) | [main]<br>open fun [onSizeChanged](on-size-changed)(w: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), h: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldw: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldh: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onDraw](on-draw)
# onDraw
[main]\
open fun [onDraw](on-draw)(canvas: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onLongToggle](on-long-toggle)
# onLongToggle
[main]\
var [onLongToggle](on-long-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
Callback for long clicks (more info / brightness dialog).

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onMeasure](on-measure)
# onMeasure
[main]\
open fun [onMeasure](on-measure)(widthMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), heightMeasureSpec: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onSizeChanged](on-size-changed)
# onSizeChanged
[main]\
open fun [onSizeChanged](on-size-changed)(w: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), h: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldw: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), oldh: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))

@@ -0,0 +1,8 @@
//[app](../../../index)/[com.example.retroha.ui](../index)/[WidgetCardView](index)/[onToggle](on-toggle)
# onToggle
[main]\
var [onToggle](on-toggle): (&lt;Error class: unknown class&gt;) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html)?
Callback for short clicks (toggle/execute action).

@@ -0,0 +1,16 @@
//[app](../../index)/[com.example.retroha.ui](index)
# Package-level declarations
## Types
| Name | Summary |
|---|---|
| [BauhausCheckbox](-bauhaus-checkbox/index) | [main]<br>class [BauhausCheckbox](-bauhaus-checkbox/index)(context: &lt;Error class: unknown class&gt;)<br>A custom checkbox view designed with Bauhaus aesthetics. Uses sharp geometric shapes and high-contrast colors. |
| [EntitySelectionAdapter](-entity-selection-adapter/index) | [main]<br>class [EntitySelectionAdapter](-entity-selection-adapter/index)(context: &lt;Error class: unknown class&gt;, items: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[HaState](../com.example.retroha.network/-ha-state/index)&gt;, selectedEntities: [Set](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-set/index.html)&lt;[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html)&gt;)<br>Adapter for the entity browser list. Displays Home Assistant entities with a [BauhausCheckbox](-bauhaus-checkbox/index) for selection. |
| [Fonts](-fonts/index) | [main]<br>object [Fonts](-fonts/index)<br>Central repository for custom Typefaces used in the application. Ensures consistent typography across manually drawn UI components. |
| [HaIcons](-ha-icons/index) | [main]<br>object [HaIcons](-ha-icons/index)<br>Utility for drawing Home Assistant domain icons directly onto a Canvas. Uses purely geometric Bauhaus-style shapes for high performance and stylistic consistency. |
| [LanguageIconDrawable](-language-icon-drawable/index) | [main]<br>class [LanguageIconDrawable](-language-icon-drawable/index)(sizePx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html))<br>A custom Drawable representing a simplified globe icon. Used in the UI to indicate language settings. |
| [LightControlDialog](-light-control-dialog/index) | [main]<br>class [LightControlDialog](-light-control-dialog/index)(context: &lt;Error class: unknown class&gt;, entityName: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-string/index.html), initialBrightness: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html), onBrightnessChanged: ([Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-int/index.html)) -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin/-unit/index.html))<br>A custom dialog for controlling the brightness of a light entity. Features a minimalist Bauhaus design and automatic updates on slider release. |
| [WidgetAdapter](-widget-adapter/index) | [main]<br>class [WidgetAdapter](-widget-adapter/index)(context: &lt;Error class: unknown class&gt;, initialItems: [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;&lt;Error class: unknown class&gt;&gt;)<br>Adapter for the main dashboard grid. Manages the lifecycle and data binding for [WidgetCardView](-widget-card-view/index) instances. |
| [WidgetCardView](-widget-card-view/index) | [main]<br>class [WidgetCardView](-widget-card-view/index)(context: &lt;Error class: unknown class&gt;)<br>A highly optimized custom View that renders a single Home Assistant entity card. Part of the &quot;Bauhaus Canvas&quot; engine, it avoids XML overhead by manually drawing everything. Supports state-based coloring, pulsing animations for transitions, and haptic feedback. |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[BaseActivity](-base-activity)
# BaseActivity
[main]\
constructor()

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[attachBaseContext](attach-base-context)
# attachBaseContext
[main]\
open fun [attachBaseContext](attach-base-context)(newBase: &lt;Error class: unknown class&gt;)

@@ -0,0 +1,31 @@
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)
# BaseActivity
abstract class [BaseActivity](index)
Base activity class that provides automatic localization support. All activities in the application should extend this class to ensure dynamic language changes are applied correctly.
#### Inheritors
| |
|---|
| [ConnectionSettingsActivity](../-connection-settings-activity/index) |
| [EntitySelectionActivity](../-entity-selection-activity/index) |
| [InstructionsActivity](../-instructions-activity/index) |
| [LanguageActivity](../-language-activity/index) |
| [MainActivity](../-main-activity/index) |
| [SettingsActivity](../-settings-activity/index) |
## Constructors
| | |
|---|---|
| [BaseActivity](-base-activity) | [main]<br>constructor() |
## Functions
| Name | Summary |
|---|---|
| [attachBaseContext](attach-base-context) | [main]<br>open fun [attachBaseContext](attach-base-context)(newBase: &lt;Error class: unknown class&gt;) |
| [onCreate](on-create) | [main]<br>open fun [onCreate](on-create)(savedInstanceState: &lt;Error class: unknown class&gt;?) |

@@ -0,0 +1,6 @@
//[app](../../../index)/[com.example.retroha](../index)/[BaseActivity](index)/[onCreate](on-create)
# onCreate
[main]\
open fun [onCreate](on-create)(savedInstanceState: &lt;Error class: unknown class&gt;?)

Some files were not shown because too many files have changed in this diff Show More