1152462765
Introduce IPowerLimitEnforcementService and its implementation: turn off configured high-power switches and pause/restore entities when the limit is exceeded, notify via persistent_notification, and restore control after the recovery window once power drops below the limit. Includes cooldown handling and manual TriggerLimitBreach/ResetLimitBreach hooks, with FakeTimeProvider-based tests covering enforcement, recovery, cooldown and debug paths. Add opencode.json wiring the HomeAssistant MCP server, the .junie MCP config files, and the implementation plan in PLAN.md.
24 lines
502 B
JSON
24 lines
502 B
JSON
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"mcp": {
|
|
"homeassistant": {
|
|
"type": "local",
|
|
"command": [
|
|
"dotnet",
|
|
"run",
|
|
"--project",
|
|
"HomeAssistant.McpServer/HomeAssistant.McpServer.csproj",
|
|
"--configuration",
|
|
"Debug",
|
|
"--verbosity",
|
|
"quiet"
|
|
],
|
|
"enabled": true,
|
|
"timeout": 60000,
|
|
"environment": {
|
|
"DOTNET_NO_LOGO": "1",
|
|
"DOTNET_ENVIRONMENT": "Development"
|
|
}
|
|
}
|
|
}
|
|
} |