ha-mcp-dev 7.10.0.dev776__tar.gz → 7.10.0.dev778__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ha_mcp_dev-7.10.0.dev776/src/ha_mcp_dev.egg-info → ha_mcp_dev-7.10.0.dev778}/PKG-INFO +1 -1
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/pyproject.toml +1 -1
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/__main__.py +15 -84
- ha_mcp_dev-7.10.0.dev778/src/ha_mcp/browser_landing.py +138 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/README.md +1 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/SKILL.md +15 -5
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/automation-patterns.md +79 -28
- ha_mcp_dev-7.10.0.dev778/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/blueprint-guide.md +271 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/dashboard-guide.md +119 -94
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/domain-docs.md +14 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778/src/ha_mcp_dev.egg-info}/PKG-INFO +1 -1
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp_dev.egg-info/SOURCES.txt +2 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/LICENSE +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/MANIFEST.in +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/README.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/setup.cfg +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/_pypi_marker +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/_version.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/auth/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/auth/consent_form.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/auth/provider.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/backup_manager.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/client/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/client/rest_client.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/client/supervisor_client.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/client/websocket_client.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/client/websocket_listener.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/config.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/dashboard_screenshot/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/dashboard_screenshot/capture.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/dashboard_screenshot/provision.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/errors.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/approval_queue.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/evaluator.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/handlers.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/middleware.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/model.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/persistence.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/policy/value_sources.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/py.typed +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/read_only.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/.claude/settings.json +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/.claude-plugin/marketplace.json +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/.claude-plugin/plugin.json +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/.github/ISSUE_TEMPLATE/skill-rca.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/.github/pull_request_template.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/AGENTS.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/CLAUDE.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/CONTRIBUTING.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/LICENSE +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/evals/evals.json +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/appdaemon.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/dashboard-cards.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/device-control.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/examples.yaml +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/helper-selection.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/safe-refactoring.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/scenes.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/template-guidelines.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/skills/home-assistant-best-practices/references/yaml-only-integrations.md +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/server.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/settings_ui/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/settings_ui/settings.css +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/settings_ui/settings.html +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/settings_ui/settings.js +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/smoke_test.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/stdio_settings_sidecar.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/auto_backup.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/backup.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/best_practice_checker.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/config_entry_flow.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/device_control.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/enhanced.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/helpers.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/base.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/matter.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/thread.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/zigbee.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/radio/zwave.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/reference_validator.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/registry.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_base.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_config.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_deep.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_entities.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_fetch.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_overview.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_scenes.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/smart_search/_scoring.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tool_search_hint_middleware.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_addons.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_areas.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_blueprints.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_bug_report.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_calendar.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_camera.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_categories.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_code.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_config_automations.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_config_dashboards.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_config_helpers.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_config_scenes.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_config_scripts.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_dashboard_screenshot.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_energy.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_entities.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_filesystem.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_groups.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_hacs.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_history.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_integrations.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_labels.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_mcp_component.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_radio.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_registry.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_resources.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_search.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_service.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_services.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_system.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_themes.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_todo.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_traces.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_updates.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_utility.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_voice_assistant.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_yaml_config.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/tools_zones.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/util_helpers.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/tools/validation_middleware.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/transforms/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/transforms/categorized_search.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/transforms/lite_docstrings.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/transport_security.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/update_check.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/config_hash.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/data_paths.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/domain_handlers.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/fuzzy_search.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/kill_signal_diagnostics.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/operation_manager.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/python_sandbox.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/skill_loader.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/utils/usage_logger.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/visibility/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/visibility/model.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/visibility/persistence.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/visibility/resolver.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp_dev.egg-info/dependency_links.txt +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp_dev.egg-info/entry_points.txt +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp_dev.egg-info/requires.txt +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp_dev.egg-info/top_level.txt +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/tests/__init__.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/tests/test_constants.py +0 -0
- {ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/tests/test_env_manager.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ha-mcp-dev"
|
|
7
|
-
version = "7.10.0.
|
|
7
|
+
version = "7.10.0.dev778"
|
|
8
8
|
description = "Home Assistant MCP Server - Complete control of Home Assistant through MCP"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
# Upper bound widened to <3.15 so the package installs on Home Assistant's
|
|
@@ -34,8 +34,10 @@ from typing import TYPE_CHECKING, Any # noqa: E402
|
|
|
34
34
|
|
|
35
35
|
from fastmcp.exceptions import ToolError # noqa: E402
|
|
36
36
|
from pydantic import ValidationError as PydanticValidationError # noqa: E402
|
|
37
|
-
|
|
38
|
-
from
|
|
37
|
+
|
|
38
|
+
from ha_mcp.browser_landing import ( # noqa: E402
|
|
39
|
+
register_browser_landing as _register_landing_route,
|
|
40
|
+
)
|
|
39
41
|
|
|
40
42
|
if TYPE_CHECKING:
|
|
41
43
|
from fastmcp import FastMCP
|
|
@@ -962,21 +964,20 @@ async def _run_http_with_graceful_shutdown(
|
|
|
962
964
|
)
|
|
963
965
|
|
|
964
966
|
|
|
965
|
-
_registered_landing_paths: set[str] = set()
|
|
966
|
-
|
|
967
|
-
|
|
968
967
|
def register_browser_landing(
|
|
969
968
|
mcp_instance: "FastMCP | _DeferredMCP",
|
|
970
969
|
path: str,
|
|
971
970
|
*,
|
|
972
971
|
quiet_probe_log: bool = True,
|
|
973
972
|
) -> None:
|
|
974
|
-
"""Register
|
|
973
|
+
"""Register the friendly browser landing page and tidy the uvicorn access log.
|
|
975
974
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
975
|
+
Delegates the GET landing route to the reusable core in
|
|
976
|
+
:mod:`ha_mcp.browser_landing` (also used by the in-process ``ha_mcp_tools``
|
|
977
|
+
server) and, when the route is newly registered, attaches
|
|
978
|
+
:class:`ProbeAccessLogFilter` to the uvicorn access logger. Browsers and
|
|
979
|
+
misconfigured clients that send GET instead of POST see a human-readable
|
|
980
|
+
explanation instead of a bare "Method Not Allowed" error.
|
|
980
981
|
|
|
981
982
|
Args:
|
|
982
983
|
mcp_instance: The FastMCP server to register the route on.
|
|
@@ -986,83 +987,13 @@ def register_browser_landing(
|
|
|
986
987
|
access log (the handler logs an annotated replacement). Pass False
|
|
987
988
|
for SSE, where a GET answers 200 and a 405 is a genuine fault.
|
|
988
989
|
"""
|
|
989
|
-
if
|
|
990
|
-
|
|
991
|
-
"register_browser_landing: %r already registered, skipping", path
|
|
992
|
-
)
|
|
990
|
+
if not _register_landing_route(mcp_instance, path):
|
|
991
|
+
# Already registered for this path — don't double-attach the log filter.
|
|
993
992
|
return
|
|
994
|
-
_registered_landing_paths.add(path)
|
|
995
|
-
|
|
996
|
-
_landing_message = (
|
|
997
|
-
"HA-MCP server is up and running!\n"
|
|
998
|
-
"\n"
|
|
999
|
-
"To connect, paste the full URL (including the /private_... key) into the\n"
|
|
1000
|
-
"connector or MCP settings of your AI/LLM client. No username or password required.\n"
|
|
1001
|
-
"Setup instructions: https://homeassistant-ai.github.io/ha-mcp/\n"
|
|
1002
|
-
"\n"
|
|
1003
|
-
"--- Seeing this page? Your URL is set up correctly ---\n"
|
|
1004
|
-
"\n"
|
|
1005
|
-
"If this page loads in your browser, the MCP server is reachable and the\n"
|
|
1006
|
-
"URL is correct. If your AI client still cannot connect, the problem is\n"
|
|
1007
|
-
"not on HA-MCP's side. Common causes:\n"
|
|
1008
|
-
"\n"
|
|
1009
|
-
"- Geo / country blocking in your reverse proxy / CDN (Cloudflare, NGINX,\n"
|
|
1010
|
-
" Traefik, Zoraxy, etc.). Most AI/LLM services connect from US-based\n"
|
|
1011
|
-
" cloud infrastructure, so if you block US IP addresses (or only allow\n"
|
|
1012
|
-
" your own country), that is why your client cannot connect. Allow your\n"
|
|
1013
|
-
" provider's IP ranges (or your client's egress IPs). For example,\n"
|
|
1014
|
-
# Anthropic's documented outbound range; re-verify at
|
|
1015
|
-
# https://platform.claude.com/docs/en/api/ip-addresses if it ever changes.
|
|
1016
|
-
" Claude.ai connects from Anthropic's network, 160.79.104.0/21.\n"
|
|
1017
|
-
"- WAF, bot-blocking, or rate-limiting rules on the proxy that drop or\n"
|
|
1018
|
-
" challenge the request.\n"
|
|
1019
|
-
"- The AI client's network can sometimes be spotty -- you may just need\n"
|
|
1020
|
-
" to try connecting again.\n"
|
|
1021
|
-
"- The AI client itself refusing certain domains or proxy providers on\n"
|
|
1022
|
-
" its end. This is rare and outside your control; try a different\n"
|
|
1023
|
-
" hostname or proxy if you suspect it.\n"
|
|
1024
|
-
"\n"
|
|
1025
|
-
"Your proxy's access logs will show the blocked attempt -- look for the\n"
|
|
1026
|
-
"request from your AI provider's IP (e.g. an Anthropic 160.79.x.x address).\n"
|
|
1027
|
-
"\n"
|
|
1028
|
-
"--- Cloudflare Users ---\n"
|
|
1029
|
-
"\n"
|
|
1030
|
-
'If your LLM cannot connect, Cloudflare\'s "Block AI training bots"\n'
|
|
1031
|
-
"setting is the most common cause. To disable it:\n"
|
|
1032
|
-
"\n"
|
|
1033
|
-
"1. Log in to Cloudflare (https://dash.cloudflare.com)\n"
|
|
1034
|
-
"2. In the left sidebar, click Domains, then click Overview\n"
|
|
1035
|
-
"3. Click on the domain you use for connecting to Home Assistant\n"
|
|
1036
|
-
'4. On the right side, find "Control AI Crawlers"\n'
|
|
1037
|
-
'5. Under "Block AI training bots", open the dropdown\n'
|
|
1038
|
-
'6. Select "do not block (allow crawlers)"\n'
|
|
1039
|
-
"\n"
|
|
1040
|
-
"Screenshot of the setting:\n"
|
|
1041
|
-
"https://homeassistant-ai.github.io/ha-mcp/images/cloudflare-ai-crawlers-setting.jpg\n"
|
|
1042
|
-
)
|
|
1043
|
-
|
|
1044
|
-
# Safe because FastMCP registers the MCP route with methods=["POST", "DELETE"]
|
|
1045
|
-
# in stateless mode, so Starlette rejects GET requests before the MCP handler runs.
|
|
1046
|
-
# Custom routes are registered at lowest precedence (after the MCP route).
|
|
1047
|
-
@mcp_instance.custom_route(path, methods=["GET"])
|
|
1048
|
-
async def _browser_landing(_: Request) -> PlainTextResponse:
|
|
1049
|
-
# Any GET here is a non-MCP caller (browser, health check, proxy, or a
|
|
1050
|
-
# connector's SSE-style pre-flight) hitting this POST-only Streamable HTTP
|
|
1051
|
-
# endpoint, which answers 405 by design. Log one annotated line so the 405
|
|
1052
|
-
# reads as expected; ProbeAccessLogFilter drops the raw uvicorn access line
|
|
1053
|
-
# so there's no cryptic duplicate.
|
|
1054
|
-
logger.info("GET %s -> 405 (NORMAL for most non-SSE connections)", path)
|
|
1055
|
-
return PlainTextResponse(
|
|
1056
|
-
_landing_message,
|
|
1057
|
-
status_code=405,
|
|
1058
|
-
# DELETE is included per the MCP Streamable HTTP spec (used for
|
|
1059
|
-
# session termination), even though this deployment uses stateless mode.
|
|
1060
|
-
headers={"Allow": "POST, DELETE"},
|
|
1061
|
-
)
|
|
1062
993
|
|
|
1063
994
|
# Tidy uvicorn's access log: always drop browser favicon 404s, and drop the
|
|
1064
|
-
# raw by-design GET/HEAD-405 probe line on the MCP path (the handler
|
|
1065
|
-
# an annotated replacement). The 405 drop is skipped for SSE
|
|
995
|
+
# raw by-design GET/HEAD-405 probe line on the MCP path (the landing handler
|
|
996
|
+
# logs an annotated replacement). The 405 drop is skipped for SSE
|
|
1066
997
|
# (quiet_probe_log=False), where a GET answers 200 and a 405 is a real fault.
|
|
1067
998
|
# Attach to uvicorn.access directly — it has propagate=False, so a root-logger
|
|
1068
999
|
# filter would miss it.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""Friendly browser landing page for the MCP endpoint (issue #777).
|
|
2
|
+
|
|
3
|
+
A browser (or any GET client) that hits the POST-only Streamable HTTP MCP
|
|
4
|
+
endpoint would otherwise see a bare "Method Not Allowed". This module registers
|
|
5
|
+
a GET handler that answers ``405`` with a human-readable explanation plus the
|
|
6
|
+
correct ``Allow`` header, so automated clients still get the right HTTP
|
|
7
|
+
semantics.
|
|
8
|
+
|
|
9
|
+
Extracted from :mod:`ha_mcp.__main__` so the in-process server (the
|
|
10
|
+
``ha_mcp_tools`` custom-component worker thread) can register the same landing
|
|
11
|
+
page. Importing ``ha_mcp.__main__`` runs process-global side effects at module
|
|
12
|
+
load (``truststore.inject_into_ssl()``) that must never happen in-process, so
|
|
13
|
+
the reusable core lives here — free of those side effects. ``__main__`` keeps a
|
|
14
|
+
thin wrapper that additionally tidies the uvicorn access log.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from __future__ import annotations
|
|
18
|
+
|
|
19
|
+
import logging
|
|
20
|
+
import weakref
|
|
21
|
+
from typing import Any, Protocol
|
|
22
|
+
|
|
23
|
+
from starlette.requests import Request
|
|
24
|
+
from starlette.responses import PlainTextResponse
|
|
25
|
+
|
|
26
|
+
logger = logging.getLogger(__name__)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CustomRouteServer(Protocol):
|
|
30
|
+
"""Structural type for servers exposing FastMCP's ``custom_route`` decorator.
|
|
31
|
+
|
|
32
|
+
Matches the real FastMCP server and ``__main__``'s deferred proxy. Only the
|
|
33
|
+
``(path, methods)`` call shape used here is pinned; the decorator's return
|
|
34
|
+
type is left to the implementation (fastmcp also takes optional ``name`` /
|
|
35
|
+
``include_in_schema`` parameters this module never passes).
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
def custom_route(self, path: str, methods: list[str]) -> Any:
|
|
39
|
+
"""Return a decorator that registers a handler for ``methods`` at ``path``."""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# The landing body. Plain text so no browser ever interprets it as markup, and
|
|
43
|
+
# so it survives the ha_mcp_tools webhook proxy (which forwards text/plain but
|
|
44
|
+
# coerces text/html to JSON as an XSS guard).
|
|
45
|
+
LANDING_MESSAGE = (
|
|
46
|
+
"HA-MCP server is up and running!\n"
|
|
47
|
+
"\n"
|
|
48
|
+
"To connect, paste the full URL (including the /private_... key) into the\n"
|
|
49
|
+
"connector or MCP settings of your AI/LLM client. No username or password required.\n"
|
|
50
|
+
"Setup instructions: https://homeassistant-ai.github.io/ha-mcp/\n"
|
|
51
|
+
"\n"
|
|
52
|
+
"--- Seeing this page? Your URL is set up correctly ---\n"
|
|
53
|
+
"\n"
|
|
54
|
+
"If this page loads in your browser, the MCP server is reachable and the\n"
|
|
55
|
+
"URL is correct. If your AI client still cannot connect, the problem is\n"
|
|
56
|
+
"not on HA-MCP's side. Common causes:\n"
|
|
57
|
+
"\n"
|
|
58
|
+
"- Geo / country blocking in your reverse proxy / CDN (Cloudflare, NGINX,\n"
|
|
59
|
+
" Traefik, Zoraxy, etc.). Most AI/LLM services connect from US-based\n"
|
|
60
|
+
" cloud infrastructure, so if you block US IP addresses (or only allow\n"
|
|
61
|
+
" your own country), that is why your client cannot connect. Allow your\n"
|
|
62
|
+
" provider's IP ranges (or your client's egress IPs). For example,\n"
|
|
63
|
+
# Anthropic's documented outbound range; re-verify at
|
|
64
|
+
# https://platform.claude.com/docs/en/api/ip-addresses if it ever changes.
|
|
65
|
+
" Claude.ai connects from Anthropic's network, 160.79.104.0/21.\n"
|
|
66
|
+
"- WAF, bot-blocking, or rate-limiting rules on the proxy that drop or\n"
|
|
67
|
+
" challenge the request.\n"
|
|
68
|
+
"- The AI client's network can sometimes be spotty -- you may just need\n"
|
|
69
|
+
" to try connecting again.\n"
|
|
70
|
+
"- The AI client itself refusing certain domains or proxy providers on\n"
|
|
71
|
+
" its end. This is rare and outside your control; try a different\n"
|
|
72
|
+
" hostname or proxy if you suspect it.\n"
|
|
73
|
+
"\n"
|
|
74
|
+
"Your proxy's access logs will show the blocked attempt -- look for the\n"
|
|
75
|
+
"request from your AI provider's IP (e.g. an Anthropic 160.79.x.x address).\n"
|
|
76
|
+
"\n"
|
|
77
|
+
"--- Cloudflare Users ---\n"
|
|
78
|
+
"\n"
|
|
79
|
+
'If your LLM cannot connect, Cloudflare\'s "Block AI training bots"\n'
|
|
80
|
+
"setting is the most common cause. To disable it:\n"
|
|
81
|
+
"\n"
|
|
82
|
+
"1. Log in to Cloudflare (https://dash.cloudflare.com)\n"
|
|
83
|
+
"2. In the left sidebar, click Domains, then click Overview\n"
|
|
84
|
+
"3. Click on the domain you use for connecting to Home Assistant\n"
|
|
85
|
+
'4. On the right side, find "Control AI Crawlers"\n'
|
|
86
|
+
'5. Under "Block AI training bots", open the dropdown\n'
|
|
87
|
+
'6. Select "do not block (allow crawlers)"\n'
|
|
88
|
+
"\n"
|
|
89
|
+
"Screenshot of the setting:\n"
|
|
90
|
+
"https://homeassistant-ai.github.io/ha-mcp/images/cloudflare-ai-crawlers-setting.jpg\n"
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
# Landing routes already registered, keyed PER MCP INSTANCE (weakly, so a
|
|
94
|
+
# discarded server never leaks). The key must not be the path alone: the
|
|
95
|
+
# in-process server builds a NEW FastMCP on every config-entry reload in the
|
|
96
|
+
# SAME Python process while keeping the same secret path — a process-global
|
|
97
|
+
# path set would skip the re-registration and silently drop the landing page
|
|
98
|
+
# after the first reload. The CLI/add-on never sees this (their process exits).
|
|
99
|
+
_registered_landing_paths: weakref.WeakKeyDictionary[CustomRouteServer, set[str]] = (
|
|
100
|
+
weakref.WeakKeyDictionary()
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def register_browser_landing(mcp_instance: CustomRouteServer, path: str) -> bool:
|
|
105
|
+
"""Register a GET handler that returns 405 with the friendly landing message.
|
|
106
|
+
|
|
107
|
+
``mcp_instance`` is a FastMCP-like object exposing ``custom_route`` (the real
|
|
108
|
+
server or ``__main__``'s deferred proxy). Returns True if the route was newly
|
|
109
|
+
registered, False if this instance already had one for ``path`` (idempotent
|
|
110
|
+
per instance + path).
|
|
111
|
+
"""
|
|
112
|
+
paths = _registered_landing_paths.setdefault(mcp_instance, set())
|
|
113
|
+
if path in paths:
|
|
114
|
+
logger.warning(
|
|
115
|
+
"register_browser_landing: %r already registered, skipping", path
|
|
116
|
+
)
|
|
117
|
+
return False
|
|
118
|
+
paths.add(path)
|
|
119
|
+
|
|
120
|
+
# Safe because FastMCP registers the MCP route with methods=["POST", "DELETE"]
|
|
121
|
+
# in stateless mode, so Starlette rejects GET requests before the MCP handler
|
|
122
|
+
# runs. Custom routes are registered at lowest precedence (after the MCP route).
|
|
123
|
+
@mcp_instance.custom_route(path, methods=["GET"])
|
|
124
|
+
async def _browser_landing(_: Request) -> PlainTextResponse:
|
|
125
|
+
# Any GET here is a non-MCP caller (browser, health check, proxy, or a
|
|
126
|
+
# connector's SSE-style pre-flight) hitting this POST-only Streamable HTTP
|
|
127
|
+
# endpoint, which answers 405 by design. Log one annotated line so the 405
|
|
128
|
+
# reads as expected.
|
|
129
|
+
logger.info("GET %s -> 405 (NORMAL for most non-SSE connections)", path)
|
|
130
|
+
return PlainTextResponse(
|
|
131
|
+
LANDING_MESSAGE,
|
|
132
|
+
status_code=405,
|
|
133
|
+
# DELETE is included per the MCP Streamable HTTP spec (used for
|
|
134
|
+
# session termination), even though this deployment uses stateless mode.
|
|
135
|
+
headers={"Allow": "POST, DELETE"},
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
return True
|
{ha_mcp_dev-7.10.0.dev776 → ha_mcp_dev-7.10.0.dev778}/src/ha_mcp/resources/skills-vendor/README.md
RENAMED
|
@@ -63,6 +63,7 @@ The `home-assistant-best-practices` skill includes:
|
|
|
63
63
|
| `references/domain-docs.md` | Integration and domain documentation for service calls, entity attributes |
|
|
64
64
|
| `references/examples.yaml` | Compound examples combining multiple best practices |
|
|
65
65
|
| `references/appdaemon.md` | AppDaemon apps: when to use vs. native HA, app structure, service calls, scheduling, error handling, safe refactoring impact |
|
|
66
|
+
| `references/blueprint-guide.md` | Blueprint authoring: metadata & `source_url`, inputs & selectors, `target` vs `entity`, defaults, `!input` templating, versioning |
|
|
66
67
|
|
|
67
68
|
## Contributing
|
|
68
69
|
|
|
@@ -12,6 +12,7 @@ description: >
|
|
|
12
12
|
- Configuring dashboard cards or selecting helpers
|
|
13
13
|
- Looking up card types or domain docs
|
|
14
14
|
- Writing or reviewing AppDaemon apps
|
|
15
|
+
- Authoring or editing reusable Blueprints
|
|
15
16
|
|
|
16
17
|
SYMPTOMS:
|
|
17
18
|
- Agent uses Jinja2 templates where native options exist
|
|
@@ -21,8 +22,9 @@ description: >
|
|
|
21
22
|
- Agent hard-codes values or uses raw sensor over helper
|
|
22
23
|
- Agent edits .storage, writes YAML, or generates YAML snippets
|
|
23
24
|
- Agent tells user to edit configuration.yaml for UI integrations
|
|
25
|
+
- Agent hardcodes entities in a Blueprint or uses free-text input over a selector
|
|
24
26
|
metadata:
|
|
25
|
-
version:
|
|
27
|
+
version: 15
|
|
26
28
|
---
|
|
27
29
|
|
|
28
30
|
# Home Assistant Best Practices
|
|
@@ -39,10 +41,11 @@ If your change affects entity IDs or cross-component references — renaming ent
|
|
|
39
41
|
|
|
40
42
|
Steps 1-5 below apply to new config or pattern evaluation.
|
|
41
43
|
|
|
42
|
-
### 1. Check for native condition
|
|
43
|
-
|
|
44
|
+
### 1. Check for a purpose-specific, then generic native, trigger/condition
|
|
45
|
+
Since 2026.7 the default building blocks are purpose-specific triggers/conditions — `<domain>.<name>` keys (motion detected, battery low, door opened) with area/floor/label targets. Check for one that matches the intent first, then a generic native trigger/condition, and only then a template. See `references/automation-patterns.md#purpose-specific-triggers--conditions-default-since-20267`.
|
|
44
46
|
|
|
45
47
|
**Common substitutions:**
|
|
48
|
+
- List of individual sensor entities in a trigger → one purpose-specific trigger with an area/floor/label `target:`
|
|
46
49
|
- `{{ states('x') | float > 25 }}` → `numeric_state` condition with `above: 25`
|
|
47
50
|
- `{{ is_state('x', 'on') and is_state('y', 'on') }}` → `condition: and` with state conditions
|
|
48
51
|
- `{{ now().hour >= 9 }}` → `condition: time` with `after: "09:00:00"`
|
|
@@ -109,10 +112,16 @@ See `references/device-control.md#zigbee-buttonremote-patterns`.
|
|
|
109
112
|
| `vacuum.send_command` with vendor room IDs | `vacuum.clean_area` with HA `area_id` (if segments are mapped) | Uses native HA areas, works across integrations — but requires segment-to-area mapping in entity settings first | `references/device-control.md#vacuum-control` |
|
|
110
113
|
| Using `color_temp` (mireds) in light service calls | Use `color_temp_kelvin` | The `color_temp` parameter was removed in 2026.3; only Kelvin is supported | `references/device-control.md#lights` |
|
|
111
114
|
| Person/Device Tracker `entered_home`/`left_home` device triggers or `is_home`/`is_not_home` conditions | `state` trigger `to: home` / `to: not_home`, or `state` condition | These were removed in 2026.5 — state triggers and conditions are the correct replacements | `references/automation-patterns.md#presence-and-person-triggers-and-conditions-removed-in-20265` |
|
|
115
|
+
| Entity list in a trigger where an area/floor/label target fits | Purpose-specific trigger with `target: {area_id: ...}` | Automation follows area membership as devices change — no stale entity lists | `references/automation-patterns.md#purpose-specific-triggers--conditions-default-since-20267` |
|
|
116
|
+
| Old purpose-specific keys (`battery.low`, `vacuum.docked`, `timer.time_remaining`, ...) or trigger `behavior: any`/`last` | Renamed 2026.7 keys (`battery.became_low`, ...) and `behavior: each`/`all` | Old keys no longer load; old behavior values raise a repair issue and face removal | `references/automation-patterns.md#purpose-specific-triggers--conditions-default-since-20267` |
|
|
112
117
|
| Registering callbacks or calling `self.turn_on()`/`self.get_state()` in `__init__()` | Register everything in `initialize()` | Plugin connection not established during `__init__` — calls fail silently | `references/appdaemon.md#app-structure-and-lifecycle` |
|
|
113
118
|
| Calling `run_in` on repeated triggers without cancelling the previous handle | `cancel_timer(self._off_handle)` before each new `run_in` | Every trigger stacks an independent timer — devices toggle unpredictably | `references/appdaemon.md#scheduling-and-timers` |
|
|
114
119
|
| Storing persistent state in instance variables | Use HA `input_number`, `input_boolean`, or `input_text` helpers | Instance variables reset on app reload or daemon restart | `references/appdaemon.md#state-management-and-inter-app-communication` |
|
|
115
120
|
| Hardcoding entity IDs inside the class body | Pass entity IDs via `self.args` in `apps.yaml` | Hardcoded IDs prevent reuse and require code edits per installation | `references/appdaemon.md#appsyaml-configuration` |
|
|
121
|
+
| Hardcoding entity IDs in a Blueprint body | Expose them as `!input` with a selector | Hardcoding defeats a blueprint's purpose — it can't be reused | `references/blueprint-guide.md#inputs-and-selectors` |
|
|
122
|
+
| Free-text input for an entity/device in a Blueprint | Typed `entity`/`target`/`device` selector | Text lets typos through and fails silently; selectors validate the choice | `references/blueprint-guide.md#inputs-and-selectors` |
|
|
123
|
+
| `!input` used directly inside a template | Bind it to a `variables:` entry, use the variable | `!input` is a YAML tag, not a template value — the template errors or ignores it | `references/blueprint-guide.md#referencing-inputs-input-and-templating` |
|
|
124
|
+
| Publishing a Blueprint without `source_url` | Set `source_url` to the file's canonical URL | Without it users can't re-import updates and sharing is awkward | `references/blueprint-guide.md#blueprint-metadata` |
|
|
116
125
|
|
|
117
126
|
---
|
|
118
127
|
|
|
@@ -123,7 +132,7 @@ Read these when you need detailed information:
|
|
|
123
132
|
| File | When to read | Key sections |
|
|
124
133
|
|------|--------------|--------------|
|
|
125
134
|
| `references/safe-refactoring.md` | Renaming entities, replacing helpers, restructuring automations, or any modification to existing config | `#universal-workflow`, `#entity-renames`, `#helper-replacements`, `#trigger-restructuring`, `#config-entry-data--blind-spots-for-entity-registry-renames`, `#storage-mode-dashboards-storagelovelace` |
|
|
126
|
-
| `references/automation-patterns.md` | Writing triggers, conditions, waits, variables, or choosing automation modes; capturing action responses; documenting/annotating steps; disabling automations | `#native-conditions`, `#trigger-types`, `#wait-actions`, `#automation-modes`, `#continue-on-error`, `#stopping-a-sequence`, `#variables`, `#capturing-action-responses`, `#repeat-actions`, `#ifthen-vs-choose`, `#parallel-actions`, `#trigger-ids`, `#documenting-automations--scripts`, `#disabling-automations` |
|
|
135
|
+
| `references/automation-patterns.md` | Writing triggers, conditions, waits, variables, or choosing automation modes; capturing action responses; documenting/annotating steps; disabling automations | `#purpose-specific-triggers--conditions-default-since-20267`, `#native-conditions`, `#trigger-types`, `#wait-actions`, `#automation-modes`, `#continue-on-error`, `#stopping-a-sequence`, `#variables`, `#capturing-action-responses`, `#repeat-actions`, `#ifthen-vs-choose`, `#parallel-actions`, `#trigger-ids`, `#documenting-automations--scripts`, `#disabling-automations` |
|
|
127
136
|
| `references/helper-selection.md` | Deciding whether to use a built-in helper vs template sensor | `#how-helpers-are-created`, `#menu-based-helpers`, `#numeric-aggregation`, `#rate-and-change`, `#time-based-tracking`, `#counting-and-timing`, `#scheduling`, `#entity-grouping`, `#probabilistic-inference`, `#data-smoothing`, `#random-values`, `#climate-control`, `#domain-conversion`, `#template-helpers`, `#decision-matrix` |
|
|
128
137
|
| `references/template-guidelines.md` | Confirming templates ARE appropriate for a use case | `#when-templates-are-appropriate`, `#when-to-avoid-templates`, `#template-sensor-best-practices`, `#common-patterns`, `#error-handling` |
|
|
129
138
|
| `references/yaml-only-integrations.md` | Creating or editing YAML-only integrations that have no config flow (e.g. `command_line`, platform-based `mqtt`, `rest`) | `#yaml-only-integration-types`, `#post-edit-actions` |
|
|
@@ -131,6 +140,7 @@ Read these when you need detailed information:
|
|
|
131
140
|
| `references/scenes.md` | Authoring or activating scenes; snapshot/restore patterns; snapshot-vs-script distinction | `#scene-config-shape`, `#activating-a-scene`, `#snapshot--restore-scenecreate`, `#apply-states-without-storing-sceneapply` |
|
|
132
141
|
| `references/dashboard-guide.md` | Designing or modifying Lovelace dashboards — layout, view types, strategies, sections, cards, badges, CSS styling, HACS | `#dashboard-structure`, `#view-types`, `#dashboard-strategies`, `#built-in-cards`, `#features`, `#badges`, `#custom-cards`, `#css-styling`, `#common-pitfalls` |
|
|
133
142
|
| `references/dashboard-cards.md` | Looking up available card types or fetching card-specific documentation | — |
|
|
134
|
-
| `references/domain-docs.md` | Looking up integration or
|
|
143
|
+
| `references/domain-docs.md` | Looking up integration/domain documentation, or the dedicated doc page for a specific trigger, condition, or action | `#fetching-trigger-condition-and-action-docs` |
|
|
135
144
|
| `references/examples.yaml` | Need compound examples combining multiple best practices | — |
|
|
136
145
|
| `references/appdaemon.md` | AppDaemon apps: when to use vs. native HA, app structure, service calls, scheduling, error handling, safe refactoring impact | — |
|
|
146
|
+
| `references/blueprint-guide.md` | Authoring reusable blueprints: metadata & `source_url`, inputs & selectors, `target` vs `entity`, defaults, input sections, `!input` templating, versioning | `#when-to-author-a-blueprint`, `#blueprint-metadata`, `#inputs-and-selectors`, `#target-selector-vs-entity-selector`, `#defaults`, `#input-sections`, `#referencing-inputs-input-and-templating`, `#versioning-and-updates`, `#common-pitfalls` |
|
|
@@ -229,15 +229,58 @@ id: motion_on # a single id, or a list (OR semantics):
|
|
|
229
229
|
|
|
230
230
|
## Trigger Types
|
|
231
231
|
|
|
232
|
-
### Purpose-Specific Triggers (2026.
|
|
232
|
+
### Purpose-Specific Triggers & Conditions (default since 2026.7)
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
HA organizes triggers and conditions by real-world intent (motion detected, door opened, battery low, temperature crossed threshold) rather than by technical entity domain. Introduced in 2026.2 and expanded each release, this family **left Labs and became the default automation-building experience in 2026.7**. It is not UI-only sugar: these are first-class config — `trigger: <domain>.<name>` / `condition: <domain>.<name>` with `target:` and `options:` blocks — and round-trip through the config API like any other automation config. (The step-level `note:` field is separate additive syntax — see [Documenting Automations & Scripts](#documenting-automations--scripts).)
|
|
235
235
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
|
|
236
|
+
```yaml
|
|
237
|
+
triggers:
|
|
238
|
+
- trigger: motion.detected
|
|
239
|
+
target:
|
|
240
|
+
area_id: living_room # entity_id / device_id / area_id / floor_id / label_id
|
|
241
|
+
options:
|
|
242
|
+
behavior: each # multi-target semantics: each (default) / first / all
|
|
243
|
+
for: "00:00:30" # optional dwell time
|
|
244
|
+
conditions:
|
|
245
|
+
- condition: battery.is_low
|
|
246
|
+
target:
|
|
247
|
+
label_id: critical_devices
|
|
248
|
+
options:
|
|
249
|
+
behavior: any # conditions combine with any (default) / all
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Prefer these over the generic triggers below when one matches the intent:**
|
|
253
|
+
|
|
254
|
+
- **Targets, not entity lists.** Target an area/floor/label ("motion in the living room") and the automation follows area membership as sensors are added, swapped, or removed — no entity list to maintain. This also replaces most remaining legitimate uses of device triggers.
|
|
255
|
+
- **No `unavailable`/`unknown` traps.** Each block handles unavailable states and event-entity re-fire quirks internally.
|
|
256
|
+
- **Cross-entity-type.** "Door opened" fires whether the door is a contact sensor or a motorized cover.
|
|
257
|
+
- **Integration-extensible.** Integrations register their own (e.g. `zwave_js.*`), so the catalog grows over time.
|
|
258
|
+
|
|
259
|
+
**Multi-target `behavior` enums differ between triggers and conditions:**
|
|
260
|
+
|
|
261
|
+
- Triggers: `each` (default) / `first` / `all`. The pre-2026.7 values `any` and `last` were renamed to `each` and `all` — they still work but raise a repair issue and face removal. Never emit them (some official doc pages still show the old values mid-migration).
|
|
262
|
+
- Conditions: `any` (default) / `all` — unchanged.
|
|
263
|
+
|
|
264
|
+
**Keys renamed in 2026.7 (trigger keys unless marked *(condition)*) — old keys no longer work:**
|
|
265
|
+
|
|
266
|
+
| Old | New |
|
|
267
|
+
|-----|-----|
|
|
268
|
+
| `battery.low` | `battery.became_low` |
|
|
269
|
+
| `battery.not_low` | `battery.no_longer_low` |
|
|
270
|
+
| `lawn_mower.docked` | `lawn_mower.returned_to_dock` |
|
|
271
|
+
| `schedule.turned_on` | `schedule.block_started` |
|
|
272
|
+
| `schedule.turned_off` | `schedule.block_ended` |
|
|
273
|
+
| `timer.time_remaining` | `timer.remaining_time_reached` |
|
|
274
|
+
| `update.update_became_available` | `update.became_available` |
|
|
275
|
+
| `vacuum.docked` | `vacuum.returned_to_dock` |
|
|
276
|
+
| `climate.target_temperature` (condition) | `climate.is_target_temperature` |
|
|
277
|
+
| `climate.target_humidity` (condition) | `climate.is_target_humidity` |
|
|
278
|
+
|
|
279
|
+
**Discovering what exists:** every purpose-specific trigger and condition (and every service action) has a dedicated documentation page covering its config shape, options, and examples — fetch it on demand instead of guessing keys; see `domain-docs.md#fetching-trigger-condition-and-action-docs`. The trees span 50+ domains (~190 trigger and ~145 condition pages, generic types included): battery, motion, occupancy, door/window/gate/garage_door, climate, media_player, sun, timer, schedule, vacuum, lawn_mower, zone, and more. 2026.7 added the sun family (`sun.dawn`, `sun.dusk`, `sun.solar_noon`, `sun.solar_midnight`, elevation triggers).
|
|
280
|
+
|
|
281
|
+
Since 2026.7, `options.for` durations on **conditions** are primed from recorded history, so a freshly created or reloaded condition does not restart its duration clock from zero. Trigger `for:` clocks still reset as described in [`for:` duration resets](#for-duration-resets-on-restart-and-on-unavailable).
|
|
282
|
+
|
|
283
|
+
The generic triggers below remain fully supported and are the right choice when no purpose-specific block matches the intent (attribute changes, template-derived conditions, webhooks, MQTT, etc.). As with everything in this file, create and update automations through the config API — the YAML shows the config shape, not a file to hand-edit.
|
|
241
284
|
|
|
242
285
|
### State Trigger
|
|
243
286
|
|
|
@@ -342,6 +385,10 @@ only the real start/stop events move it.
|
|
|
342
385
|
When several entities' `last_changed` all jumped to the same time — one that isn't sunrise/sunset —
|
|
343
386
|
that was a restart re-stamp, not a real state change.
|
|
344
387
|
|
|
388
|
+
> 2026.7+ primes `options.for` duration tracking for purpose-specific **conditions** from recorded
|
|
389
|
+
> history, so those don't restart from zero on creation/reload. The resets described here still
|
|
390
|
+
> apply to trigger `for:` clauses and to `last_changed`-based template math.
|
|
391
|
+
|
|
345
392
|
### Time Trigger
|
|
346
393
|
|
|
347
394
|
Fires at specific times.
|
|
@@ -461,9 +508,9 @@ triggers:
|
|
|
461
508
|
|
|
462
509
|
To *check* zone membership in a condition rather than trigger on the transition, see [Zone Condition](#zone-condition).
|
|
463
510
|
|
|
464
|
-
### Native Zone Triggers & Conditions (2026.6
|
|
511
|
+
### Native Zone Triggers & Conditions (2026.6+)
|
|
465
512
|
|
|
466
|
-
2026.6
|
|
513
|
+
2026.6 added native, **any-zone** zone primitives (not just home); with the rest of the purpose-specific family they became default (non-Labs) in 2026.7. They serialize as the standard `<domain>.<name>` shape with `options:` and `target:` blocks:
|
|
467
514
|
|
|
468
515
|
- **Triggers:** `zone.entered`, `zone.left`, `zone.occupancy_detected`, `zone.occupancy_cleared`
|
|
469
516
|
- **Conditions:** `zone.in_zone`, `zone.not_in_zone`, `zone.occupancy_is_detected`, `zone.occupancy_is_not_detected`
|
|
@@ -480,7 +527,7 @@ triggers:
|
|
|
480
527
|
# for: "00:05:00" # optional dwell time
|
|
481
528
|
```
|
|
482
529
|
|
|
483
|
-
Triggers take `behavior: each` (default), `all`, or `first`; the matching **conditions** use a *different* enum — `behavior: any` (default) or `all
|
|
530
|
+
Triggers take `behavior: each` (default), `all`, or `first`; the matching **conditions** use a *different* enum — `behavior: any` (default) or `all` (see [Purpose-Specific Triggers & Conditions](#purpose-specific-triggers--conditions-default-since-20267)). The classic flat [Zone Trigger](#zone-trigger) / [Zone Condition](#zone-condition) and plain `state` triggers remain supported.
|
|
484
531
|
|
|
485
532
|
> The `entered_home`/`left_home`/`is_home`/`is_not_home` device automations were removed in **2026.5** (see [below](#presence-and-person-triggers-and-conditions-removed-in-20265)) — 2026.6 only *adds* these any-zone primitives as the native successor.
|
|
486
533
|
|
|
@@ -612,40 +659,44 @@ entity_id: person.john
|
|
|
612
659
|
state: "home"
|
|
613
660
|
```
|
|
614
661
|
|
|
615
|
-
|
|
662
|
+
2026.7 presence semantics to keep in mind:
|
|
663
|
+
|
|
664
|
+
- A person located by a home presence scanner (router/Bluetooth) may report **no latitude/longitude** — don't read coordinates to infer home presence; use the state or the `in_zones` attribute.
|
|
665
|
+
- Person and device_tracker entities expose `in_zones` (all zones containing them, smallest first). Zone entity states (person counts) are derived from it, so a person counts in **every** overlapping zone they're inside, not just one.
|
|
666
|
+
- A position-aware device_tracker's state is the **smallest** containing zone (previously: the zone whose center is closest).
|
|
667
|
+
|
|
668
|
+
For non-home zone presence, prefer the native zone family (see [Native Zone Triggers & Conditions](#native-zone-triggers--conditions-20266)) or `#zone-condition`.
|
|
616
669
|
|
|
617
670
|
### Timer Entity Triggers (2026.5+)
|
|
618
671
|
|
|
619
|
-
Timer
|
|
672
|
+
Timer lifecycle events are purpose-specific triggers: `timer.started`, `timer.finished`, `timer.paused`, `timer.restarted`, `timer.cancelled`, plus `timer.remaining_time_reached` (renamed from `timer.time_remaining` in 2026.7), which fires at a set remaining time.
|
|
620
673
|
|
|
621
674
|
```yaml
|
|
622
|
-
# Timer finished (also: timer.started, timer.paused, timer.restarted, timer.cancelled)
|
|
623
675
|
triggers:
|
|
624
|
-
- trigger:
|
|
625
|
-
|
|
626
|
-
event_data:
|
|
676
|
+
- trigger: timer.remaining_time_reached
|
|
677
|
+
target:
|
|
627
678
|
entity_id: timer.cooking
|
|
679
|
+
options:
|
|
680
|
+
remaining: "00:05:00"
|
|
628
681
|
```
|
|
629
682
|
|
|
683
|
+
The legacy `event`-trigger form (`event_type: timer.finished` with `event_data: {entity_id: ...}`) still works, but the purpose-specific form supports targets and is preferred.
|
|
684
|
+
|
|
630
685
|
### Media Player Triggers/Conditions (2026.5+)
|
|
631
686
|
|
|
632
|
-
Media
|
|
687
|
+
Media players have purpose-specific triggers (`media_player.started_playing`, `media_player.paused_playing`, `media_player.stopped_playing`, `media_player.turned_on`, `media_player.turned_off`, `media_player.muted`, `media_player.unmuted`, `media_player.volume_changed`, `media_player.volume_crossed_threshold`) and matching conditions (`media_player.is_playing`, `media_player.is_paused`, `media_player.is_not_playing`, `media_player.is_on`, `media_player.is_off`, `media_player.is_muted`, `media_player.is_unmuted`, `media_player.is_volume`).
|
|
633
688
|
|
|
634
689
|
```yaml
|
|
635
|
-
# Play/pause state — to: "playing", "paused", "idle", "off"
|
|
636
|
-
triggers:
|
|
637
|
-
- trigger: state
|
|
638
|
-
entity_id: media_player.living_room
|
|
639
|
-
to: "playing"
|
|
640
|
-
|
|
641
|
-
# Volume threshold
|
|
642
690
|
triggers:
|
|
643
|
-
- trigger:
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
691
|
+
- trigger: media_player.started_playing
|
|
692
|
+
target:
|
|
693
|
+
entity_id: media_player.living_room
|
|
694
|
+
options:
|
|
695
|
+
for: "00:00:30" # optional: playback must continue this long
|
|
647
696
|
```
|
|
648
697
|
|
|
698
|
+
The generic forms still apply where no purpose-specific block fits (e.g. `state` with `to: "idle"`, or `numeric_state` on `attribute: volume_level`).
|
|
699
|
+
|
|
649
700
|
---
|
|
650
701
|
|
|
651
702
|
## Wait Actions
|