Use current entity in state card conditions#51708
Conversation
timmo001
left a comment
There was a problem hiding this comment.
Also merge conflicts to resolve
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
|
@timmo001 Yeah, It can be an extra item at the beginning of the list of entity picker. I'll check that 🙂 And if selected, it set entity to |
8fec963 to
f06c8af
Compare
timmo001
left a comment
There was a problem hiding this comment.
Much better, I still think the entity could just auto set on add (and maybe prioritise the entity to the top of the list) but this is more descriptive of a "default" value to show as "Current entity"
Also a huge timesaver if you like to set visibility based on available state etc. for cards
|
@timmo001 I like that we have 2 items in the list : one that set Allowing |
|
Yeah makes sense, it doesnt dupe when searching so its good there too |

Proposed change
Adds a "Current entity" option to the entity picker in state and numeric state visibility conditions. It shows up when editing a condition on a card that has a main entity (tile, entity, light, thermostat, entity badge, entity heading badge...). Selecting it makes the condition use whatever entity the card is bound to.
On the map card, the state picker in conditions now autocompletes from the entities configured on the card instead of a static list.
Screenshots
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
To help with the load of incoming pull requests: