From 30451e3aaa333bcaef9f546a968fb2dc240ab470 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 25 Nov 2025 12:54:28 +0100 Subject: [PATCH] Register preview labs feature for the new intuitive triggers and conditions (#157189) Co-authored-by: Martin Hjelmare --- homeassistant/components/automation/manifest.json | 5 +++++ homeassistant/components/automation/strings.json | 8 ++++++++ homeassistant/generated/labs.py | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/homeassistant/components/automation/manifest.json b/homeassistant/components/automation/manifest.json index a22abbee3b2..5ea64cc2610 100644 --- a/homeassistant/components/automation/manifest.json +++ b/homeassistant/components/automation/manifest.json @@ -6,5 +6,10 @@ "dependencies": ["blueprint", "trace"], "documentation": "https://www.home-assistant.io/integrations/automation", "integration_type": "system", + "preview_features": { + "new_triggers_conditions": { + "report_issue_url": "https://github.com/home-assistant/core/issues/new?template=bug_report.yml&integration_link=https://www.home-assistant.io/integrations/automation&integration_name=Automation" + } + }, "quality_scale": "internal" } diff --git a/homeassistant/components/automation/strings.json b/homeassistant/components/automation/strings.json index 5dc96dff442..b169004f1c3 100644 --- a/homeassistant/components/automation/strings.json +++ b/homeassistant/components/automation/strings.json @@ -67,6 +67,14 @@ "title": "[%key:component::automation::common::validation_failed_title%]" } }, + "preview_features": { + "new_triggers_conditions": { + "description": "Enables new intuitive triggers and conditions that are more user-friendly than technical state-based options.\n\nThese new automation features support targets across your entire home, letting you trigger automations for any entity, device, area, floor, or label (for example, when any light in your living room turned on). Integrations can now also provide their own intuitive triggers and conditions, just like actions.\n\nThis preview also includes a new tree view to help you navigate your home when adding triggers, conditions, and actions.", + "disable_confirmation": "Disabling this preview will cause automations and scripts that use the new intuitive triggers and conditions to fail.\n\nBefore disabling, ensure that your automations or scripts do not rely on this feature.", + "enable_confirmation": "This feature is still in development and may change. These new intuitive triggers and conditions are being refined based on user feedback and are not yet complete.\n\nBy enabling this preview, you'll have early access to these new capabilities, but be aware that they may be modified or updated in future releases.", + "name": "Intuitive triggers and conditions" + } + }, "services": { "reload": { "description": "Reloads the automation configuration.", diff --git a/homeassistant/generated/labs.py b/homeassistant/generated/labs.py index d936738727d..6e84ea5ba04 100644 --- a/homeassistant/generated/labs.py +++ b/homeassistant/generated/labs.py @@ -4,6 +4,13 @@ To update, run python3 -m script.hassfest """ LABS_PREVIEW_FEATURES = { + "automation": { + "new_triggers_conditions": { + "feedback_url": "", + "learn_more_url": "", + "report_issue_url": "https://github.com/home-assistant/core/issues/new?template=bug_report.yml&integration_link=https://www.home-assistant.io/integrations/automation&integration_name=Automation", + }, + }, "frontend": { "winter_mode": { "feedback_url": "",