Skip to content

Conversation

@rcoletti116
Copy link
Contributor

Changes:

  • accessory.ts - sets Characteristic.identify to true and uses the roomba.find command to locate the device.
  • package.json - bumps dorita980 to 3.1.10 which is required for the find command.
  • ReadMe - adds notes about Identify feature

Apple's Home app doesn't regularly expose the identify feature, but most 3rd party apps (Eve, Controller, Home+) do. Triggering 'Identify' will send a find command to the roomba, which will then beep various tones and pulse its status lights. This is ideal for finding when it has been stopped or stuck under a bed or similar.

Sets Characteristic.identify to true and uses the Roomba find command to locate the device.
Requires dorita980 3.1.10
Copy link
Collaborator

@karlvr karlvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit weird to have all of these white space changes in this PR. They muddy the PR with unrelated changes. I think the changes are good! They just don't belong here. If you'd like to split them into a separate PR "tidy white space" or similar, that would be great.

src/accessory.ts Outdated
await roomba.find();
callback();
} catch (error) {
this.log("Unable to Locate");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the callback be called with an error at this point? Check the signature of the callback; usually they support receiving an error object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

White space moved to separate PR.

Can you check this? I updated with the new main branch and noticed several key changes you've made. Hopefully this update falls in line with those, but let me know if you see any issues or concerns.

@rcoletti116 rcoletti116 mentioned this pull request Dec 14, 2021
Implements Roomba Find function using HK Identify characteristic.
@karlvr karlvr closed this in c1f6a6f Mar 12, 2022
@karlvr
Copy link
Collaborator

karlvr commented Mar 12, 2022

@rcoletti116 sorry this took me so long; the whitespace issues weren't resolved in this PR... you can see on the Files Changed tab. Also the changes weren't type safe, it appears; the identify() method doesn't support a call-back? I've remedied and merged in c1f6a6f. Thanks for contributing this. I can't test it, but it looks like it should work the same as your branch!

karlvr added a commit that referenced this pull request Mar 13, 2022
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