Contents

changeToMode(with:completion:)

Command ChangeToMode

Declaration

func changeToMode(with params: MTROvenModeClusterChangeToModeParams, completion: @escaping  @Sendable (MTROvenModeClusterChangeToModeResponseParams?, (any Error)?) -> Void)
func changeToMode(with params: MTROvenModeClusterChangeToModeParams) async throws -> MTROvenModeClusterChangeToModeResponseParams

Discussion

This command is used to change device modes.