Move target selector to toplevel; add strings and icons

This commit is contained in:
abmantis 2025-07-16 15:32:33 +01:00
parent 0bd5231f37
commit 3d98bc986b
3 changed files with 21 additions and 6 deletions

View File

@ -22,5 +22,10 @@
"turn_on": {
"service": "mdi:lightbulb-on"
}
},
"triggers": {
"state": {
"trigger": "mdi:state-machine"
}
}
}

View File

@ -461,5 +461,18 @@
}
}
}
},
"triggers": {
"state": {
"name": "State",
"description": "When the state of a light changes, such as turning on or off.",
"description_configured": "When the state of a light changes",
"fields": {
"state": {
"name": "State",
"description": "The state to trigger on."
}
}
}
}
}

View File

@ -1,11 +1,8 @@
state:
target:
entity:
domain: light
fields:
target:
required: true
selector:
target:
entity:
domain: light
state:
required: true
selector: