From 2af652a3bd58205bce839a9371848855762e6d7a Mon Sep 17 00:00:00 2001 From: abmantis Date: Mon, 4 Aug 2025 17:49:32 +0100 Subject: [PATCH] Change state to select selector --- homeassistant/components/light/strings.json | 13 +++++++++++++ homeassistant/components/light/triggers.yaml | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/light/strings.json b/homeassistant/components/light/strings.json index 61e82237285..360fe503d7f 100644 --- a/homeassistant/components/light/strings.json +++ b/homeassistant/components/light/strings.json @@ -132,6 +132,13 @@ } }, "selector": { + "behavior": { + "options": { + "all": "All", + "any": "Any", + "one": "One" + } + }, "color_name": { "options": { "homeassistant": "Home Assistant", @@ -289,6 +296,12 @@ "short": "Short", "long": "Long" } + }, + "state": { + "options": { + "off": "[%key:common::state::off%]", + "on": "[%key:common::state::on%]" + } } }, "services": { diff --git a/homeassistant/components/light/triggers.yaml b/homeassistant/components/light/triggers.yaml index dd1c72e84b2..78b6f41a1e4 100644 --- a/homeassistant/components/light/triggers.yaml +++ b/homeassistant/components/light/triggers.yaml @@ -5,8 +5,12 @@ state: fields: state: required: true + default: "on" selector: - state: + select: + options: + - "off" + - "on" behavior: required: true default: any