From 89f58143107ca6ca8abdaa5a41cb3eb07e5b0c57 Mon Sep 17 00:00:00 2001 From: abmantis Date: Mon, 4 Aug 2025 17:45:07 +0100 Subject: [PATCH] Change from state to select selector --- homeassistant/components/light/conditions.yaml | 6 +++++- homeassistant/components/light/strings.json | 13 +++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/light/conditions.yaml b/homeassistant/components/light/conditions.yaml index 45610329c36..85a41ecaf74 100644 --- a/homeassistant/components/light/conditions.yaml +++ b/homeassistant/components/light/conditions.yaml @@ -5,8 +5,12 @@ state: fields: state: required: true + default: "on" selector: - state: + select: + options: + - "off" + - "on" behavior: required: true default: any diff --git a/homeassistant/components/light/strings.json b/homeassistant/components/light/strings.json index 3e12db4f228..34699526993 100644 --- a/homeassistant/components/light/strings.json +++ b/homeassistant/components/light/strings.json @@ -149,6 +149,13 @@ } }, "selector": { + "behavior": { + "options": { + "all": "All", + "any": "Any", + "one": "One" + } + }, "color_name": { "options": { "homeassistant": "Home Assistant", @@ -306,6 +313,12 @@ "short": "Short", "long": "Long" } + }, + "state": { + "options": { + "off": "[%key:common::state::off%]", + "on": "[%key:common::state::on%]" + } } }, "services": {