Skip to content

Feat/3 make lumehub compatible with google home#4

Merged
anders130 merged 6 commits intodevfrom
feat/3-make-lumehub-compatible-with-google-home
Apr 9, 2025
Merged

Feat/3 make lumehub compatible with google home#4
anders130 merged 6 commits intodevfrom
feat/3-make-lumehub-compatible-with-google-home

Conversation

@anders130
Copy link
Copy Markdown
Contributor

This pull request introduces several new features and improvements, primarily focused on adding OAuth endpoints, implementing a virtual LED controller, and integrating smart home functionalities. Below are the most important changes grouped by their themes:

OAuth Endpoints:

  • Added an OAuth authorization endpoint that generates a code and state for redirection (src/LumeHub.Server/OAuth/Authorize/Endpoint.cs).
  • Introduced a request class for the OAuth authorization endpoint to handle redirect_uri and state parameters (src/LumeHub.Server/OAuth/Authorize/Request.cs).
  • Added an OAuth token endpoint to exchange authorization codes or refresh tokens for access tokens (src/LumeHub.Server/OAuth/Token/Endpoint.cs).
  • Introduced a request class for the OAuth token endpoint to handle grant_type, client_id, and refresh_token parameters (src/LumeHub.Server/OAuth/Token/Request.cs).
  • Added a response class for the OAuth token endpoint to return access and refresh tokens (src/LumeHub.Server/OAuth/Token/Response.cs).

Virtual LED Controller:

  • Implemented a VirtualLedController class to simulate LED control in the console (src/LumeHub.Core/LedControl/Virtual/ConsoleLedController.cs).
  • Updated the program configuration to use VirtualLedController instead of DebugLedController in debug mode (src/LumeHub.Server/Program.cs). [1] [2]

Smart Home Integration:

  • Added a smart home endpoint to handle Google Smart Home intents such as SYNC, QUERY, and EXECUTE (src/LumeHub.Server/SmartHome/Endpoint.cs).
  • Introduced a request class for the smart home endpoint to handle smart home inputs and commands (src/LumeHub.Server/SmartHome/Request.cs).
  • Added a response class for the smart home endpoint to return the results of smart home commands (src/LumeHub.Server/SmartHome/Response.cs).

@anders130 anders130 requested a review from Copilot April 9, 2025 16:23
@anders130 anders130 self-assigned this Apr 9, 2025
@anders130 anders130 linked an issue Apr 9, 2025 that may be closed by this pull request
5 tasks
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Comment thread src/LumeHub.Server/OAuth/Authorize/Endpoint.cs
Comment thread src/LumeHub.Server/OAuth/Token/Request.cs Outdated
anders130 and others added 2 commits April 9, 2025 18:27
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@anders130 anders130 merged commit 96825da into dev Apr 9, 2025
1 check passed
@anders130 anders130 deleted the feat/3-make-lumehub-compatible-with-google-home branch April 9, 2025 16:30
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.

Make LumeHub compatible with Google Home

2 participants