Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.2 - cosmetic fix to print lines #707

Merged
merged 1 commit into from
Jul 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/Venstar_Colortouch.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package Venstar_Colortouch;

# v2.1.1
# v2.1.2

#added in https support and don't retry commands that have a valid error reason code. Only retry if the device doesn't respond. (ie error 500)

Expand Down Expand Up @@ -1267,7 +1267,7 @@ sub process_data {
{
my $away = "home mode";
$away = "away mode" if ( $self->{data}->{info}->{away} );
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat occupancy changed to" . $away )
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat occupancy changed to " . $away )
if ( $self->{loglevel} );
$self->{previous}->{info}->{away} = $self->{data}->{info}->{away};
}
Expand All @@ -1277,7 +1277,7 @@ sub process_data {
{
my $holiday = "observing holiday";
$holiday = "no holiday" if ( $self->{data}->{info}->{holiday} );
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat holiday changed to" . $holiday )
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat holiday changed to " . $holiday )
if ( $self->{loglevel} );
$self->{previous}->{info}->{holiday} = $self->{data}->{info}->{holiday};
}
Expand All @@ -1287,15 +1287,15 @@ sub process_data {
{
my $override = "off";
$override = "on" if ( $self->{data}->{info}->{override} );
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat override changed to" . $override )
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat override changed to " . $override )
if ( $self->{loglevel} );
$self->{previous}->{info}->{override} = $self->{data}->{info}->{override};
}

if ( $self->{type} eq "commercial"
and $self->{previous}->{info}->{overridetime} != $self->{data}->{info}->{overridetime} )
{
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat overridetime changed to" . $self->{data}->{info}->{overridetime} )
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat overridetime changed to " . $self->{data}->{info}->{overridetime} )
if ( $self->{loglevel} );
$self->{previous}->{info}->{overridetime} = $self->{data}->{info}->{overridetime};
}
Expand All @@ -1305,7 +1305,7 @@ sub process_data {
{
my $forceunocc = "off";
$forceunocc = "on" if ( $self->{data}->{info}->{forceunocc} );
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat forceunocc changed to" . $forceunocc )
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Thermostat forceunocc changed to " . $forceunocc )
if ( $self->{loglevel} );
$self->{previous}->{info}->{forceunocc} = $self->{data}->{info}->{forceunocc};
}
Expand Down