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

Remove Battery Devices from *_All Commands #540

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

krkeegan
Copy link
Collaborator

Proposed change

I remember why this was an issue and have updated issue #533.

In short battery devices are present, the sequence for the *_all command will halt when it gets to a battery device and only resume when that device has woken up and the command was sent.

This is at best confusing to the user, because they expect to see the sequence run to completion and receive a message like
"Refresh All Devices Complete"

At worst, this is problematic if a device after a battery device in the sequence is not getting the proper command and the user
assumes that it is.

Note
There is an alternative solution in which the commands are sent immediately to battery devices with the assumption that they are asleep and the command will be queued. This seems bad to me as the devices may be awake, in which case they could collide with each other. Also the messages (other than refresh for which there is a test) would just pile up in the battery device's queue potentially with numerous duplicates if these were called a lot.

Overall, I think they best option is for users to call these commands on each desired battery device directly.

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass.
  • Code documentation was added where necessary

If user exposed functionality or configuration variables are added/changed:

  • Documentation added/updated

If they are present, the sequence for the *_all command will
halt when it gets to a battery device and only resume when that
device has woken up and the command was sent.

This is at best confusing to the user, because they expect to
see the sequence run to completion and receive a message like
"Refresh All Devices Complete"

At worst, this is problematic if a device after a battery device
in the sequence is not getting the proper command and the user
assumes that it is.
insteon_mqtt/Modem.py Outdated Show resolved Hide resolved
Co-authored-by: tstabrawa <59430211+tstabrawa@users.noreply.github.com>
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.

2 participants