Skip to content

Commit

Permalink
ci: Generate code
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot committed Jan 23, 2025
1 parent 949d6f4 commit c2bec28
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4396,6 +4396,50 @@ public function __construct(SeamClient $seam)
$this->seam = $seam;
}

public function hvac_mode_adjusted(
string $device_id,
string $hvac_mode,
float $cooling_set_point_celsius = null,
float $cooling_set_point_fahrenheit = null,
float $heating_set_point_celsius = null,
float $heating_set_point_fahrenheit = null
): void {
$request_payload = [];

if ($device_id !== null) {
$request_payload["device_id"] = $device_id;
}
if ($hvac_mode !== null) {
$request_payload["hvac_mode"] = $hvac_mode;
}
if ($cooling_set_point_celsius !== null) {
$request_payload[
"cooling_set_point_celsius"
] = $cooling_set_point_celsius;
}
if ($cooling_set_point_fahrenheit !== null) {
$request_payload[
"cooling_set_point_fahrenheit"
] = $cooling_set_point_fahrenheit;
}
if ($heating_set_point_celsius !== null) {
$request_payload[
"heating_set_point_celsius"
] = $heating_set_point_celsius;
}
if ($heating_set_point_fahrenheit !== null) {
$request_payload[
"heating_set_point_fahrenheit"
] = $heating_set_point_fahrenheit;
}

$this->seam->request(
"POST",
"/thermostats/simulate/hvac_mode_adjusted",
json: $request_payload
);
}

public function temperature_reached(
string $device_id,
float $temperature_celsius = null,
Expand Down

0 comments on commit c2bec28

Please sign in to comment.