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

Conversation

krkeegan
Copy link
Collaborator

Adds support for a number of features:

  • Querying of Battery and Light Level States (Not documented by Insteon, but will hopefully remain supported)
  • Child Objects to track the Light Level and Battery States
  • Setting LED brightness
  • Setting Motion Timeout
  • Setting Light Sensitivity
  • Enabling Night Only Mode
  • Enabling On Only Mode
  • Enable Report All Motion

Includes merge request for Unique Message Retry Count

Conflicts:
	lib/Insteon/Security.pm
Conflicts:
	lib/Insteon/Security.pm
Conflicts:
	lib/Insteon/Security.pm
Conflicts:
	lib/Insteon/Security.pm
-Fix last bugs and cleanup code

-Remove event routines, instead if you want to tie an event to a state, you should use the child objects.

Conflicts:
	lib/Insteon/Security.pm
…me Pass

Fixes the issue found by @peloy in which multiple set messages could be called in one pass.  By checking state_final, this ensures that the subsequent messages are deferred as expected.

Partially fixes hollie#185
The prior design failed to set the state of linked devices when motion was triggered.

Routine now follows the normal design which calls set in DeviceController.
The device won't be awake for subsequent requests, and they only gum up the works.
May be of limited use, but at least in a few instances you only want to try a message once and forgo all retries.
Newer Motion Sensors, at least since Feb 2013, respond to the get_extended_info request with D1-D2 = 0101, while older models respond with D1-D2=0001.
krkeegan added a commit that referenced this pull request Jun 1, 2013
@krkeegan krkeegan merged commit 9ba0a19 into hollie:master Jun 1, 2013
@hollie hollie mentioned this pull request Jun 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant