Repository navigation
Add device reboot support - #312
Open
Voodoo2man wants to merge 1 commit into
Open
Voodoo2man wants to merge 1 commit into
Voodoo2man wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Response handling, token validation, and the declared input type can produce incorrect behavior.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds device reboot support using Alexa’s bearer-authenticated API.
Changes:
- Adds
rebootDevice. - Improves empty-response error messages.
- Exposes reboot support in TypeScript declarations.
File summaries
| File | Description |
|---|---|
alexa-remote.js |
Implements reboot requests and response handling. |
alexa-remote.d.ts |
Declares the reboot API. |
Review details
- Files reviewed: 1/2 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Voodoo2man
force-pushed
the
feature/reboot-device
branch
from
September 9, 2026 12:56
3682740 to
f202b78
Compare
Voodoo2man
force-pushed
the
feature/reboot-device
branch
from
September 9, 2026 12:57
f202b78 to
fc63d5f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a
rebootDevicemethod for Alexa devices that advertise theALEXA_DEVICE_REBOOTcapability.The method uses Amazon's device reboot endpoint with the required bearer token, Alexa app user-agent, and device serial/type payload. Empty successful responses are handled as success, while failed responses include the HTTP status.
Testing