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

Insteon: Update Support for RemoteLinc #207

Merged
merged 18 commits into from
Jun 1, 2013

Conversation

krkeegan
Copy link
Collaborator

@krkeegan krkeegan commented Jun 1, 2013

Adds a few features to the RemoteLinc code:

  • Setting the "awake time," or how long the device remains awake listening for commands after sending a command.
  • Setting the battery timer - similar to the Motion Sensor code, this sets the frequency at which MH polls the device for its battery level
  • Adds a battery level child object - If used, the state of the object represents the voltage of the battery on the device. Events can be tied to this object to provide warnings when the battery becomes low.

Relies on the "Specific Retry Count" pull request.

krkeegan added 18 commits May 9, 2013 21:53
…ttery Status

The following likely only works for i2cs devices, I think all Remotelinc 2 devices are i2cs?  It at least works on rev 1.4.

- set_awake_time sets = sets the time in seconds that the remote will remain awake after sending a command.  The default is 4, it can be set up to 254 seconds, with 255 being always awake.

- get_extended_info = is primarily added to get the battery level.  Battery level is returned as a byte, but the number does not immediately make sense.  I will have to let the batter run down some to better understand what it means.

At the moment, I have the code set to call get_extended_info whenever the all_link_report is received.  This report represents the last message sent by the device before the awake time begins to run.  In the future, an additional function can be added to only call get_extended_info if it hasn't been called in x hours.

N.B. in order for set_awake_time to work properly, the engine version of the device must be known.

hollie#172
I think that the battery level is reported is volts * 50.  Online it lists the battery voltage as 3.7 and I am getting numbers like 177 right now.  Finally, one stray comment from Insteon suggested that they believe 0xA3 or 163 to be the low voltage warning level.
This is a generic object that is "tied" to the battery events in the parent RemoteLinc.  It can be used to display the battery voltage on the RemoteLinc on the MH web page or to directly tie events to rather than using the low_battery_event code.
No need to reinvent the wheel, low batter events can be tracked using the child objects and tied events
If the device doesn't hear the first request, it won't be awake to hear subsequent ones.  Sending subsequent messages only slows things down.
krkeegan added a commit that referenced this pull request Jun 1, 2013
Insteon: Update Support for RemoteLinc
@krkeegan krkeegan merged commit 37a85e7 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