DGovee Module Overview (dgovee)
The dgovee package provides integration with Govee smart lighting systems, allowing the assistant to control physical lighting in the user's environment.
Key Features
- Light Control: Supports turning lights on/off and setting brightness and color.
- Scene Activation: Triggers pre-defined Govee scenes.
- API Client: Interfaces with the Govee HTTP and Local API.
Key Files
dgovee/dgovee.go: The core logic for controlling Govee devices.
Integration Flow
The nikki persona has access to Govee control tools. When a user says, "Nikki, turn the office lights to blue," the agent invokes the dgovee tools to execute the command. This is often used in "Welcome Home" or "Goodnight" routines orchestrated by the scheduler or wakeup.go.
Guidance for AI Agents
- User Preference: Respect the user's preferred colors and brightness levels for specific rooms.
- Confirmation: Always provide brief feedback (e.g., "Lights are now blue!") so the user knows the command was successful.