Responding to Optimized Schedules
await wattshiftApiCall(`/devices/hvac/set_point_schedule/webhook/set`, { webhookUrl: "https://your-webhook-url.com", });
const schedules = await wattshiftApiCall( `/devices/hvac/${hvac.id}/set_point_schedule/get`, );
/devices/hvac/:id/set_point_schedule/get
/webhook/trigger
{ eventType: 'SET_POINT_SCHEDULE', data: { 'ws_device_123efg': { blocks: [ { startDatetime: '2024-08-03T12:00:00.000Z', endDatetime: '2024-08-04T00:00:00.000Z', targetTemp: '70', targetMode: 'AUTO', // AUTO, HEAT, COOL }, { startDatetime: '2024-08-04T00:00:00.000Z', endDatetime: '2024-08-04T12:00:00.000Z', targetTemp: '68', targetMode: 'COOL', }, ], startDatetime: '2024-08-03T12:00:00.000Z', endDatetime: '2024-08-04T12:00:00.000Z', tempUnits: 'F', // F, C }, }, }