Skip to content

Commit

Permalink
feat(deps-dev): Bump @seamapi/types from 1.341.0 to 1.344.2 in the se…
Browse files Browse the repository at this point in the history
…am group across 1 directory (#264)

* feat(deps-dev): Bump @seamapi/types in the seam group across 1 directory

Bumps the seam group with 1 update in the / directory: [@seamapi/types](https://github.com/seamapi/types).


Updates `@seamapi/types` from 1.341.0 to 1.344.2
- [Release notes](https://github.com/seamapi/types/releases)
- [Changelog](https://github.com/seamapi/types/blob/main/.releaserc.json)
- [Commits](seamapi/types@v1.341.0...v1.344.2)

---
updated-dependencies:
- dependency-name: "@seamapi/types"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: seam
...

Signed-off-by: dependabot[bot] <[email protected]>

* ci: Generate code

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seam Bot <[email protected]>
  • Loading branch information
dependabot[bot] and seambot authored Jan 30, 2025
1 parent e34b266 commit 5832147
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@prettier/plugin-php": "^0.22.1",
"@seamapi/nextlove-sdk-generator": "1.15.6",
"@seamapi/types": "1.341.0",
"@seamapi/types": "1.344.2",
"del": "^7.1.0",
"prettier": "^3.0.0"
}
Expand Down
44 changes: 44 additions & 0 deletions src/SeamClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -4404,6 +4404,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: (object) $request_payload
);
}

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

0 comments on commit 5832147

Please sign in to comment.