hvac
set user preference
POST
/
v1
/
devices
/
hvac
/
{id}
/
user_preferences
/
set
Headers
x-ws-api-key
string
WattShift API Key
Path Parameters
id
string
requiredBody
application/json
name
string
requiredThe human-readable name for the schedule
scheduleBlocks
object[]
required0 or more blocks for this schedule to follow. If no blocks are added, the default temp will be followed
weekNumbers
number[]
requiredThe week numbers to apply this schedule. For example, [0,1,2,...,51] applies to all 52 weeks of the year. Leave empty to also apply to all weeks.
enabled
boolean
requiredWhether this schedule should be enabled
defaultMode
enum<string>
default: AUTOrequiredThe default mode for the HVAC unit.
Available options:
OFF
, HEAT
, COOL
, AUTO
tempUnits
enum<string>
requiredThe units for temperature.
Available options:
F
, C
defaultTemp
number
requiredThe default temperature for the hvac unit. This must be set unless the default mode is OFF
or there are schedule blocks added
maxTemp
number
requiredThe max default temperature
minTemp
number
requiredThe min default temperature
Response
200 - application/json
blocks
object[]
requiredstartDatetime
any
requiredISO 8601 date time string
endDatetime
any
requiredISO 8601 date time string
tempUnits
enum<string>
requiredAvailable options:
F
, C