Schedules

Create Schedule

Scope: Basic

Request URL:

POST /schedules

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
    "controller_id": "G********H3",// serial number of the device
	"days" : "0000010",// days of week you want the schedule to be active
    "active": 1,
    "from_time": 650, //time formula:(H)*60+(min)/10:50 =>10*60= 600 + 60 = 650
    "to_time": 700, //time formula:(H)*60+(min)/11:40 =>11*60= 660 + 40 = 700
    "device_hours": 14, // device hours at the moment of creatio
    "action": "command", //thermostat mode or command
    "target": 24, // target temperature or state// integer//
                     for smart plug or bobbie 0- off, 1 - on
    "push":1 // 1/0 for push notification
    "default_state": "do_nothing"// not working for vicki /"on","off","do_nothing" 
      // when schedule ends, what state you want to set the device, its for melissa bobbie smartplug
}

Response:

Fetch Controller's Schedule

Scope: Trusted

Request URL:

Headers:

Response:

Fetch Schedule

Scope: Trusted

Request URL:

Headers:

Response:

Update Schedule

Scope: Trusted

Request URL:

Headers:

Body:

Response:

Delete Schedule

Scope: Trusted

Request URL:

Headers:

Response:

Last updated