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

Updated Insteon Motion Sensor #205

Merged
merged 25 commits into from
Jun 1, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0aaca45
Insteon_MotionSensor: Add Generic Get Info Request
krkeegan May 14, 2013
3dd034a
Insteon_MotionSensor: Add Generic Get Info Request
krkeegan May 14, 2013
eea61e6
Insteon_MotionSensor: Add Set Query Time
krkeegan May 14, 2013
46982d7
Insteon_MotionSensor: Add Set Low Battery Level
krkeegan May 14, 2013
2e193a7
Insteon_MotionSensor: Add Battery Low Event
krkeegan May 14, 2013
48ad4ad
Insteon_MotionSensor: Add Process Message
krkeegan May 14, 2013
d752a3e
Insteon_MotionSensor: Add Is Light Level Tests
krkeegan May 14, 2013
10df49f
Insteon_MotionSensor: Add Light Level Settings
krkeegan May 14, 2013
bc511f9
Insteon_MotionSensor: Add Light Level Tests to Process Message
krkeegan May 14, 2013
c6c3c53
Insteon_MotionSensor: Add Child Objects
krkeegan May 14, 2013
508966e
Insteon_MotionSensor: Cleanup Code; Remove Event Routines
krkeegan May 14, 2013
4370b10
Insteon_MotionSensor: Cleanup Git Cherry-Pick Errors
krkeegan May 14, 2013
2dbde44
Insteon_MotionSensor: Add Routines to Set Flags
krkeegan May 16, 2013
e6be80f
Insteon_MotionSensor: Defer Identical Set Messages Received in the Sa…
krkeegan May 17, 2013
800c075
Insteon_MotionSensor: Fix Bit Mapping for Settings
krkeegan May 22, 2013
22dd501
Insteon_MotionSensor: Switch Set Routine to Use Base Classes
krkeegan May 23, 2013
7eb52aa
Insteon_MotionSensor: Make Flag Acknowledgement More Clear
krkeegan May 23, 2013
f7b71b5
Insteon_MotionSensor: Only Send Battery Request Once
krkeegan May 24, 2013
e0479c9
Insteon: Allow for Per Message Individual Retry Count
krkeegan May 24, 2013
9c89d48
Merge branch 'master' into insteon_motionsensor
krkeegan May 24, 2013
ae291ee
Merge branch 'insteon_retry_count' into insteon_motionsensor
krkeegan May 24, 2013
089b130
Insteon_MotionSensor: Change Get_Extended_Info Request to All Zeros
krkeegan May 27, 2013
cded9e3
Insteon_MotionSensor: Add Recent Variant of Extended Get/Set Response
krkeegan May 28, 2013
6d01f3a
Insteon_MotionSensor: Cleanup the Documentation
krkeegan May 29, 2013
12cf8d0
Merge branch 'master' into insteon_motionsensor
krkeegan Jun 1, 2013
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
14 changes: 13 additions & 1 deletion lib/Insteon/Message.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,22 @@ sub no_hop_increase
return $$self{no_hop_increase};
}

sub retry_count {
my ($self, $retry_count) = @_;
if ($retry_count)
{
$$self{retry_count} = $retry_count;
}
my $result_retry = 5;
$result_retry = $::config_parms{'Insteon_retry_count'} if ($::config_parms{'Insteon_retry_count'});
$result_retry = $$self{retry_count} if ($$self{retry_count});
return $result_retry;
}

sub send
{
my ($self, $interface) = @_;
if ($self->send_attempts < ($::config_parms{'Insteon_retry_count'} || 5))
if ($self->send_attempts < $self->retry_count)
{

if ($self->send_attempts > 0)
Expand Down
Loading