Hey there,
we are using badges on our dashboard to be able to quickly lock, unlock and open our front door at the entrance of our house.
As the badges are so nicely accessible (which is really great, don’t get me wrong!) we sometimes messed it up and clicked ‚open‘ instead of switching tabs.
So what I did is, I increased the radius of our home zone and splitted the badges into two for each action: one with confirmation for the users viewing the dashboard who are not within the home area and one without the confirmation if you stand in front of the door for instance.
But somehow Home Assistant always shows the one with the confirmation dialog. Could you please help me to get this fixed? I don’t find my issue ![]()
Here is my YAML for both of the open actions:
type: custom:mushroom-template-badge
content: Open
icon: mdi:door-open
color: purple
entity: lock.front_door
label: "{{- state_attr(entity, 'friendly_name') }}"
tap_action:
action: perform-action
perform_action: lock.open
target:
entity_id: lock.front_door
data: {}
visibility:
- condition: location
locations:
- home
- condition: or
conditions:
- condition: state
entity: lock.front_door
state: locked
- condition: state
entity: lock.front_door
state: unlocked
type: custom:mushroom-template-badge
content: Open
icon: mdi:door-open
color: purple
entity: lock.front_door
label: "{{- state_attr(entity, 'friendly_name') }}"
tap_action:
action: perform-action
perform_action: lock.open
target:
entity_id: lock.front_door
confirmation:
text: >-
It seems you are not at home. Do you want to open the door anyway?
visibility:
- condition: not
conditions:
- condition: location
locations:
- home
- condition: or
conditions:
- condition: state
entity: lock.front_door
state: locked
- condition: state
entity: lock.front_door
state: unlocked
I have also checked my person entity when the confirmation gets shown and it has the state ‚home‘ - as this is shown as card below the badges.
Thanks a lot!
Dominik