Set a field value or output status


https://api.eze.io/v1/control/{serial}/{command}/[additional commands]

Directly control a field value or output status of a controller. Note that this command will generate traffic to the controller, and is therefore rate limited to avoid excessive traffic. The field has to be set as “Writable”.

The immediate return data is a confirmation from the servers that the command was accepted. It is not an acknowledgement that the command(s) were actually received or executed on the controller.

If the API key is set up with a callback URI, a separate message will be sent to this URI when the command has been confirmed by the controller. See below for the format of the return messages.


serial ezeio serial number (XYZ123)
command Command. See below

Possible commands:

To set the value of a field: field[FIELDNO]=value


To set the state of a register: register[DEVICENO,REGISTERNO]=value


To set the state of an output, bypassing logic: output[OUTPUTNO]=value


Multiple commands can be used in the same call.

Example usage

Set the value of two fields:

Log flush

Setting the value of a field will also cause any pending buffered log samples to be sent to the servers. This only applies to the control field command. Setting register or output value does not cause a log flush.

Tip: To force a log flush without making any changes to field values, write value 0 to field[0]. This has no effect on any valid field, but will still cause a log flush.

Return value

JSON formatted data

(below examples have whitespaces added for readability)

The immediate server reply (acknowledging receipt of the command on the servers):

    "Set field 12 to 888",
    "Set field 5 to 999",
    "Callback URI: https://mydomain.com/mycallbackscript.php"

The callback message from the controller, acknowledging processing of the command:

    "name":"Test controller in lab",
    "note":"Here is a note",
      "name":"Temp (C)",
      "name":"Temp (F)",
  • ezeio2/apiref/control.txt
  • Last modified: 2023-08-08 23:26
  • by andreh