Package com.codellyrandom.hassle.extending.entities.sensors.binary

Types

Link copied to clipboard
data class ContactAttributes(userId: UserId?, lastChanged: Instant, lastUpdated: Instant, friendlyName: FriendlyName) : Attributes
Link copied to clipboard
typealias ContactSensor = Sensor<ContactState, ContactAttributes>
Link copied to clipboard
data class ContactState(value: ContactStateValue) : State<ContactStateValue>
Link copied to clipboard
enum ContactStateValue : Enum<ContactStateValue>
Link copied to clipboard
typealias DayTime = Sensor<SwitchableState, DayTimeAttributes>
Link copied to clipboard
data class DayTimeAttributes(after: Instant, before: Instant, nextUpdate: Instant, userId: UserId?, friendlyName: FriendlyName, lastChanged: Instant, lastUpdated: Instant) : Attributes
Link copied to clipboard
typealias MotionSensor = Sensor<SwitchableState, MotionSensorAttributes>
Link copied to clipboard
data class MotionSensorAttributes(userId: UserId?, friendlyName: FriendlyName, lastChanged: Instant, lastUpdated: Instant) : Attributes

Functions

Link copied to clipboard
fun HomeAssistantApiClient.ContactSensor(objectId: ObjectId): ContactSensor
Link copied to clipboard
fun HomeAssistantApiClient.DayTime(objectId: ObjectId): DayTime
Link copied to clipboard
fun HomeAssistantApiClient.MotionSensor(objectId: ObjectId): MotionSensor
Link copied to clipboard
inline fun ContactSensor.onClosed(crossinline f: ContactSensor.(Switchable) -> Unit): Switchable
Link copied to clipboard
inline fun MotionSensor.onMotionAlarm(crossinline f: MotionSensor.(Switchable) -> Unit): Switchable
Link copied to clipboard
inline fun MotionSensor.onMotionAlarmCleared(crossinline f: MotionSensor.(Switchable) -> Unit): Switchable
Link copied to clipboard
inline fun ContactSensor.onOpened(crossinline f: ContactSensor.(Switchable) -> Unit): Switchable

Properties

Link copied to clipboard
val ContactSensor.isClosed: Boolean
Link copied to clipboard
val ContactSensor.isOpen: Boolean