package top.yeij.cyrene.domain.model

data class Device(
    val id: String,
    val name: String,
    val type: DeviceType,
    val state: DeviceState,
    val room: String?,
)

enum class DeviceType {
    LIGHT,
    AC,
    CURTAIN,
    SENSOR,
    DOOR_LOCK,
    UNKNOWN,
}

data class DeviceState(
    val power: Boolean? = null,
    val brightness: Int? = null,
    val temperature: Float? = null,
    val humidity: Float? = null,
    val colorTemp: Int? = null,
    val locked: Boolean? = null,
    val open: Boolean? = null,
)
