We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed295c commit 6849463Copy full SHA for 6849463
src/client.ts
@@ -349,4 +349,25 @@ export class Client {
349
});
350
return structure.fromJSON(response.data.data);
351
}
352
+
353
+ /**
354
+ *
355
+ * @param structure
356
+ * @param setPointC
357
+ * @returns
358
+ */
359
+ public async setStructureSetPoint(structure: Structure, setPointC: number): Promise<Structure> {
360
+ await this.updateClient();
361
+ const response = await this.client.patch(`/api/structures/${structure.id}`, {
362
+ data: {
363
+ type: 'structures',
364
+ attributes: {
365
+ 'set-point-temperature-c': setPointC,
366
+ },
367
+ relationships: {},
368
369
+ });
370
+ structure.fromJSON(response.data.data);
371
+ return structure;
372
+ }
373
0 commit comments