Create, Update and Remove Device Timer

PUT {{baseUrl}}/v1/device/:deviceUid/timer-settings

When the device should be woken up and when to turn it off to standby.

This endpoint is used for adding the Timers and also for removing Timers.

Parameters

FieldTypeRequiredDescription
deviceUidstringrequiredUnique Device Identification

Body

content-type: application/json or application/x-www-form-urlencoded

FieldTypeDescription
typestring - ‘TIMER1’, ‘TIMER2’, ‘TIMER3’, ‘TIMER4’, ‘TIMER5’, ‘TIMER6’, ‘TIMER_7’Which of seven timers you would like to set
timeOntime / NULL, HH:MM:SS / NULLWake up time for selected timer
timeOfftime / NULL, HH:MM:SS / NULLTurn off time for selected timer
volumenumber / 0-100Volume, if device has speakers
weekdays (weekdays[0-6] - for x-www-form-urlencoded)string[] / ex.: sun, mon, tue, wed, thu, fri, satFor which days the timer should be applied
levelstring - ‘NATIVE’ / ‘PROPRIETARY’Should the device turn off completely or should it just turn off the display

How to remove Timers

Set timeOn and timeOff for respective type (TIMER1, TIMER2,..) to NULL.

HEADERS

KeyDatatypeRequiredDescription
x-authstringAuthorization key and token
Content-Typestring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}