OnOffTrait.ToggleCommand

object OnOffTrait.ToggleCommand : CommandDescriptor


If the device is off, turn the device on and set the onOff attribute to true.

If the device is on, turn the device off and set the onOff attribute to false.

See also
toggle

Use this command from the trait(OnOff) method.

Summary

Nested types

The request payload for the Toggle command.

Public properties

open String

Unique id corresponding to the command.

Public properties

commandId

open val commandIdString

Unique id corresponding to the command.