|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace LauLamanApps\NestApi\Client\Structure; |
|
6
|
|
|
|
|
7
|
|
|
use DateTimeImmutable; |
|
8
|
|
|
use LauLamanApps\NestApi\Client\Device\Thermostat\HvacMode; |
|
9
|
|
|
use LauLamanApps\NestApi\Client\Device\Thermostat\HvacState; |
|
10
|
|
|
use LauLamanApps\NestApi\Client\Device\Thermostat\Temperature; |
|
11
|
|
|
use LauLamanApps\NestApi\Client\Device\Thermostat\Temperature\Scale; |
|
12
|
|
|
use LauLamanApps\NestApi\Client\DeviceProxy; |
|
13
|
|
|
use LauLamanApps\NestApi\NestClientInterface; |
|
14
|
|
|
|
|
15
|
|
|
/** |
|
16
|
|
|
* @method string getDeviceId() |
|
17
|
|
|
* @method string getWhereId() |
|
18
|
|
|
* @method string getStructureId() |
|
19
|
|
|
* @method string getName() |
|
20
|
|
|
* @method string getNameLong() |
|
21
|
|
|
* @method Scale getScale() |
|
22
|
|
|
* @method string getLocale() |
|
23
|
|
|
* @method string getSoftwareVersion() |
|
24
|
|
|
* @method bool isCanHeat() |
|
25
|
|
|
* @method bool isCanCool() |
|
26
|
|
|
* @method bool isHasFan() |
|
27
|
|
|
* @method Temperature getAmbientTemperature() |
|
28
|
|
|
* @method Temperature getTargetTemperature() |
|
29
|
|
|
* @method Temperature getTargetTemperatureHigh() |
|
30
|
|
|
* @method Temperature getTargetTemperatureLow() |
|
31
|
|
|
* @method Temperature getLockedTempMin() |
|
32
|
|
|
* @method Temperature getLockedTempMax() |
|
33
|
|
|
* @method bool isHasLeaf() |
|
34
|
|
|
* @method int getHumidity() |
|
35
|
|
|
* @method HvacMode getHvacMode() |
|
36
|
|
|
* @method HvacState getHvacState() |
|
37
|
|
|
* @method bool isUsingEmergencyHeat() |
|
38
|
|
|
* @method bool isLocked() |
|
39
|
|
|
* @method bool isOnline() |
|
40
|
|
|
* @method null|DateTimeImmutable getLastConnection() |
|
41
|
|
|
* @method bool isFanTimerActive() |
|
42
|
|
|
* @method DateTimeImmutable getFanTimerTimeout() |
|
43
|
|
|
* @method void setScale(Scale $scale) |
|
44
|
|
|
* @method void setTargetTemperature(Temperature $temperature) |
|
45
|
|
|
* @method void setTargetTemperatureHigh(Temperature $temperature) |
|
46
|
|
|
* @method void setTargetTemperatureLow(Temperature $temperature) |
|
47
|
|
|
* @method void setEcoTemperatureHigh(Temperature $temperature) |
|
48
|
|
|
* @method void setEcoTemperatureLow(Temperature $temperature) |
|
49
|
|
|
* @method void setHvacMode(HvacMode $mode) |
|
50
|
|
|
* @method void setLabel(string $label) |
|
51
|
|
|
* @method void setFanTimerDuration(int $duration) |
|
52
|
|
|
*/ |
|
53
|
|
|
final class ThermostatProxy extends DeviceProxy |
|
54
|
|
|
{ |
|
55
|
2 |
|
protected function __load(NestClientInterface $client, string $deviceId) |
|
56
|
|
|
{ |
|
57
|
2 |
|
return $client->getThermostat($deviceId); |
|
58
|
|
|
} |
|
59
|
|
|
} |
|
60
|
|
|
|