An action is needed to initiate a remote command from the Cloud.

Here is an XML code to switch a fan on and off, which we will take as example to create a new action.

<action action_id="fan_output" device_id="dev_X20BC0087">
    <commands>
      <command command_id="ON">write_single_coil(16,[1])</command>
        <command command_id="OFF">write_single_coil(16,[0])</command>
      </commands>
    </action>

Step-by-step guide

 

Deploy the edited Site Template to the required location.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues