line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
12
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
84
|
|
2
|
3
|
|
|
3
|
|
9
|
use warnings; |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
138
|
|
3
|
|
|
|
|
|
|
package Device::RFXCOM::Response::Thermostat; |
4
|
|
|
|
|
|
|
$Device::RFXCOM::Response::Thermostat::VERSION = '1.163170'; |
5
|
|
|
|
|
|
|
# ABSTRACT: Device::RFXCOM::Response class for Thermostat RF messages |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
46
|
use 5.006; |
|
3
|
|
|
|
|
8
|
|
9
|
3
|
|
|
3
|
|
11
|
use constant DEBUG => $ENV{DEVICE_RFXCOM_RESPONSE_THERMOSTAT_DEBUG}; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
189
|
|
10
|
3
|
|
|
3
|
|
15
|
use Carp qw/croak/; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
626
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
3
|
|
|
3
|
1
|
14
|
my ($pkg, %p) = @_; |
15
|
3
|
|
|
|
|
22
|
bless { %p }, $pkg; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
3
|
|
|
3
|
1
|
22
|
sub type { 'thermostat' } |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
3
|
|
|
3
|
1
|
13
|
sub device { shift->{device} } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
3
|
|
|
3
|
1
|
5
|
sub state { shift->{state} } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
3
|
|
|
3
|
1
|
7
|
sub temp { shift->{temp} } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
3
|
|
|
3
|
1
|
8
|
sub set { shift->{set} } |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
3
|
|
|
3
|
1
|
25
|
sub mode { shift->{mode} } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub summary { |
38
|
3
|
|
|
3
|
1
|
5
|
my $self = shift; |
39
|
3
|
|
|
|
|
9
|
sprintf('%s/%s=%d/%d/%s/%s', |
40
|
|
|
|
|
|
|
$self->type, |
41
|
|
|
|
|
|
|
$self->device, |
42
|
|
|
|
|
|
|
$self->temp, |
43
|
|
|
|
|
|
|
$self->set, |
44
|
|
|
|
|
|
|
$self->state, |
45
|
|
|
|
|
|
|
$self->mode) |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |