thomasloven / lovelace-template-entity-row

🔹 Display whatever you want in an entities card row.
MIT License
210 stars 16 forks source link

core-2021.6.0b0 - Entity required? #51

Closed Scags104 closed 3 years ago

Scags104 commented 3 years ago

seems all my templates are reporting "Entity not available: [empty]" as of the new version.

Basic troubleshooting done:

Mariusthvdb commented 3 years ago

do you see a more-info popup at all, they wont open anymore in my configs?

files an issue in auto-entities, because that wraps my config, but now I see your issue, maybe just add this: https://github.com/thomasloven/lovelace-auto-entities/issues/199

thomasloven commented 3 years ago

Please try version 1.2.0

Scags104 commented 3 years ago

this actually began working (for me) as of 1.1.2 once Core 2021.6.0b4 was released.

Assumption: something they were doing with theming in this release?

Either way we can mark this as closed. Thank you for this!

lindsaymarkward commented 1 year ago

I know this is a closed issue, but I thought I'd post here since it's the closest I can find to my issue. I'm happy to open a new issue if that's better. I get "Entity not available: [empty]" where it used to work. The name and value still appear (the template works fine), but not as expected. There's no icon. I've tried this for a couple of entities, but get the same result. I'm using HA 2023.4.1 and template-entity-row 1.3.2. Here's my UI YAML:

    - type: entities
      show_header_toggle: false
      entities:
        - script.practice
        - type: custom:template-entity-row
          name: "Practice duration"
          icon: mdi:timer-sand
          state: "{{ states.input_number.practice_duration.state|int }}"
        - input_number.practice_duration

Thanks!

ildar170975 commented 1 year ago

There's no icon.

https://github.com/thomasloven/lovelace-template-entity-row/issues/100 Was fixed in one of the latest releases.

lindsaymarkward commented 1 year ago

Thanks for replying. I have release 1.3.2, which is the latest/current release. I did test an entity without specifying an icon and it still displays Entity not available: [empty].

ildar170975 commented 1 year ago

What is displayed here? image (this screenshot code from a Chrome, Code inspector - in you browser may look differently).

Also, I do not know about "timer-sand" icon, please test with "mdi:car". And put "state: xxx" for simplicity.

lindsaymarkward commented 1 year ago

Well well... it was a cache issue. I wasn't expecting that. Thanks so much for this. The console showed an older version. I right-clicked the refresh and chose to "Empty cache and hard reload", and the version updated, and the problem went away. (By the way, I didn't post my simplicity tests, but I did try it without an icon and with just text for the state.) Thank you 👍