gadgetchnnel / lovelace-home-feed-card

A custom Lovelace card for displaying a combination of persistent notifications, calendar events, and entities in the style of a feed.
275 stars 24 forks source link

Display last x states of an entity #26

Closed jannislehmann closed 4 years ago

jannislehmann commented 4 years ago

Hey,

is it possible to show all last states from one entity? I have a door and I want to see when it was opened and when it was closed. With the default configuration I only have the latest state per entity.

gadgetchnnel commented 4 years ago

You can use the include_history option for this, for example:

type: 'custom:home-feed-card'
  title: Home Feed
  show_empty: false
  id_filter: ^home_feed_.*
  entities:
      - entity: binary_sensor.front_door
        name: Front Door
        include_history: true
        max_history: 5

By default repeated states are excluded, for example if it goes from Open to Open without going to Closed (which could happen as unknown states are filtered out) but this can be disabled by using remove_repeats: false

jannislehmann commented 4 years ago

Thanks, I really tried to find this option, but somehow missed it. Sorry for asking such redundant question.

Now my card looks exactly the way I want it to. Thank you for the card!