diff --git a/package-lock.json b/package-lock.json index 4fffe444..48793ebc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,8 @@ "@prettier/plugin-php": "^0.25.0", "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", - "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1136.0", + "@seamapi/smith": "^1.1.1", + "@seamapi/types": "1.1137.0", "change-case": "^5.4.4", "execa": "^10.0.1", "prettier": "^3.9.6" @@ -849,9 +849,9 @@ } }, "node_modules/@seamapi/smith": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.1.0.tgz", - "integrity": "sha512-sI542rvN7Kq+whft3Ff5R6RRB7ORu2y23TGZOHtvEoxNp2OIYwf/wSuuY+7fZhZvIMvDsXSQJQyytOfrgKpxgg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@seamapi/smith/-/smith-1.1.1.tgz", + "integrity": "sha512-AcDsvtfhrfJLfkZ2m7uXCgkQL5rpaCQDE+d71f9mc3lUAv3otZv4IkNv0hvK4wjaaRJ3QEp+9tiu0fR4M64jYw==", "dev": true, "license": "MIT", "dependencies": { @@ -882,9 +882,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.1136.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1136.0.tgz", - "integrity": "sha512-q1J+0q0S+y39NG9TZqwhqmu2x2uMPdZApMgv7a5ob43o8qugYXxgS/KPqRiJtAAkIvssW7O9Nq9vcy8R2hTdTg==", + "version": "1.1137.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1137.0.tgz", + "integrity": "sha512-AoIq3IlMsWfq8AKmezpcKydBvL6jKl/aBS0YkrrT6H3+qqksfQO1aXzJIOXGiXZ6RcXLAUwH74hs2uyLxlT2Iw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index f908328d..671c983a 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "@prettier/plugin-php": "^0.25.0", "@seamapi/blueprint": "^1.12.0", "@seamapi/fake-seam-connect": "2.0.6", - "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.1136.0", + "@seamapi/smith": "^1.1.1", + "@seamapi/types": "1.1137.0", "change-case": "^5.4.4", "execa": "^10.0.1", "prettier": "^3.9.6" diff --git a/src/Resources/Device.php b/src/Resources/Device.php index 37d78dfe..35ae51cc 100644 --- a/src/Resources/Device.php +++ b/src/Resources/Device.php @@ -4000,20 +4000,57 @@ public static function from_json(mixed $json): TadoMetadata|null return null; } return new self( + device_serial_numbers: $json->device_serial_numbers ?? null, device_type: $json->device_type ?? null, + home_generation: $json->home_generation ?? null, + home_id: $json->home_id ?? null, + home_name: $json->home_name ?? null, serial_no: $json->serial_no ?? null, + zone_id: $json->zone_id ?? null, + zone_name: $json->zone_name ?? null, + zone_type: $json->zone_type ?? null, ); } public function __construct( /** - * Device type for a tado° device. + * Serial numbers of all tado° devices in the zone. + * + * @var list|null + */ + public array|null $device_serial_numbers = null, + /** + * Device type of the main tado° device in the zone, such as `RU02`, `VA02` or `WR02`. */ public string|null $device_type = null, /** - * Serial number for a tado° device. + * Generation of the tado° home, such as `PRE_LINE_X`. + */ + public string|null $home_generation = null, + /** + * ID of the tado° home. + */ + public string|null $home_id = null, + /** + * Name of the tado° home. + */ + public string|null $home_name = null, + /** + * Serial number of the main tado° device in the zone, such as its wall thermostat or Smart AC Control. */ public string|null $serial_no = null, + /** + * ID of the tado° zone within its home. + */ + public string|null $zone_id = null, + /** + * Name of the tado° zone. + */ + public string|null $zone_name = null, + /** + * Type of the tado° zone: `HEATING` or `AIR_CONDITIONING`. + */ + public string|null $zone_type = null, ) {} }