DispenseCommand

Description

Fields

Key Type Description
devices [Device]

Required

Variable is allowed.

item String

Optional

To use this field, all the following fields CANNOT be used: presetName

To use this field, all the following fields SHOULD be used: amount, unit

Variable is allowed.

The available values depends on each device.

amount Number

Optional

To use this field, all the following fields CANNOT be used: presetName

To use this field, all the following fields SHOULD be used: unit, item

Variable is allowed.

unit String

Optional

To use this field, all the following fields CANNOT be used: presetName

To use this field, all the following fields SHOULD be used: amount, item

Variable is allowed.

The available values depends on each device.

presetName String

Optional

To use this field, all the following fields CANNOT be used: amount, unit, item

Variable is allowed.

The available values depends on each device.

Examples

actions:
- type: device.command.Dispense
  devices: My Device - Room Name
  item: Some String
  amount: 10
  unit: Some String