Package com.codellyrandom.hassle.extending.entities.actuators.climate.thermostate

Types

Link copied to clipboard
typealias Thermostat = Actuator<ThermostatState, ThermostatAttributes>
Link copied to clipboard
data class ThermostatAttributes(hvacModes: List<HvacMode>, presetModes: List<PresetMode>, currentTemperature: Temperature, minTemp: Temperature, maxTemp: Temperature, friendlyName: FriendlyName, lastChanged: Instant, lastUpdated: Instant, userId: UserId?) : Attributes
Link copied to clipboard
data class ThermostatState(value: ThermostatStateValue, temperature: Temperature?, presetMode: PresetMode) : State<ThermostatStateValue>
Link copied to clipboard
enum ThermostatStateValue : Enum<ThermostatStateValue>

Functions

Link copied to clipboard
fun Thermostat.onTurnedOff(f: Thermostat.(Switchable) -> Unit): Switchable
Link copied to clipboard
fun Thermostat.onTurnedOn(f: Thermostat.(Switchable) -> Unit): Switchable
Link copied to clipboard
suspend fun Thermostat.setPreset(preset: PresetMode)
Link copied to clipboard
suspend fun Thermostat.setTargetTemperature(temperature: Temperature)
Link copied to clipboard
fun HomeAssistantApiClient.Thermostat(objectId: ObjectId): Thermostat
Link copied to clipboard
suspend fun Thermostat.turnOff()
Link copied to clipboard
suspend fun Thermostat.turnOn()
Link copied to clipboard
suspend fun Thermostat.turnOnBoost()

Properties

Link copied to clipboard
val Thermostat.isHeating: Boolean
Link copied to clipboard
val Thermostat.isOff: Boolean
Link copied to clipboard
val Thermostat.isOn: Boolean