Alert auto-hide broken in Lovelace?

Hi all. First time poster from a man with limited programming skills :wink:
Running HA 0.87 i created a Alert to notify me if my garage door is left open. As i understand it the alert will be hidden when not triggered. My experience is that the entity Changes state to hidden but it still shows up in my card.

alert:
  garage_door:
    name: Garage is open
    entity_id: cover.wemos2_garage
    state: 'open'
    repeat:
      - 15
      - 30
      - 60
    can_acknowledge: true  # Optional, default is true
    skip_first: true  # Optional, false is the default
    notifiers:
      - maila_marcus

Screenshot from my testsetup:

image

hidden does nothing in the lovelace UI. Itā€™s remnants of the old interface that was phased out about 3 weeks ago. If you donā€™t want it to appear in the UI, use a filter card and place that alert in it. Filtering it out when the state is idle.

Thanks for the input petro!

Hi @Magren,

what did you finally do to hide the entry when the door is closed?
Iā€™m using the filter card but itā€™s clumsy - it needs way more clicks if I want to turn the alert off because I know I need to keep the door open for a while.

On my main card i have a filter card that will only show the toggle switch when activated.
Otherwise it will show up like a white field only.

Filter card code:

entities:
  - alert.garage_door
state_filter:
  - 'on'
type: entity-filter
1 Like

This seems to have the same issue as my solution with the conditional-card - the alter doesnā€™t show up with a toggle button, it shows up with the status that I need to click on in order to get to the toggle button.

what do you mean when you say ā€˜alterā€™?

Donā€™t you love auto-correct?
Itā€™s supposed to say ā€œalertā€.

Well all the letters were correct! How are you using the conditional card to show an alert?

Itā€™s not for showing the alert but trying to show the toggle button that allows me to turn the alert on and off:

- type: conditional
  show_header_toggle: false
  conditions:
    - entity: alert.garage_door_open_long
      state_not: "idle"
  card:
    type: entities
    title: Garage Door Alert
    entities:
      - alert.garage_door_open_long

It shows up in Lovelace like this:
image

And in order to toggle it I have to click on it to get this pop-up:
image

In the Legacy UI it show up directly like this:
image
But only if the sensor itself is off - no need for a filter of any kind.

sounds like a bug, iā€™d write up the issue.

I set up a feature request to improve the behavior in general - so that itā€™s aligned with the Legacy UI:

Might raise an issue, too - good idea!