Change state to select selector

This commit is contained in:
abmantis
2025-08-04 17:49:32 +01:00
parent 13d34015ce
commit 2af652a3bd
2 changed files with 18 additions and 1 deletions

View File

@@ -132,6 +132,13 @@
} }
}, },
"selector": { "selector": {
"behavior": {
"options": {
"all": "All",
"any": "Any",
"one": "One"
}
},
"color_name": { "color_name": {
"options": { "options": {
"homeassistant": "Home Assistant", "homeassistant": "Home Assistant",
@@ -289,6 +296,12 @@
"short": "Short", "short": "Short",
"long": "Long" "long": "Long"
} }
},
"state": {
"options": {
"off": "[%key:common::state::off%]",
"on": "[%key:common::state::on%]"
}
} }
}, },
"services": { "services": {

View File

@@ -5,8 +5,12 @@ state:
fields: fields:
state: state:
required: true required: true
default: "on"
selector: selector:
state: select:
options:
- "off"
- "on"
behavior: behavior:
required: true required: true
default: any default: any