Skip to content

Commit 83ad3b4

Browse files
kingpanther13claude
andcommitted
feat: replace text boxes with nested toggle UI for tool config
Replace the flat comma-separated disabled_tools/pinned_tools text boxes with a Grocy-style nested object schema that renders as collapsible sections with toggles in the HA Supervisor UI. - enabled_tools: 23 collapsible groups, each with a group-level "enabled" master toggle and individual tool toggles (ON=enabled) - pinned_tools: same group structure for pinning tools in search mode, with currently-pinned tools defaulting to ON - Restore enable_yaml_config_editing as a standalone bool toggle - start.py flattens the nested config into comma-separated env vars (DISABLED_TOOLS, PINNED_TOOLS) for the server - server.py _apply_tool_visibility respects both the flat list and the enable_yaml_config_editing toggle - Mandatory tools (ha_search_entities, ha_get_state, ha_get_overview, ha_report_issue) are re-enabled regardless of user config - Full translations with friendly names and descriptions for all 92 tools - Uses 3-level nesting (supported since Supervisor 2025.09.1) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1831455 commit 83ad3b4

12 files changed

Lines changed: 2970 additions & 85 deletions

File tree

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@ LOG_LEVEL=INFO
2828
# Recommended for models without deferred tool support or with limited context.
2929
# ENABLE_TOOL_SEARCH=false
3030

31+
# Managed YAML config editing: allows ha_config_set_yaml to add/replace/remove
32+
# top-level keys in configuration.yaml and packages/*.yaml.
33+
# ENABLE_YAML_CONFIG_EDITING=false
34+
3135
# Disable specific tools or tool groups (comma-separated).
3236
# Group names: HACS, System, Automations, etc. Tool names: ha_config_set_yaml, etc.
37+
# In the add-on, this is populated automatically from the enabled_tools UI.
3338
# DISABLED_TOOLS=ha_config_set_yaml
3439

3540
# Additional tools to pin when tool search is enabled (comma-separated).
41+
# In the add-on, this is populated automatically from the pinned_tools UI.
3642
# PINNED_TOOLS=
3743

3844
# Max results from ha_search_tools (2-10, default 5).

0 commit comments

Comments
 (0)