OnOffCommand

Description

Turn the device on or off.

Fields

Key Type Description
devices [Device]

Device can be turned on/off such as light, coffee maker etc.

Required

Variable is allowed.

on Bool

Whether to turn the device on or off.

Required

Variable is allowed.

Examples

actions:
- type: device.command.OnOff
  devices: My Device - Room Name
  on: true