ButtonState

@Serializable
data class ButtonState(val report: ButtonReport? = null, val repeatInterval: Duration? = null, val events: List<ButtonEvent> = emptyList())

State of the button with last event and configuration.

Constructors

Link copied to clipboard
constructor(report: ButtonReport? = null, repeatInterval: Duration? = null, events: List<ButtonEvent> = emptyList())

Properties

Link copied to clipboard
@SerialName(value = "event_values")
val events: List<ButtonEvent>

List of all button events that this device supports.

Link copied to clipboard
@SerialName(value = "repeat_interval")
val repeatInterval: Duration?

Duration between repeat events when holding the button in milliseconds.

Link copied to clipboard
@SerialName(value = "button_report")
val report: ButtonReport?

Report of the last button event with timestamp.