Contents

changeToMode(with:completion:)

Command ChangeToMode

Declaration

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

Discussion

This command is used to change device modes.