Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does entity attribute work? #121

Open
Cloud500 opened this issue Oct 25, 2024 · 0 comments
Open

How does entity attribute work? #121

Cloud500 opened this issue Oct 25, 2024 · 0 comments

Comments

@Cloud500
Copy link

I have an entity which contains a timestamp as the End time attribute.
If I read the documentation correctly, I can use the attribute parameter to display this as the status:

Entity object -> attribute (optional, added in 0.6.0)
Define an attribute to use instead of the state for the entity in the list

But basically, it doesn't matter what I write in attribute, it always shows last change...

Am I just too stupid or is this really a bug?
(I mean, I'm still quite new to the HA universe)

lovelace-home-feed-card version: 0.6.5

sensor attributes:

Message => str
All day => bool
Start time => timestamp
End time => timestamp
Description => str

card:

type: custom:home-feed-card
title: Current free Game
card_id: main_feed
show_empty: false
more_info_on_tap: true
state_color: true
compact_mode: true
entities:
  - entity: calendar.epic_games_store_rabatt_spiele
    content_template: "{{message}}"
    attribute: end_time

(I have tried various versions, end_time, “end_time”, “End time”, End time, {{end_time}}, and more, even message which works in content_template does not work in “attribute”.
However, if I enter "{{end_time}}" as content_template, the date is displayed.)

Any ideas?

PS:
I first tried it “normally” via calenders, but “last week” as status doesn't help me, because I want to know how much longer and not since when

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant