You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Add a special event to a schedule

The connector can add a special event by sending a CREATE_SPECIAL_EVENT command to any schedule in a device.

This is an example of a create special event command

Example
{
  "type": "CREATE_SPECIAL_EVENT",
  "deviceId": "Folder_I0Stk9eSboFsjerkRdyA6",
  "scheduleId": "BooleanSchedule_l0StkHQXUQFVrZuej7UiA",
  "payload": {
    "eventName": "MyEvent",
    "startDate": "2022-01-07T09:03:48Z",
    "endDate": "2022-01-07T10:03:48Z",
    "value": true
  }
}


The way that the different values are extracted from the Json can be changed in the connector advanced config.


Add a recurring event to a schedule

The connector can add a recurring event by sending a CREATE_RECURRING_EVENT command to any schedule in a device.

This is an example of a create recurring event command

Example
{
  "type": "CREATE_RECURRING_EVENT",
  "deviceId": "Folder_I0Stk9eSboFsjerkRdyA6",
  "scheduleId": "BooleanSchedule_l0StkHQXUQFVrZuej7UiA",
  "payload": {
    "weekday": "monday",
    "startTime": "09:03:48Z",
    "endTime": "10:03:48Z",
    "value": true
  }
}


The way that the different values are extracted from the Json can be changed in the connector advanced config.