setState

suspend fun setState(on: Boolean)

Set the state locally (e.g., from a physical switch).