[main] data class HaAttributes(val friendly_name: String?, val unit_of_measurement: String?, val brightness: Int? = null) Data Transfer Object representing entity attributes (metadata).
[main] object HaClient Singleton factory for managing and providing the HaApiService instance. Handles Retrofit initialization, interceptors for authentication, and caching.
[main] data class HaState(val entity_id: String, val state: String, val attributes: HaAttributes) Data Transfer Object representing the state of an entity returned by HA.
[main] class HaStateAdapter Custom GSON TypeAdapter for HaState. Manually parses the Home Assistant state object to handle dynamic attributes and deep nesting while maintaining high performance.